[hamster-applet] do not perform search after each keypress - i should review patches more carefully
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet] do not perform search after each keypress - i should review patches more carefully
- Date: Sat, 22 May 2010 11:46:26 +0000 (UTC)
commit 2bcf0400f86dabaeaddfcfa21356dfab3556dfe7
Author: Toms Bauģis <toms baugis gmail com>
Date: Sat May 22 12:46:18 2010 +0100
do not perform search after each keypress - i should review patches more carefully
data/overview.ui | 1 +
src/hamster/overview.py | 6 +++++-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/data/overview.ui b/data/overview.ui
index 5177e93..1ac68a6 100644
--- a/data/overview.ui
+++ b/data/overview.ui
@@ -244,6 +244,7 @@
<property name="primary_icon_sensitive">True</property>
<signal name="changed" handler="on_search_changed"/>
<signal name="icon_press" handler="on_search_icon_press"/>
+ <signal name="activate" handler="on_search_activate"/>
</object>
</child>
</object>
diff --git a/src/hamster/overview.py b/src/hamster/overview.py
index 8aa8e9b..b8125eb 100644
--- a/src/hamster/overview.py
+++ b/src/hamster/overview.py
@@ -204,10 +204,14 @@ class Overview(object):
if position == gtk.ENTRY_ICON_SECONDARY:
widget.set_text('')
+ self.search()
+
+ def on_search_activate(self, widget):
+ self.search()
+
def on_search_changed(self, widget):
has_text = len(widget.get_text()) > 0
widget.set_icon_sensitive(gtk.ENTRY_ICON_SECONDARY, has_text)
- self.search()
def on_report_button_clicked(self, widget):
def on_report_chosen(widget, format, path):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]