diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-21 15:58:18 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-21 15:58:18 +0000 |
commit | f62490fc53e8ec600f0372640a0bc849fa9ac34d (patch) | |
tree | bd1bb14af6bfbe60896e39abd5a4b68b2ab0b949 /mdkapplet | |
parent | 82b8f10585296bb6ebe3ce302cfb1521e45d1946 (diff) | |
download | mgaonline-f62490fc53e8ec600f0372640a0bc849fa9ac34d.tar mgaonline-f62490fc53e8ec600f0372640a0bc849fa9ac34d.tar.gz mgaonline-f62490fc53e8ec600f0372640a0bc849fa9ac34d.tar.bz2 mgaonline-f62490fc53e8ec600f0372640a0bc849fa9ac34d.tar.xz mgaonline-f62490fc53e8ec600f0372640a0bc849fa9ac34d.zip |
(confirm_upgrade) split out common label settings & width out of
upgrade_distro_() (needed for next commits)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -249,6 +249,13 @@ $SIG{USR2} = 'IGNORE'; $SIG{CHLD} = \&harvester; run_program::raw({ detach => 1 }, 'ionice', '-p', $$, '-n7'); + +my $width = 500; +my @common = ( + # workaround infamous 6 years old gnome bug #101968: + width => $width - 50, +); + Gtk2->main; ugtk2::exit(0); @@ -342,13 +349,8 @@ sub configNetwork() { log::explanations(N_("Launching drakconnect\n")); fork_exe sub confirm_upgrade() { local $mygtk2::left_padding = 0; - my $width = 500; my $w = ugtk2->new(N("New version of Mandriva Linux distribution")); my $warn_me = text2bool($local_config{DO_NOT_ASK_FOR_DISTRO_UPGRADE}); - my @common = ( - # workaround infamous 6 years old gnome bug #101968: - width => $width - 50, - ); gtkadd($w->{window}, gtknew('VBox', children_tight => [ get_banner(), |