diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-21 13:45:11 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-21 13:45:11 +0000 |
commit | cc1c500eacc7494b21fb00e0098fd80890536f1f (patch) | |
tree | 15b3ac7dc32da74f5e660e8786bd7902658a88a3 /mdkapplet-upgrade-helper | |
parent | 9134a5556b2c85936bbb09a0443490397ff01bb6 (diff) | |
download | mgaonline-cc1c500eacc7494b21fb00e0098fd80890536f1f.tar mgaonline-cc1c500eacc7494b21fb00e0098fd80890536f1f.tar.gz mgaonline-cc1c500eacc7494b21fb00e0098fd80890536f1f.tar.bz2 mgaonline-cc1c500eacc7494b21fb00e0098fd80890536f1f.tar.xz mgaonline-cc1c500eacc7494b21fb00e0098fd80890536f1f.zip |
factorize common label options
Diffstat (limited to 'mdkapplet-upgrade-helper')
-rwxr-xr-x | mdkapplet-upgrade-helper | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mdkapplet-upgrade-helper b/mdkapplet-upgrade-helper index 2ec28060..e859a20b 100755 --- a/mdkapplet-upgrade-helper +++ b/mdkapplet-upgrade-helper @@ -107,6 +107,13 @@ sub run_gurpmi() { } } +my @common = ( + # explicitely wrap (for 2008.1): + line_wrap => 1, + # workaround infamous 6 years old gnome bug #101968: + width => $width - 50, +); + sub upgrade_failed() { ugtk2::ask_warn(N("Error"), N("Installation failed"), @@ -122,15 +129,8 @@ sub upgrade_distro_congratulations() { gtknew('VBox', children_tight => [ get_banner(), gtknew('Label_Left', text => N("Upgrade to Mandriva %s release was successfull.", $new_distro_version), - # explicitely wrap (for 2008.1): - line_wrap => 1, - # workaround infamous 6 years old gnome bug #101968: - width => $width - 50), - gtknew('Label_Left', text => N("You must restart your system."), - # explicitely wrap (for 2008.1): - line_wrap => 1, - # workaround infamous 6 years old gnome bug #101968: - width => $width - 50), + @common), + gtknew('Label_Left', text => N("You must restart your system."), @common), create_okcancel($w, N("Reboot"), N("Cancel")), ]), ); |