diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-09-09 12:51:09 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-24 21:28:37 +0100 |
commit | 807df2a2b558461a2890f9bec0050f0bd974c92e (patch) | |
tree | 375c127197d55fa451eb875a08af63a4913be29d /perl-install/diskdrake/hd_gtk.pm | |
parent | 4ac802ad9ae7e24d1e32f1c5b55f5bbb66edbc8c (diff) | |
download | drakx-807df2a2b558461a2890f9bec0050f0bd974c92e.tar drakx-807df2a2b558461a2890f9bec0050f0bd974c92e.tar.gz drakx-807df2a2b558461a2890f9bec0050f0bd974c92e.tar.bz2 drakx-807df2a2b558461a2890f9bec0050f0bd974c92e.tar.xz drakx-807df2a2b558461a2890f9bec0050f0bd974c92e.zip |
fix computing width without Gdk::Window
Diffstat (limited to 'perl-install/diskdrake/hd_gtk.pm')
-rw-r--r-- | perl-install/diskdrake/hd_gtk.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm index de8b1d752..fa52a3e57 100644 --- a/perl-install/diskdrake/hd_gtk.pm +++ b/perl-install/diskdrake/hd_gtk.pm @@ -318,7 +318,7 @@ sub create_automatic_notebooks { sub create_buttons4partitions { my ($kind, $totalsectors, @parts) = @_; - $width = first($w->{window}->get_window->get_size) - first(get_action_box_size()) - 25 if $w->{window}->get_window; + $width = $w->{window}->get_allocated_width - first(get_action_box_size()) - 25 if $w->{window}->get_window; my $ratio = $totalsectors ? ($width - @parts * $minwidth) / $totalsectors : 1; while (1) { |