[hamster-applet] turns out that we care for focus out after all - to hide the popup
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] turns out that we care for focus out after all - to hide the popup
- Date: Thu, 19 Nov 2009 22:05:11 +0000 (UTC)
commit 83bce816197df63839a1c9f6fc8a3bef29f1b638
Author: Toms Bauģis <toms baugis gmail com>
Date: Thu Nov 19 22:02:49 2009 +0000
turns out that we care for focus out after all - to hide the popup
hamster/widgets/activityentry.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/hamster/widgets/activityentry.py b/hamster/widgets/activityentry.py
index 7e70900..e6bbf01 100644
--- a/hamster/widgets/activityentry.py
+++ b/hamster/widgets/activityentry.py
@@ -91,6 +91,7 @@ class ActivityEntry(gtk.Entry):
self.connect("button-press-event", self._on_button_press_event)
self.connect("key-press-event", self._on_key_press_event)
self.connect("key-release-event", self._on_key_release_event)
+ self.connect("focus-out-event", self._on_focus_out_event)
self.connect("changed", self._on_text_changed)
self.show()
self.populate_suggestions()
@@ -209,6 +210,8 @@ class ActivityEntry(gtk.Entry):
store.append([fillable, activity['name'], activity['category'], time])
+ def _on_focus_out_event(self, widget, event):
+ self.hide_popup()
def _on_text_changed(self, widget):
self.news = True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]