[hamster-applet] only consider hitting return key or clicking to be sign that user is finished
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] only consider hitting return key or clicking to be sign that user is finished
- Date: Thu, 19 Nov 2009 22:04:46 +0000 (UTC)
commit f98faca2821fa7bb79333d149f5eba32440fe6ef
Author: Toms Bauģis <toms baugis gmail com>
Date: Thu Nov 19 19:21:43 2009 +0000
only consider hitting return key or clicking to be sign that user is finished
hamster/widgets/activityentry.py | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/hamster/widgets/activityentry.py b/hamster/widgets/activityentry.py
index 85ad971..14e5b10 100644
--- a/hamster/widgets/activityentry.py
+++ b/hamster/widgets/activityentry.py
@@ -91,7 +91,6 @@ 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()
@@ -219,12 +218,6 @@ class ActivityEntry(gtk.Entry):
self.populate_suggestions()
self.show_popup()
- def _on_focus_out_event(self, event, something):
- self.hide_popup()
- if self.news:
- self.emit("value-entered")
- self.news = False
-
def _on_key_release_event(self, entry, event):
if (event.keyval in (gtk.keysyms.Return, gtk.keysyms.KP_Enter)):
if self.popup.get_property("visible"):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]