diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-10-22 14:47:51 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-10-22 14:47:51 +0000 |
commit | 881699eaa210a826cb2232d50720c1d77c05430f (patch) | |
tree | 97d608f29e36a2a3fcc4298aff016cf73b9fe1a5 | |
parent | bc9475b3e0ea59f8119321e438104c20c4a0f54a (diff) | |
download | mgaonline-881699eaa210a826cb2232d50720c1d77c05430f.tar mgaonline-881699eaa210a826cb2232d50720c1d77c05430f.tar.gz mgaonline-881699eaa210a826cb2232d50720c1d77c05430f.tar.bz2 mgaonline-881699eaa210a826cb2232d50720c1d77c05430f.tar.xz mgaonline-881699eaa210a826cb2232d50720c1d77c05430f.zip |
(setState) use notification bubbles
-rwxr-xr-x | mdkapplet | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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})); |