summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-24 15:06:51 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-24 15:06:51 +0000
commit05b5aa47bee78b8b0dc1704b4140b4e181eb59f1 (patch)
treebab8ad3b49eaebc260e586c50987c75b9e394342 /perl-install/ugtk2.pm
parentdf3b02bdf073859d3ea90b51ece854ce6622558a (diff)
downloaddrakx-05b5aa47bee78b8b0dc1704b4140b4e181eb59f1.tar
drakx-05b5aa47bee78b8b0dc1704b4140b4e181eb59f1.tar.gz
drakx-05b5aa47bee78b8b0dc1704b4140b4e181eb59f1.tar.bz2
drakx-05b5aa47bee78b8b0dc1704b4140b4e181eb59f1.tar.xz
drakx-05b5aa47bee78b8b0dc1704b4140b4e181eb59f1.zip
(update_text) split it out of Gtk2::Banner->set_pixmap
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 1eb12adc6..11b0beabe 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -1426,6 +1426,11 @@ sub set_pixmap {
my ($darea) = @_;
return if !$darea->realized;
ugtk2::set_back_pixbuf($darea, $darea->{back_pixbuf} || gtknew('Pixbuf', file => 'banner-background'));
+ update_text($darea);
+}
+
+sub update_text {
+ my ($darea) = @_;
$darea->{layout} = $darea->create_pango_layout($darea->{text});
$darea->{txt_width} = ($darea->{layout}->get_pixel_size)[0];
$darea->queue_draw;