From 462ead2d35ccd99294ed6087d53288d0066d13be Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 3 Aug 2007 10:22:06 +0000 Subject: group gui initialization --- bin/drakroam | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'bin') 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)), -- cgit v1.2.1