From b92f5f4582addb27a9525558f8281e73d9daaf33 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 24 Jun 2008 13:55:49 +0000 Subject: (setState) try harder to show the icon before the bubble so that the later is correctly placed (#40361) git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@243061 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94 --- draksnapshot-applet | 2 ++ 1 file changed, 2 insertions(+) (limited to 'draksnapshot-applet') diff --git a/draksnapshot-applet b/draksnapshot-applet index 8df6714..7fabdbe 100755 --- a/draksnapshot-applet +++ b/draksnapshot-applet @@ -212,7 +212,9 @@ sub setState { } $icon->set_tooltip(formatAlaTeX(translate($state{$state_type}{tt}[0]))); $icon->set_visible($state_type ne 'okay'); + gtkflush(); # so that bubbles are displayed on right icon + 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", -- cgit v1.2.1