diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-29 17:54:08 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-29 21:41:12 +0100 |
commit | cb2bb1873b8120bd1b3b0dadd0aa9222f336b904 (patch) | |
tree | f2b683b7465627235e363a9c76f136202d26317f /perl-install | |
parent | c5275f0b77863e5348435d0ed246e8cefdd8dffb (diff) | |
download | drakx-cb2bb1873b8120bd1b3b0dadd0aa9222f336b904.tar drakx-cb2bb1873b8120bd1b3b0dadd0aa9222f336b904.tar.gz drakx-cb2bb1873b8120bd1b3b0dadd0aa9222f336b904.tar.bz2 drakx-cb2bb1873b8120bd1b3b0dadd0aa9222f336b904.tar.xz drakx-cb2bb1873b8120bd1b3b0dadd0aa9222f336b904.zip |
fix dialog keeping growing when switching tabs
move partition labels to toolips
labels broke sizing by enlarging partition ToggleButtons
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/NEWS | 3 | ||||
-rw-r--r-- | perl-install/diskdrake/hd_gtk.pm | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS index c6c378006..ead60dda3 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,3 +1,6 @@ +- diskdrake: + o fix dialog keeping growing when switching tabs (mga#11822): + move partition labels to toolips - draksound: o do not offer to switch to OSS o do not offer to switch to another driver if there's none diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm index 5ddc91230..688a476f1 100644 --- a/perl-install/diskdrake/hd_gtk.pm +++ b/perl-install/diskdrake/hd_gtk.pm @@ -321,7 +321,7 @@ sub create_automatic_notebooks { sub create_buttons4partitions { my ($kind, $totalsectors, @parts) = @_; - $width = $w->{window}->get_allocated_width - first(get_action_box_size()) - 25 if $w->{window}->get_window; + $width = $w->{window}->get_allocated_width - first(get_action_box_size()) - 50 if $w->{window}->get_window; my $ratio = $totalsectors ? ($width - @parts * $minwidth) / $totalsectors : 1; my $i = 1; @@ -346,7 +346,8 @@ sub create_buttons4partitions { } my $info = $entry->{mntpoint} || $entry->{device_LABEL} || ''; $info .= "\n" . ($entry->{size} ? formatXiB($entry->{size}, 512) : N("Unknown")) if $info; - my $w = Gtk3::ToggleButton->new_with_label($info) or internal_error('new_with_label'); + my $w = Gtk3::ToggleButton->new() or internal_error('new_with_label'); + $w->set_tooltip_text($info); $w->signal_connect(clicked => sub { $current_button != $w or return; current_entry_changed($kind, $entry); |