summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-08-13 09:38:19 +0000
committerThierry Vignaud <tv@mandriva.org>2008-08-13 09:38:19 +0000
commitef1bd99c28a497f53fe769836657fccaf0f6b80a (patch)
tree480889ced3b66a894594e7378b9c1be729bbdeda /perl-install
parent21f296aacb5ee8f1f2c743679519ad0f0ed62ffd (diff)
downloaddrakx-backup-do-not-use-ef1bd99c28a497f53fe769836657fccaf0f6b80a.tar
drakx-backup-do-not-use-ef1bd99c28a497f53fe769836657fccaf0f6b80a.tar.gz
drakx-backup-do-not-use-ef1bd99c28a497f53fe769836657fccaf0f6b80a.tar.bz2
drakx-backup-do-not-use-ef1bd99c28a497f53fe769836657fccaf0f6b80a.tar.xz
drakx-backup-do-not-use-ef1bd99c28a497f53fe769836657fccaf0f6b80a.zip
(Gtk2::Banner::new) drop install specific bits now we don't use
Banners anymore in order to render titles at install time
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/ugtk2.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index d7165e98a..ef5c5801d 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -1424,11 +1424,9 @@ sub new {
my ($_class, $icon, $text, $o_options) = @_;
my $darea = Gtk2::DrawingArea->new;
- $darea->set_name('Banner') if $::isInstall;
- my $d_height = $::isInstall ? 35 : 75;
+ my $d_height = 75;
$darea->set_size_request(-1, $d_height);
- my $font_size = $::isInstaller ? 12 : 14;
- $darea->modify_font(Gtk2::Pango::FontDescription->from_string("Sans Bold $font_size"));
+ $darea->modify_font(Gtk2::Pango::FontDescription->from_string("Sans Bold 14"));
$darea->{icon} = ugtk2::gtkcreate_pixbuf($icon);
$darea->{text} = $text;
require lang;
@@ -1448,7 +1446,7 @@ sub new {
my $x_text = $is_rtl ? $x_icon - $padding - $darea->{txt_width} : $width + $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} || $::isInstall && 13 || $d_height/3,
+ $darea->window->draw_layout($style->fg_gc('normal'), $x_text, $o_options->{txt_ypos} || $d_height/3,
$darea->{layout});
1;
});