summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-10-22 14:47:51 +0000
committerThierry Vignaud <tv@mandriva.org>2007-10-22 14:47:51 +0000
commit881699eaa210a826cb2232d50720c1d77c05430f (patch)
tree97d608f29e36a2a3fcc4298aff016cf73b9fe1a5 /mdkapplet
parentbc9475b3e0ea59f8119321e438104c20c4a0f54a (diff)
downloadmgaonline-881699eaa210a826cb2232d50720c1d77c05430f.tar
mgaonline-881699eaa210a826cb2232d50720c1d77c05430f.tar.gz
mgaonline-881699eaa210a826cb2232d50720c1d77c05430f.tar.bz2
mgaonline-881699eaa210a826cb2232d50720c1d77c05430f.tar.xz
mgaonline-881699eaa210a826cb2232d50720c1d77c05430f.zip
(setState) use notification bubbles
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet6
1 files changed, 6 insertions, 0 deletions
diff --git a/mdkapplet b/mdkapplet
index 934f07f0..1d91222a 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -618,6 +618,12 @@ sub setState {
my $tmp = gtkcreate_pixbuf($state{$state_type}{colour}[0]);
$img->set_from_pixbuf($tmp);
gtkset_tip(new Gtk2::Tooltips, $eventbox, formatAlaTeX(translate($state{$state_type}{tt}[0])));
+
+ my $bubble = Gtk2::NotificationBubble->new;
+ $bubble->attach($icon);
+ $bubble->set(N("Warning"), undef, formatAlaTeX(translate($state{$state_type}{tt}[0])));
+ $bubble->show(5000);
+
my $menu = Gtk2::Menu->new;
foreach (@$arr) {
$menu->append(gtksignal_connect(gtkshow(Gtk2::MenuItem->new_with_label($actions{$_}{name})), activate => $actions{$_}{launch}));