summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-07 10:07:18 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-07 10:07:18 +0000
commit27fef06948b09370f7c168c1e87015ff1c37767c (patch)
tree429a52253000b4b01e4b7aacad84aa83bb6c5402 /mdkapplet
parent54d0c3b88ddc0200f1635d8b95163797952fc9c1 (diff)
downloadmgaonline-27fef06948b09370f7c168c1e87015ff1c37767c.tar
mgaonline-27fef06948b09370f7c168c1e87015ff1c37767c.tar.gz
mgaonline-27fef06948b09370f7c168c1e87015ff1c37767c.tar.bz2
mgaonline-27fef06948b09370f7c168c1e87015ff1c37767c.tar.xz
mgaonline-27fef06948b09370f7c168c1e87015ff1c37767c.zip
(confirm_upgrade) make "Distro Upgrade" confirmation dialog wider
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet9
1 files changed, 7 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index a6aa0f6d..98b230e4 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -373,6 +373,7 @@ sub restart_applet() {
}
sub confirm_upgrade() {
+ my $width = 500;
my $w = ugtk2->new(N("A new stable distribution has been released"));
my $warn_me = text2bool($local_config{DO_NOT_ASK_FOR_DISTRO_UPGRADE});
gtkadd($w->{window},
@@ -382,12 +383,16 @@ sub confirm_upgrade() {
qw(/usr/share/mcc/themes/default/rpmdrake-mdk.png /usr/share/icons/large/mdkonline.png)),
N("Distribution Upgrade")
),
- gtknew('Label_Left', text => N("A new stable distribution has been released.")),
+ gtknew('Label_Left', text => N("A new stable distribution has been released."),
+ # workaround infamous 6 years old gnome bug #101968:
+ width => $width -50),
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})),
+ $new_distro->{name} || $new_distro->{version}),
+ # workaround infamous 6 years old gnome bug #101968:
+ width => $width -50),
gtknew('CheckButton', text => N("Do not ask me next time"), active_ref => \$warn_me),
create_okcancel($w, N("Yes"), N("No")),
]),