diff options
author | blino <blino@mageia.org> | 2020-05-29 19:46:15 +0200 |
---|---|---|
committer | Nicolas Lécureuil <neoclust@mageia.org> | 2020-06-02 10:10:58 +0200 |
commit | 9b1961d71498bc121d4f3be3351813ce90f30a51 (patch) | |
tree | 9a8785bacd4953361b5854a9d5ce935ac36ef26e /draksnapshot-applet | |
parent | f2aabc70f647d0aad73c7cdcd16b08176398ee4e (diff) | |
download | draksnapshot-9b1961d71498bc121d4f3be3351813ce90f30a51.tar draksnapshot-9b1961d71498bc121d4f3be3351813ce90f30a51.tar.gz draksnapshot-9b1961d71498bc121d4f3be3351813ce90f30a51.tar.bz2 draksnapshot-9b1961d71498bc121d4f3be3351813ce90f30a51.tar.xz draksnapshot-9b1961d71498bc121d4f3be3351813ce90f30a51.zip |
draksnapshot applet fix due to new perl
Diffstat (limited to 'draksnapshot-applet')
-rwxr-xr-x | draksnapshot-applet | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/draksnapshot-applet b/draksnapshot-applet index ed52478..4a2012a 100755 --- a/draksnapshot-applet +++ b/draksnapshot-applet @@ -129,14 +129,14 @@ if ($dbus && $do) { # make icon actually visible so that notification gots proper positionning: gtkflush(); my $bubble = - Gtk2::Notify->new_with_status_icon(N("Error. Service disabled."), + Gtk2::Notify->new(N("Error. Service disabled."), join("\n", formatAlaTeX(N("Error while initializing DBus:")), $dbus_error, '', N("Disabling the service."), ), - '/usr/share/icons/draksnapshot.png', $icon); + '/usr/share/icons/draksnapshot.png'); $bubble->set_urgency('critical'); my $timeout_bubble = 5000; $bubble->set_timeout($timeout_bubble); @@ -237,8 +237,8 @@ sub setState { select(undef, undef, undef, 0.1); #- hackish :-( if ($state{$state_type}{tt}[0] && $icon->isa('Gtk2::StatusIcon') && !$state{$state_type}{do_not_use_bubble}) { - my $bubble = Gtk2::Notify->new_with_status_icon(N("Info"), formatAlaTeX(translate($state{$state_type}{tt}[0])) . "\n", - '/usr/share/icons/draksnapshot.png', $icon); + my $bubble = Gtk2::Notify->new(N("Info"), formatAlaTeX(translate($state{$state_type}{tt}[0])) . "\n", + '/usr/share/icons/draksnapshot.png'); $bubble->set_timeout(5000); eval { $bubble->show }; } |