deskbar-applet r2033 - in branches/gnome-2-22: . deskbar/handlers



Author: sebp
Date: Thu Mar 20 11:30:27 2008
New Revision: 2033
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2033&view=rev

Log:
Forgot to set priority for matches

Modified:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/deskbar/handlers/mozilla.py
   branches/gnome-2-22/deskbar/handlers/tomboy.py

Modified: branches/gnome-2-22/deskbar/handlers/mozilla.py
==============================================================================
--- branches/gnome-2-22/deskbar/handlers/mozilla.py	(original)
+++ branches/gnome-2-22/deskbar/handlers/mozilla.py	Thu Mar 20 11:30:27 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: branches/gnome-2-22/deskbar/handlers/tomboy.py
==============================================================================
--- branches/gnome-2-22/deskbar/handlers/tomboy.py	(original)
+++ branches/gnome-2-22/deskbar/handlers/tomboy.py	Thu Mar 20 11:30:27 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]