summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblino <blino@mageia.org>2020-05-29 19:46:15 +0200
committerNicolas Lécureuil <neoclust@mageia.org>2020-06-02 10:10:58 +0200
commit9b1961d71498bc121d4f3be3351813ce90f30a51 (patch)
tree9a8785bacd4953361b5854a9d5ce935ac36ef26e
parentf2aabc70f647d0aad73c7cdcd16b08176398ee4e (diff)
downloaddraksnapshot-9b1961d71498bc121d4f3be3351813ce90f30a51.tar
draksnapshot-9b1961d71498bc121d4f3be3351813ce90f30a51.tar.gz
draksnapshot-9b1961d71498bc121d4f3be3351813ce90f30a51.tar.bz2
draksnapshot-9b1961d71498bc121d4f3be3351813ce90f30a51.tar.xz
draksnapshot-9b1961d71498bc121d4f3be3351813ce90f30a51.zip
draksnapshot applet fix due to new perl
-rwxr-xr-xdraksnapshot-applet8
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 };
}