summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-09-05 10:45:59 +0000
committerThierry Vignaud <tv@mageia.org>2012-09-05 10:45:59 +0000
commitc21b7ce1f6e4c2c127e186f4d1f5ce6b7d8d4b80 (patch)
treefaa324ad74b1879609dcdea54479ebed261c8cb0
parent3c622e904357321ff6ffc0bf09d7338941243318 (diff)
downloaddrakx-c21b7ce1f6e4c2c127e186f4d1f5ce6b7d8d4b80.tar
drakx-c21b7ce1f6e4c2c127e186f4d1f5ce6b7d8d4b80.tar.gz
drakx-c21b7ce1f6e4c2c127e186f4d1f5ce6b7d8d4b80.tar.bz2
drakx-c21b7ce1f6e4c2c127e186f4d1f5ce6b7d8d4b80.tar.xz
drakx-c21b7ce1f6e4c2c127e186f4d1f5ce6b7d8d4b80.zip
(Gtk2::Banner->new) fix crashing when a banner icon doesn't exist (mga#5223)
(backported from trunk)
-rw-r--r--perl-install/NEWS1
-rw-r--r--perl-install/ugtk2.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index e21048b2d..5b970016d 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -9,6 +9,7 @@
- drakxservices:
o when listing services ensure disabled services that can be enabled are
shown (mga#6843)
+- fix crashing when a banner icon doesn't exist (mga#5223)
Version 14.21 - 11 May 2012
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 65f07cc0d..69185247c 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -1448,6 +1448,7 @@ sub new {
$darea->set_size_request(-1, $d_height);
$darea->modify_font(Gtk2::Pango::FontDescription->from_string("13"));
eval { $darea->{icon} = ugtk2::gtkcreate_pixbuf($icon) };
+ $darea->{icon} ||= ugtk2::gtkcreate_pixbuf(ugtk2::wm_icon());
my $blue_part = eval { gtknew('Pixbuf', file => 'banner-blue-part', flip => mygtk2::text_direction_rtl()) };
my $blue_width = $blue_part->get_width;
$darea->{text} = $text;