summaryrefslogtreecommitdiffstats
path: root/menus_launcher.pl
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-02-20 15:10:19 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-02-20 15:10:19 +0000
commit55ae3d490d62866017c7235b80466594e862d5db (patch)
tree1e30e50c9b690d5234ce91f9b7f275793ab00285 /menus_launcher.pl
parent0c21cc7ac7b9edde8bcb6e09d2b62e86a6b156d4 (diff)
downloadcontrol-center-55ae3d490d62866017c7235b80466594e862d5db.tar
control-center-55ae3d490d62866017c7235b80466594e862d5db.tar.gz
control-center-55ae3d490d62866017c7235b80466594e862d5db.tar.bz2
control-center-55ae3d490d62866017c7235b80466594e862d5db.tar.xz
control-center-55ae3d490d62866017c7235b80466594e862d5db.zip
- adapt to new ugtk2 utf8/l10n scheme
- fix #1922
Diffstat (limited to 'menus_launcher.pl')
-rwxr-xr-xmenus_launcher.pl12
1 files changed, 3 insertions, 9 deletions
diff --git a/menus_launcher.pl b/menus_launcher.pl
index fc798eca..764eafe7 100755
--- a/menus_launcher.pl
+++ b/menus_launcher.pl
@@ -3,18 +3,12 @@
use strict;
use lib qw(/usr/lib/libDrakX);
use common;
+# i18n : IMPORTANT to get correct namespace (drakconf instead of libDrakX)
+BEGIN { unshift @::textdomains, 'drakconf' }
use ugtk2 qw(:helpers :wrappers);
use interactive;
use standalone;
-#-------------------------------------------------------------
-# i18n
-# IMPORTANT: next code is needed to get correct namespace : drakconf instead of libDrakX
-# (This version is now UTF8 compliant - Sg 2001-08-18)
-#-------------------------------------------------------------
-
-unshift @::textdomains, 'drakconf';
-
my $bindir = "/usr/bin/";
my $my_win = ugtk2->new('print_launcher');
$my_win->{rwindow}->set_title(N("Menu Configuration Center")) unless $::isEmbedded;
@@ -38,7 +32,7 @@ my $b1 = gtksignal_connect(Gtk2::Button->new(N("Configure...")), clicked => sub
$table->attach($b1, 1, 2, 0, 1, 'fill', 'fill', 0, 0);
$table->attach(Gtk2::Label->new(N("User menu")), 0, 1, 1, 2, 'fill', 'fill', 0, 0);
-my $combo = Gtk2::Combo->new;
+my $combo = Gtk2::Combo->new;*
$combo->set_popdown_strings("root", sort(list_users()));
$table->attach($combo, 2, 3, 1, 2, 'fill', 'fill', 0, 0);
my $b2 = gtksignal_connect(Gtk2::Button->new(N("Configure...")),