diff options
author | damien <damien@mandriva.com> | 2001-04-08 05:33:14 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2001-04-08 05:33:14 +0000 |
commit | 8893a1832ef6845da2d19d05d2c63d163aa4aafc (patch) | |
tree | 32261f89214581b70f4b208723dfa78ea42961a2 /perl-install/my_gtk.pm | |
parent | 5e8ab79263d7731b4f9fff88e466755ecf569950 (diff) | |
download | drakx-backup-do-not-use-8893a1832ef6845da2d19d05d2c63d163aa4aafc.tar drakx-backup-do-not-use-8893a1832ef6845da2d19d05d2c63d163aa4aafc.tar.gz drakx-backup-do-not-use-8893a1832ef6845da2d19d05d2c63d163aa4aafc.tar.bz2 drakx-backup-do-not-use-8893a1832ef6845da2d19d05d2c63d163aa4aafc.tar.xz drakx-backup-do-not-use-8893a1832ef6845da2d19d05d2c63d163aa4aafc.zip |
updated
Diffstat (limited to 'perl-install/my_gtk.pm')
-rw-r--r-- | perl-install/my_gtk.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm index 8a9f47303..e84c5a0a4 100644 --- a/perl-install/my_gtk.pm +++ b/perl-install/my_gtk.pm @@ -63,12 +63,20 @@ sub new { my ($y1, $x1) = $im_up->get_size; # my ($im_left, $mask_left) = gtkcreate_png($::Wizard_pix_left || "wiz_default_left.png"); # my ($y2, $x2) = $im_left->get_size; + my $style= new Gtk::Style; + $style->font(Gtk::Gdk::Font->fontset_load("-adobe-times-bold-r-normal-*-24-*-75-75-p-*-iso8859-*")); + my $w = $style->font->string_width($::Wizard_title); $draw1->signal_connect(expose_event => sub { my $i; for ($i=0;$i<(540/$y1);$i++) { $draw1->window->draw_pixmap ($draw1->style->bg_gc('normal'), $im_up, 0, 0, 0, $y1*$i, $x1 , $y1 ); + $draw1->window->draw_string( + $style->font, + $draw1->style->white_gc, + 140+(380-$w)/2, 62, + ($::Wizard_title) ); } }); # $draw2->signal_connect(expose_event => sub { |