summaryrefslogtreecommitdiffstats
path: root/perl-install/share
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2012-08-01 17:16:30 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 21:28:33 +0100
commitb9e700aea8f8dfae031d9ff923f00393b052fd3d (patch)
tree77874a7a36987e70b128aa303842ba623ec249e0 /perl-install/share
parent2cfaaed875e7caeae898acf23630558077bb668a (diff)
downloaddrakx-b9e700aea8f8dfae031d9ff923f00393b052fd3d.tar
drakx-b9e700aea8f8dfae031d9ff923f00393b052fd3d.tar.gz
drakx-b9e700aea8f8dfae031d9ff923f00393b052fd3d.tar.bz2
drakx-b9e700aea8f8dfae031d9ff923f00393b052fd3d.tar.xz
drakx-b9e700aea8f8dfae031d9ff923f00393b052fd3d.zip
use Gtk3 namespace instead of Gtk2
Diffstat (limited to 'perl-install/share')
-rwxr-xr-xperl-install/share/po/translation_size.pl12
1 files changed, 6 insertions, 6 deletions
diff --git a/perl-install/share/po/translation_size.pl b/perl-install/share/po/translation_size.pl
index 178baaefd..adc0f968b 100755
--- a/perl-install/share/po/translation_size.pl
+++ b/perl-install/share/po/translation_size.pl
@@ -26,20 +26,20 @@ use install_gtk;
!@ARGV and die "Usage: LANGUAGE=lang_to_test $0 string_to_translate\n(for example: LANGUAGE=ja $0 Advanced)\n";
install_gtk::load_font({ locale => { lang => 'en_US' } });
-$l1 = Gtk2::Label->new($ARGV[0]);
-my $v = Gtk2::VBox->new(1, 0);
+$l1 = Gtk3::Label->new($ARGV[0]);
+my $v = Gtk3::VBox->new(1, 0);
$v->pack_start($l1, 0, 0, 0);
-my $window = Gtk2::Window->new('toplevel');
+my $window = Gtk3::Window->new('toplevel');
$window->set_size_request(200, 50);
$window->set_position('center');
-$window->signal_connect(key_press_event => sub { Gtk2->main_quit });
+$window->signal_connect(key_press_event => sub { Gtk3->main_quit });
$window->add($v);
$window->show_all;
install_gtk::load_font({ locale => { lang => $ENV{LANGUAGE} } });
-$l2 = Gtk2::Label->new(translate($ARGV[0]));
+$l2 = Gtk3::Label->new(translate($ARGV[0]));
$v->pack_start($l2, 0, 0, 0);
$window->show_all;
-Gtk2->main;
+Gtk3->main;