From 881699eaa210a826cb2232d50720c1d77c05430f Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 22 Oct 2007 14:47:51 +0000 Subject: (setState) use notification bubbles --- mdkapplet | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mdkapplet') 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})); -- cgit v1.2.1