summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-08-03 10:22:06 +0000
committerOlivier Blin <oblin@mandriva.com>2007-08-03 10:22:06 +0000
commit462ead2d35ccd99294ed6087d53288d0066d13be (patch)
treede19ddeb33df956c5e4749bd38d70a59cd76be95 /bin
parentd5b190e6ef3f98126fdd53b6aadce417b448efc4 (diff)
downloaddrakx-net-462ead2d35ccd99294ed6087d53288d0066d13be.tar
drakx-net-462ead2d35ccd99294ed6087d53288d0066d13be.tar.gz
drakx-net-462ead2d35ccd99294ed6087d53288d0066d13be.tar.bz2
drakx-net-462ead2d35ccd99294ed6087d53288d0066d13be.tar.xz
drakx-net-462ead2d35ccd99294ed6087d53288d0066d13be.zip
group gui initialization
Diffstat (limited to 'bin')
-rwxr-xr-xbin/drakroam15
1 files changed, 8 insertions, 7 deletions
diff --git a/bin/drakroam b/bin/drakroam
index b79cd8e..478d9cd 100755
--- a/bin/drakroam
+++ b/bin/drakroam
@@ -29,13 +29,6 @@ use modules;
my $droam = {};
-my $title = N("Wireless connection");
-my $icon = '/usr/share/mcc/themes/default/drakroam-mdk.png';
-
-$ugtk2::wm_icon = $icon;
-$droam->{gui}{w} = ugtk2->new($title);
-#- so that transient_for is defined, for wait messages and popups to be centered
-$::main_window = $droam->{gui}{w}{real_window};
my $in = 'interactive'->vnew('su');
my $net = {};
@@ -301,6 +294,14 @@ $droam->{gui}{pixbufs} = {
} qw(open weak strong) },
};
+my $title = N("Wireless connection");
+my $icon = '/usr/share/mcc/themes/default/drakroam-mdk.png';
+
+$ugtk2::wm_icon = $icon;
+$droam->{gui}{w} = ugtk2->new($title);
+#- so that transient_for is defined, for wait messages and popups to be centered
+$::main_window = $droam->{gui}{w}{real_window};
+
gtkadd($droam->{gui}{w}{window},
gtknew('VBox', spacing => 5, children => [
$::isEmbedded ? () : (0, Gtk2::Banner->new($icon, $title)),