diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-06 14:49:42 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-24 23:28:13 +0100 |
commit | 53e3518613d628d347ddd8e0b7fc2094458a9864 (patch) | |
tree | 87a29fd6840805cd4e6d5bddcac3e335aa0f2d39 /perl-install | |
parent | 04a9d2b3139a6709aee4b9bc2debf047308a408c (diff) | |
download | drakx-53e3518613d628d347ddd8e0b7fc2094458a9864.tar drakx-53e3518613d628d347ddd8e0b7fc2094458a9864.tar.gz drakx-53e3518613d628d347ddd8e0b7fc2094458a9864.tar.bz2 drakx-53e3518613d628d347ddd8e0b7fc2094458a9864.tar.xz drakx-53e3518613d628d347ddd8e0b7fc2094458a9864.zip |
use the proper Pango API instead of using Pango::SCALE directly
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/ugtk3.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/ugtk3.pm b/perl-install/ugtk3.pm index 4be3b3c15..f442445e6 100644 --- a/perl-install/ugtk3.pm +++ b/perl-install/ugtk3.pm @@ -349,7 +349,7 @@ sub create_box_with_title { my $scroll = gtknew('ScrolledWindow', child => $wtext, width => $width, height => 200); $scroll->signal_connect(realize => sub { my $layout = $wtext->create_pango_layout($text); - $layout->set_width(($width - 10) * Pango::SCALE); + $layout->set_width(Pango::units_from_double($width - 10)); $wtext->set_size_request($width, min(200, second($layout->get_pixel_size) + 10)); $scroll->set_size_request($width, min(200, second($layout->get_pixel_size) + 10)); $o->{rwindow}->queue_resize; |