summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-06-24 13:55:49 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-06-24 13:55:49 +0000
commitb92f5f4582addb27a9525558f8281e73d9daaf33 (patch)
tree47a973aae4116f0e10de42fff3639ba7a7b1a84e
parentc0ec9bf7ff37fff3a85bf0c66ded137ec4c8884f (diff)
downloaddraksnapshot-b92f5f4582addb27a9525558f8281e73d9daaf33.tar
draksnapshot-b92f5f4582addb27a9525558f8281e73d9daaf33.tar.gz
draksnapshot-b92f5f4582addb27a9525558f8281e73d9daaf33.tar.bz2
draksnapshot-b92f5f4582addb27a9525558f8281e73d9daaf33.tar.xz
draksnapshot-b92f5f4582addb27a9525558f8281e73d9daaf33.zip
(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
-rw-r--r--NEWS2
-rwxr-xr-xdraksnapshot-applet2
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index f7aa8bc..77bdb42 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@
o make notifications be more informative (#40360)
o keep running if configured once
o only popup if something is mounted
+ o try harder to show the icon before the bubble so that the later is
+ correctly placed (#40361)
- configurator:
o fix backup not done due to bad permissions (#39811)
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",