summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-21 13:45:11 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-21 13:45:11 +0000
commitcc1c500eacc7494b21fb00e0098fd80890536f1f (patch)
tree15b3ac7dc32da74f5e660e8786bd7902658a88a3
parent9134a5556b2c85936bbb09a0443490397ff01bb6 (diff)
downloadmgaonline-cc1c500eacc7494b21fb00e0098fd80890536f1f.tar
mgaonline-cc1c500eacc7494b21fb00e0098fd80890536f1f.tar.gz
mgaonline-cc1c500eacc7494b21fb00e0098fd80890536f1f.tar.bz2
mgaonline-cc1c500eacc7494b21fb00e0098fd80890536f1f.tar.xz
mgaonline-cc1c500eacc7494b21fb00e0098fd80890536f1f.zip
factorize common label options
-rwxr-xr-xmdkapplet-upgrade-helper18
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")),
]),
);