summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-12-10 05:40:47 +0000
committerThierry Vignaud <tv@mageia.org>2011-12-10 05:40:47 +0000
commitaad8c7c275453a7586841afd0e8d1945e584db8d (patch)
tree7c3b1ef1f12d24612d0cc90d96f683b091334243 /perl-install/ugtk2.pm
parent79296e6c87f45c1139a3784035535755f1a1db92 (diff)
downloaddrakx-aad8c7c275453a7586841afd0e8d1945e584db8d.tar
drakx-aad8c7c275453a7586841afd0e8d1945e584db8d.tar.gz
drakx-aad8c7c275453a7586841afd0e8d1945e584db8d.tar.bz2
drakx-aad8c7c275453a7586841afd0e8d1945e584db8d.tar.xz
drakx-aad8c7c275453a7586841afd0e8d1945e584db8d.zip
(Gtk2::Notify::Queue->show) prevent net_applet to crash on notifications without icons (mga#2876)
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm2
1 files changed, 1 insertions, 1 deletions
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(