summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-05 12:50:12 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-05 12:50:12 +0000
commit5b17012d26edd829e5d9d596bd7a5b950c68fb11 (patch)
tree8c714bdd49a554f51de84108dfdf6dd0457ba0b0 /mdkapplet
parent3a4c6cbe0cca87dccfa5da612669523b5b93e7a6 (diff)
downloadmgaonline-5b17012d26edd829e5d9d596bd7a5b950c68fb11.tar
mgaonline-5b17012d26edd829e5d9d596bd7a5b950c68fb11.tar.gz
mgaonline-5b17012d26edd829e5d9d596bd7a5b950c68fb11.tar.bz2
mgaonline-5b17012d26edd829e5d9d596bd7a5b950c68fb11.tar.xz
mgaonline-5b17012d26edd829e5d9d596bd7a5b950c68fb11.zip
use Gtk2::Notify instead of Gtk2::NotificationBubble (#37113)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet10
1 files changed, 5 insertions, 5 deletions
diff --git a/mdkapplet b/mdkapplet
index ba943c47..fe687247 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -39,7 +39,7 @@ use ugtk2 qw(:all);
use lib qw(/usr/lib/libDrakX/drakfirsttime);
use mdkonline;
use Gtk2::TrayIcon;
-use Gtk2::NotificationBubble;
+use Gtk2::Notify -init, 'mdkapplet';
# POSIX unmasks the sigprocmask properly
my $sigset = POSIX::SigSet->new;
@@ -458,10 +458,10 @@ sub setState {
gtkset_tip(new Gtk2::Tooltips, $eventbox, formatAlaTeX(translate($state{$state_type}{tt}[0])));
if ($state{$state_type}{tt}[0] && $icon->isa('Gtk2::TrayIcon') && !$state{$state_type}{do_not_use_bubble}) {
- my $bubble = Gtk2::NotificationBubble->new;
- $bubble->attach($icon);
- $bubble->set(N("Warning"), undef, formatAlaTeX(translate($state{$state_type}{tt}[0])));
- $bubble->show(5000);
+ my $bubble = Gtk2::Notify->new(N("Warning"), formatAlaTeX(translate($state{$state_type}{tt}[0])),
+ '/usr/share/icons/mdkonline.png', $icon);
+ $bubble->set_timeout(5000);
+ $bubble->show();
}
my $menu = Gtk2::Menu->new;