summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-19 16:10:58 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-19 16:10:58 +0000
commit77f495d149f12d1b45b82c5750bd2f727e097747 (patch)
tree41a30386c7775528f0b64f9ca30e5ceb9649de33 /perl-install
parent92520fd00a9cb9d236be639718f9cb3724627edc (diff)
downloaddrakx-77f495d149f12d1b45b82c5750bd2f727e097747.tar
drakx-77f495d149f12d1b45b82c5750bd2f727e097747.tar.gz
drakx-77f495d149f12d1b45b82c5750bd2f727e097747.tar.bz2
drakx-77f495d149f12d1b45b82c5750bd2f727e097747.tar.xz
drakx-77f495d149f12d1b45b82c5750bd2f727e097747.zip
(Gtk2::Banner->new) keep around blue_part's width
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/ugtk2.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 180254d8a..78189f169 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -1445,6 +1445,7 @@ sub new {
$darea->modify_font(Gtk2::Pango::FontDescription->from_string("Sans 15"));
eval { $darea->{icon} = ugtk2::gtkcreate_pixbuf($icon) };
my $blue_part = eval { gtknew('Pixbuf', file => 'banner-blue-part', flip => mygtk2::text_direction_rtl()) };
+ my $blue_width = $blue_part->get_width;
$darea->{text} = $text;
require lang;
my $is_rtl = lang::text_direction_rtl();
@@ -1459,7 +1460,7 @@ sub new {
(undef, undef, undef, $d_height) = $darea->window->get_geometry;
my $padding = int(($d_height - $height)/2);
my $d_width = $darea->allocation->width;
- my $x_blue = $is_rtl ? $d_width - $blue_part->get_width : 0;
+ my $x_blue = $is_rtl ? $d_width - $blue_width : 0;
my $x_icon = $is_rtl ? $d_width - $padding - $width : $padding;
my $x_text = $is_rtl ? $x_icon - $padding - 32 - $darea->{txt_width} : $width + $padding +32;
$darea->{layout_height} ||= (($darea->{layout}->get_size)[1])/Gtk2::Pango->PANGO_SCALE;