summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-08-26 13:55:57 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-08-26 13:55:57 +0000
commit1840e25025dc98cc74a53831e0b9ecef44f813f0 (patch)
tree335d105ba48713544d17b8ca21236a531116d3f1 /perl-install
parent3818550c3de53717cdefa154328cb68d876e594b (diff)
downloaddrakx-1840e25025dc98cc74a53831e0b9ecef44f813f0.tar
drakx-1840e25025dc98cc74a53831e0b9ecef44f813f0.tar.gz
drakx-1840e25025dc98cc74a53831e0b9ecef44f813f0.tar.bz2
drakx-1840e25025dc98cc74a53831e0b9ecef44f813f0.tar.xz
drakx-1840e25025dc98cc74a53831e0b9ecef44f813f0.zip
(Gtk2::Banner->new) banners are smaller at install time
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/ugtk2.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 34eb3eae8..99050b5a3 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -1542,7 +1542,7 @@ sub new {
my ($_class, $icon, $text, $o_options) = @_;
my $darea = Gtk2::DrawingArea->new;
- my $d_height = 75;
+ my $d_height = $::isInstall ? 55 : 75;
$darea->set_size_request(-1, $d_height);
$darea->modify_font(Gtk2::Pango::FontDescription->from_string("Sans Bold 14"));
$darea->{icon} = ugtk2::gtkcreate_pixbuf($icon);
@@ -1561,7 +1561,7 @@ sub new {
my $x_text = $is_rtl ? $x_icon - $padding - $darea->{txt_width} : $height + $padding*2;
$darea->{icon}->render_to_drawable($darea->window, $style->bg_gc('normal'),
0, 0, $x_icon, $padding, -1, -1, 'none', 0, 0);
- $darea->window->draw_layout($style->fg_gc('normal'), $x_text, $o_options->{txt_ypos} || 25,
+ $darea->window->draw_layout($style->fg_gc('normal'), $x_text, $o_options->{txt_ypos} || $::isInstall ? 17 : 25,
$darea->{layout});
1;
});