From cc1c500eacc7494b21fb00e0098fd80890536f1f Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 21 Oct 2008 13:45:11 +0000 Subject: factorize common label options --- mdkapplet-upgrade-helper | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'mdkapplet-upgrade-helper') 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")), ]), ); -- cgit v1.2.1