summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/ugtk2.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index d7328018e..b1fe135c7 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,5 @@
+- prevent net_applet to crash on notifications without icons (mga#2876)
+
Version 13.71 - 04 December 2011
- service_harddrake:
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 5199068e5..b36927411 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -1606,7 +1606,7 @@ sub show {
my ($self) = @_; # perl_checker: $self = Gtk2::Notify->new
my $info = $self->{queue}[0];
my $notification = Gtk2::Notify->new($info->{title}, $info->{message}, $self->{statusicon});
- $notification->set_icon_from_pixbuf($info->{pixbuf});
+ $notification->set_icon_from_pixbuf($info->{pixbuf}) if $info->{pixbuf};
$notification->set_urgency($info->{urgency}) if $info->{urgency};
foreach my $a (@{$info->{actions} || []}) {
$notification->add_action(