aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-18 15:37:41 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 21:30:38 +0100
commitd5c3d006f75288627a355c50800389a06475cc5c (patch)
treeed43f365302f1cda4e4bfaad1865507dac90c100
parent390bb0e4b494294eba1a84b01049356cae1b2159 (diff)
downloaduserdrake-d5c3d006f75288627a355c50800389a06475cc5c.tar
userdrake-d5c3d006f75288627a355c50800389a06475cc5c.tar.gz
userdrake-d5c3d006f75288627a355c50800389a06475cc5c.tar.bz2
userdrake-d5c3d006f75288627a355c50800389a06475cc5c.tar.xz
userdrake-d5c3d006f75288627a355c50800389a06475cc5c.zip
use (my|u)gtk3 instead of *tk2
-rwxr-xr-xuserdrake10
1 files changed, 5 insertions, 5 deletions
diff --git a/userdrake b/userdrake
index 6d091c4..539f8f6 100755
--- a/userdrake
+++ b/userdrake
@@ -31,8 +31,8 @@ use transfugdrake;
use common;
use run_program;
use any;
-use mygtk2 qw(gtknew); #- do not import gtkadd which conflicts with ugtk2 version
-use ugtk2 qw(:all);
+use mygtk3 qw(gtknew); #- do not import gtkadd which conflicts with ugtk2 version
+use ugtk3 qw(:all);
use interactive;
use POSIX qw(mktime ceil);
use USER;
@@ -42,7 +42,7 @@ use Gtk2::Gdk::Keysyms;
use utf8;
use log;
-$ugtk2::wm_icon = "userdrake";
+$ugtk3::wm_icon = "userdrake";
my $conffile = '/etc/sysconfig/userdrake';
my $secfile = '/etc/sysconfig/msec';
@@ -80,7 +80,7 @@ my $sysfilter = text2bool($prefs{FILTER});
sub HelpSystem() { run_program::raw({ detach => 1 }, 'drakhelp', '--id', 'userdrake') }
-$us->{wnd} = ugtk2->new(N("Mageia Users Management Tool") . " " . $us->{VERSION});
+$us->{wnd} = ugtk3->new(N("Mageia Users Management Tool") . " " . $us->{VERSION});
$::main_window = $us->{wnd}{real_window};
gtkset_size_request($us->{wnd}{rwindow}, 660, 460);
$us->{wnd}{rwindow}->set_position('center') if !$::isEmbedded;
@@ -223,7 +223,7 @@ $window_splash->destroy;
undef $window_splash;
$us->{wnd}->main;
-ugtk2->exit(0);
+ugtk3->exit(0);
sub is_xguest_installed() {
-e '/etc/security/namespace.d/xguest.conf';