From e50a210f3b4e17b01fc084ddb0b7fe5d9c2a3707 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 22 Sep 2008 17:51:14 +0000 Subject: fix/workaround crash when setting banner background (Can't call method "get_width" on an undefined value) it got broken three days ago (246038) by Gtk2::Banner changes, and install::steps_gtk calls Gtk2::Banner::set_pixmap without a real Gtk2::Banner object (but with an Install_Title object), which does not define back_pixbuf member to be fixed properly by the previous committer (not to name titi...) --- perl-install/install/NEWS | 3 +++ perl-install/ugtk2.pm | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 06c19e8d9..95a24921e 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,6 @@ +- fix/workaround crash when setting banner background + (Can't call method "get_width" on an undefined value) + Version 11.50.2 - 22 September 2008 - RC2 logo diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index e7ad41cbc..e5eb092a2 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -1425,7 +1425,7 @@ use ugtk2 qw(:helpers :wrappers); sub set_pixmap { my ($darea) = @_; return if !$darea->realized; - ugtk2::set_back_pixbuf($darea, $darea->{back_pixbuf}); + ugtk2::set_back_pixbuf($darea, $darea->{back_pixbuf} || gtknew('Pixbuf', file => 'banner-background')); $darea->{layout} = $darea->create_pango_layout($darea->{text}); $darea->{txt_width} = ($darea->{layout}->get_pixel_size)[0]; $darea->queue_draw; -- cgit v1.2.1