Permalink
Browse files

Release of v3.0.6

  • Loading branch information...
1 parent 055e8e8 commit b9ab1df268e473f3fc49debbafee9a149d40d3b4 @trizen committed Jan 24, 2013
View
21 WWW-YoutubeViewer/bin/gtk-youtube-viewer
@@ -18,7 +18,7 @@
#-------------------------------------------------------
# GTK Youtube Viewer
# Created on: 12 September 2010
-# Latest edit on: 17 January 2013
+# Latest edit on: 24 January 2013
# Website: http://trizen.googlecode.com
#-------------------------------------------------------
@@ -38,7 +38,7 @@ use File::Spec::Functions qw(
);
my $appname = 'GTK Youtube Viewer';
-my $version = '3.0.6-dev';
+my $version = '3.0.6';
my $execname = 'gtk-youtube-viewer';
# Developer key
@@ -341,11 +341,12 @@ local $SIG{__DIE__} = sub {
};
#---------------------- LOAD IMAGES ----------------------#
-my $app_icon_pixbuf = 'Gtk2::Gdk::Pixbuf'->new_from_file("$icons_path/$execname.png");
-my $user_icon_pixbuf = 'Gtk2::Gdk::Pixbuf'->new_from_file_at_size("$icons_path/user.png", 16, 16);
-my $feed_icon_pixbuf = 'Gtk2::Gdk::Pixbuf'->new_from_file_at_size("$icons_path/feed_icon.png", 16, 16);
-my $default_thumb = 'Gtk2::Gdk::Pixbuf'->new_from_file_at_size("$icons_path/default_thumb.jpg", 120, 90);
-my $animation = 'Gtk2::Gdk::PixbufAnimation'->new_from_file("$icons_path/spinner.gif");
+my $app_icon_pixbuf = 'Gtk2::Gdk::Pixbuf'->new_from_file("$icons_path/$execname.png");
+my $user_icon_pixbuf = 'Gtk2::Gdk::Pixbuf'->new_from_file_at_size("$icons_path/user.png", 16, 16);
+my $feed_icon_pixbuf = 'Gtk2::Gdk::Pixbuf'->new_from_file_at_size("$icons_path/feed_icon.png", 16, 16);
+my $default_thumb = 'Gtk2::Gdk::Pixbuf'->new_from_file_at_size("$icons_path/default_thumb.jpg", 120, 90);
+my $donate_icon_pixbuf = 'Gtk2::Gdk::Pixbuf'->new_from_file("$icons_path/donate.png");
+my $animation = 'Gtk2::Gdk::PixbufAnimation'->new_from_file("$icons_path/spinner.gif");
# Setting application title and icon
$mainw->set_title("$appname $version");
@@ -499,6 +500,11 @@ sub lwp_get {
return;
}
+sub donate {
+ my $url = 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=75FUVBE6Q73T8';
+ system "xdg-open \Q$url\E &";
+}
+
# ---------------- Threads ---------------- #
my ($queue, $jobs);
@@ -582,6 +588,7 @@ sub new_image_from_pixbuf {
{
$gui->get_object('username_list')->set_image(new_image_from_pixbuf('icon_from_pixbuf', $user_icon_pixbuf));
$gui->get_object('channels_button')->set_image(new_image_from_pixbuf('icon_from_pixbuf', $user_icon_pixbuf));
+ $gui->get_object('donate_button')->set_image(new_image_from_pixbuf('icon_from_pixbuf', $donate_icon_pixbuf));
$gui->get_object('button6')->set_image(new_image_from_pixbuf('icon_from_pixbuf', $feed_icon_pixbuf));
$gui->get_object('button23')->set_image(new_image_from_pixbuf('icon_from_pixbuf', $feed_icon_pixbuf));
}
View
9 WWW-YoutubeViewer/bin/youtube-viewer
@@ -18,7 +18,7 @@
#-------------------------------------------------------
# Appname: youtube-viewer
# Created on: 02 June 2010
-# Latest edit on: 17 January 2013
+# Latest edit on: 24 January 2013
# Websites: http://trizen.googlecode.com
# https://github.com/trizen/youtube-viewer
#-------------------------------------------------------
@@ -90,7 +90,7 @@ See: youtube-viewer --help
=head1 LICENSE AND COPYRIGHT
-Copyright 2010-2012 Trizen.
+Copyright 2010-2013 Trizen.
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
@@ -109,7 +109,7 @@ use strict;
use File::Spec::Functions qw(catdir catfile curdir path rel2abs tmpdir);
my $appname = 'Youtube Viewer';
-my $version = '3.0.6-dev';
+my $version = '3.0.6';
my $execname = 'youtube-viewer';
# A better <STDIN> support:
@@ -629,7 +629,8 @@ NOTE: Categories and region IDs are case sensitive!
** Configuration file: $config_file
-** Please do *NOT* abuse of this awesome script!
+** Donations gladly accepted:
+ https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=75FUVBE6Q73T8
TRICKS
main_quit(0);
View
BIN WWW-YoutubeViewer/share/gtk-youtube-viewer-icons/donate.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
61 WWW-YoutubeViewer/share/gtk-youtube-viewer.glade
@@ -143,6 +143,15 @@
<signal name="activate" handler="show_about_window" swapped="no"/>
</object>
</child>
+ <child>
+ <object class="GtkMenuItem" id="donate_menu_item">
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Donate</property>
+ <signal name="activate" handler="donate" swapped="no"/>
+ </object>
+ </child>
</object>
</child>
</object>
@@ -1106,6 +1115,39 @@ Unless the categoryID is valid, this field is ignored.</property>
</packing>
</child>
<child>
+ <object class="GtkHButtonBox" id="hbuttonbox8">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="layout_style">end</property>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <object class="GtkButton" id="donate_button">
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="image">image78</property>
+ <property name="relief">none</property>
+ <property name="image_position">right</property>
+ <signal name="clicked" handler="donate" swapped="no"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="pack_type">end</property>
+ <property name="position">8</property>
+ </packing>
+ </child>
+ <child>
<object class="GtkFrame" id="frame10">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -1148,7 +1190,7 @@ When the specified resolution is not found, it falls down to a lower resolution.
<property name="expand">False</property>
<property name="fill">False</property>
<property name="pack_type">end</property>
- <property name="position">8</property>
+ <property name="position">9</property>
</packing>
</child>
</object>
@@ -2085,17 +2127,17 @@ When the specified resolution is not found, it falls down to a lower resolution.
</object>
</child>
</object>
- <object class="GtkImage" id="download_icon1">
+ <object class="GtkImage" id="download_icon2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">emblem-downloads</property>
</object>
- <object class="GtkImage" id="download_icon2">
+ <object class="GtkImage" id="download_icon3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">emblem-downloads</property>
</object>
- <object class="GtkImage" id="download_icon3">
+ <object class="GtkImage" id="download_icon1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">emblem-downloads</property>
@@ -3129,6 +3171,17 @@ When the specified resolution is not found, it falls down to a lower resolution.
<property name="can_focus">False</property>
<property name="icon_name">emblem-important</property>
</object>
+ <object class="GtkImage" id="image77">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stock">gtk-missing-image</property>
+ </object>
+ <object class="GtkImage" id="image78">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stock">gtk-missing-image</property>
+ <property name="icon-size">5</property>
+ </object>
<object class="GtkImage" id="image8">
<property name="visible">True</property>
<property name="can_focus">False</property>

0 comments on commit b9ab1df

Please sign in to comment.