deskbar-applet r2032 - in trunk: . deskbar/handlers
- From: sebp svn gnome org
- To: svn-commits-list gnome org
- Subject: deskbar-applet r2032 - in trunk: . deskbar/handlers
- Date: Thu, 20 Mar 2008 11:30:04 +0000 (GMT)
Author: sebp
Date: Thu Mar 20 11:30:04 2008
New Revision: 2032
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2032&view=rev
Log:
Forgot to set priority for matches
Modified:
trunk/ChangeLog
trunk/deskbar/handlers/mozilla.py
trunk/deskbar/handlers/tomboy.py
Modified: trunk/deskbar/handlers/mozilla.py
==============================================================================
--- trunk/deskbar/handlers/mozilla.py (original)
+++ trunk/deskbar/handlers/mozilla.py Thu Mar 20 11:30:04 2008
@@ -272,6 +272,7 @@
self.watcher.remove_all()
def query(self, query):
+ self.set_priority_for_matches (self._smart_bookmarks)
if SHOW_ONLY_PRIMARY and PRIMARY_SEARCH_ENGINE != None:
for s in self._smart_bookmarks:
if s.get_name() == PRIMARY_SEARCH_ENGINE:
Modified: trunk/deskbar/handlers/tomboy.py
==============================================================================
--- trunk/deskbar/handlers/tomboy.py (original)
+++ trunk/deskbar/handlers/tomboy.py Thu Mar 20 11:30:04 2008
@@ -152,7 +152,9 @@
def handle_searchnotes( self, text, notes ):
for note in notes:
if tomboy().NoteExists(note):
- self._emit_query_ready( text, [TomboyExistingNoteMatch(note)] )
+ match = TomboyExistingNoteMatch(note)
+ match.set_priority (self.get_priority())
+ self._emit_query_ready( text, [match] )
def handle_dbus_error(self, e): print e
@@ -160,7 +162,9 @@
if len(text) >= 3:
case = text[0].capitalize() + text[1:]
if tomboy().FindNote(case) == '':
- self._emit_query_ready( text, [TomboyCreateNoteMatch(case)] )
+ match = TomboyCreateNoteMatch(case)
+ match.set_priority (self.get_priority())
+ self._emit_query_ready( text, [match] )
# Search for the note (not case-sensitive)
# The query text needs to be lowercase, for reasons I do not fathom
tomboy().SearchNotes( text.lower(), dbus.Boolean(False),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]