deskbar-applet r1844 - in trunk: . deskbar/ui
- From: sebp svn gnome org
- To: svn-commits-list gnome org
- Subject: deskbar-applet r1844 - in trunk: . deskbar/ui
- Date: Mon, 14 Jan 2008 18:47:01 +0000 (GMT)
Author: sebp
Date: Mon Jan 14 18:47:01 2008
New Revision: 1844
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=1844&view=rev
Log:
Fixed bug #509127: Execute previous search (patch by Andreas KÃhntopf)
When you cycle through previous searches with up/down keys pressing enter will re-run the search.
Modified:
trunk/ChangeLog
trunk/deskbar/ui/CuemiacWindowController.py
Modified: trunk/deskbar/ui/CuemiacWindowController.py
==============================================================================
--- trunk/deskbar/ui/CuemiacWindowController.py (original)
+++ trunk/deskbar/ui/CuemiacWindowController.py Mon Jan 14 18:47:01 2008
@@ -93,6 +93,15 @@
iter = None
if path != None:
iter = model.get_iter (path)
+
+ # If we're on a history item right now and the user
+ # presses Enter, the search results for that history item
+ # should be shown.
+ if self._model.get_history().get_current() != None:
+ # Start new query with the text from the history
+ self.on_query_entry_changed(entry)
+ self._model.get_history().reset()
+ return
if iter == None or model.iter_has_child(iter):
# No selection, select top element
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]