summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-19 16:07:06 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-19 16:07:06 +0000
commitb78d3d24917c5f61140c7833d3b468a894d46e23 (patch)
tree65a0be382c29abc378a519e44cd668f751050725 /perl-install/ugtk2.pm
parent6e614f278797c3efbbbae398b64b6c7cbfbe7b03 (diff)
downloaddrakx-b78d3d24917c5f61140c7833d3b468a894d46e23.tar
drakx-b78d3d24917c5f61140c7833d3b468a894d46e23.tar.gz
drakx-b78d3d24917c5f61140c7833d3b468a894d46e23.tar.bz2
drakx-b78d3d24917c5f61140c7833d3b468a894d46e23.tar.xz
drakx-b78d3d24917c5f61140c7833d3b468a894d46e23.zip
(Gtk2::Banner->new, set_pixmap) keep around the background pixbuf (needed for next commit)
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 155db3086..27ede1ffa 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -1427,7 +1427,7 @@ use ugtk2 qw(:helpers :wrappers);
sub set_pixmap {
my ($darea) = @_;
return if !$darea->realized;
- ugtk2::set_back_pixbuf($darea, gtknew('Pixbuf', file => 'banner-background'));
+ ugtk2::set_back_pixbuf($darea, $darea->{back_pixbuf});
$darea->{layout} = $darea->create_pango_layout($darea->{text});
$darea->{txt_width} = ($darea->{layout}->get_pixel_size)[0];
$darea->queue_draw;
@@ -1439,6 +1439,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;
$darea->set_size_request(-1, $d_height);
$darea->modify_font(Gtk2::Pango::FontDescription->from_string("Sans 15"));