summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-19 16:10:27 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-19 16:10:27 +0000
commit92520fd00a9cb9d236be639718f9cb3724627edc (patch)
treea0f3a5a5d19a5be1d58d2547cdd9a5ec19537ab4
parentb78d3d24917c5f61140c7833d3b468a894d46e23 (diff)
downloaddrakx-92520fd00a9cb9d236be639718f9cb3724627edc.tar
drakx-92520fd00a9cb9d236be639718f9cb3724627edc.tar.gz
drakx-92520fd00a9cb9d236be639718f9cb3724627edc.tar.bz2
drakx-92520fd00a9cb9d236be639718f9cb3724627edc.tar.xz
drakx-92520fd00a9cb9d236be639718f9cb3724627edc.zip
(Gtk2::Banner->new) do not hardcode banner height
-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 27ede1ffa..180254d8a 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -1440,7 +1440,7 @@ sub new {
mygtk2::import_style_ressources();
my $darea = gtknew('DrawingArea', widget_name => 'Banner');
$darea->{back_pixbuf} = gtknew('Pixbuf', file => 'banner-background');
- my $d_height = 54;
+ my $d_height = $darea->{back_pixbuf}->get_height;
$darea->set_size_request(-1, $d_height);
$darea->modify_font(Gtk2::Pango::FontDescription->from_string("Sans 15"));
eval { $darea->{icon} = ugtk2::gtkcreate_pixbuf($icon) };