summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-29 20:57:36 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-29 20:57:36 +0000
commit6a1023f1ace08b09bec018b9d88e64f0fbc93e2e (patch)
tree48f79ac3a88f9513f63cc1a9460ca7bc5e190d74 /perl-install
parentb1a2f04f4f96fec86b2b925e6a6abe066870eefb (diff)
downloaddrakx-6a1023f1ace08b09bec018b9d88e64f0fbc93e2e.tar
drakx-6a1023f1ace08b09bec018b9d88e64f0fbc93e2e.tar.gz
drakx-6a1023f1ace08b09bec018b9d88e64f0fbc93e2e.tar.bz2
drakx-6a1023f1ace08b09bec018b9d88e64f0fbc93e2e.tar.xz
drakx-6a1023f1ace08b09bec018b9d88e64f0fbc93e2e.zip
(Gtk2::Banner->new) simplify
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/ugtk2.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 58c5c2946..8fb37611c 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -1467,7 +1467,7 @@ sub new {
my $x_icon = $is_rtl ? $d_width - 12 - $width : 12;
# here: 48 is the amount of white background in the blue background we wish to ignore:
my $x_text = $is_rtl ? $d_width - $blue_width + 48 - $darea->{txt_width} : $blue_width - 48;
- $darea->{layout_height} ||= (($darea->{layout}->get_size)[1])/Gtk2::Pango->scale;
+ $darea->{layout_height} ||= ($darea->{layout}->get_pixel_size)[1];
$blue_part->render_to_drawable($darea->window, $style->bg_gc('normal'),
0, 0, $x_blue, 0, -1, -1, 'none', 0, 0);
$darea->{icon}->render_to_drawable($darea->window, $style->bg_gc('normal'),