summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-20 16:10:12 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-20 16:10:12 +0000
commit9c27489578586ec106f8b03d820c6336a5f878c1 (patch)
treec9b4acb7ba97af19d6ac57045b7ef60ec352cf78 /mdkapplet
parent83636fef9d08cebbcd0c6cd4997f4aba59cc2a15 (diff)
downloadmgaonline-9c27489578586ec106f8b03d820c6336a5f878c1.tar
mgaonline-9c27489578586ec106f8b03d820c6336a5f878c1.tar.gz
mgaonline-9c27489578586ec106f8b03d820c6336a5f878c1.tar.bz2
mgaonline-9c27489578586ec106f8b03d820c6336a5f878c1.tar.xz
mgaonline-9c27489578586ec106f8b03d820c6336a5f878c1.zip
(confirm_upgrade) factorize sizing (needed for next commits)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet12
1 files changed, 6 insertions, 6 deletions
diff --git a/mdkapplet b/mdkapplet
index 631be561..10aae9e9 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -344,19 +344,19 @@ sub confirm_upgrade() {
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(),
- gtknew('Label_Left', text => N("A new version of Mandriva Linux distribution has been released."),
- # workaround infamous 6 years old gnome bug #101968:
- width => $width - 50),
+ gtknew('Label_Left', text => N("A new version of Mandriva Linux distribution has been released."), @common),
gtknew('HButtonBox', layout => 'start', children_tight => [
my $link = Gtk2::LinkButton->new($new_distro->{url}, N("More info about this new version")),
]),
gtknew('Label_Left', text => N("Do you want to upgrade to the '\%s' distribution?",
- $new_distro->{name} || $new_distro->{version}),
- # workaround infamous 6 years old gnome bug #101968:
- width => $width - 50),
+ $new_distro->{name} || $new_distro->{version}), @common),
gtknew('CheckButton', text => N("Do not ask me next time"), active_ref => \$warn_me),
create_okcancel($w, N("Yes"), N("No")),
]),