deskbar-applet r2085 - in trunk: . deskbar/handlers
- From: sebp svn gnome org
- To: svn-commits-list gnome org
- Subject: deskbar-applet r2085 - in trunk: . deskbar/handlers
- Date: Tue, 8 Apr 2008 22:04:06 +0100 (BST)
Author: sebp
Date: Tue Apr 8 22:04:06 2008
New Revision: 2085
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2085&view=rev
Log:
Don't use QueryPartHuman anymore. Use add_test instead.
Modified:
trunk/ChangeLog
trunk/deskbar/handlers/beagle-live.py
Modified: trunk/deskbar/handlers/beagle-live.py
==============================================================================
--- trunk/deskbar/handlers/beagle-live.py (original)
+++ trunk/deskbar/handlers/beagle-live.py Tue Apr 8 22:04:06 2008
@@ -327,7 +327,6 @@
# We have to store instances for each query term
self._counter = {}
self._beagle_query = {}
- self._query_part_human = {}
self.__hits_added_id = {}
self.__hits_finished_id = {}
@@ -342,12 +341,9 @@
beagle_query = beagle.Query()
self.__hits_added_id[qstring]= beagle_query.connect ("hits-added", self._on_hits_added, qstring)
self.__hits_finished_id[qstring] = beagle_query.connect ("finished", self._on_finished, qstring)
- query_part_human = beagle.QueryPartHuman()
- query_part_human.set_string(qstring)
- beagle_query.add_part(query_part_human)
+ beagle_query.add_text (qstring)
self._beagle_query[qstring] = beagle_query
- self._query_part_human[qstring] = query_part_human
LOGGER.debug ("Sending beagle query (%r) for '%s'", self._beagle_query[qstring], qstring)
try:
@@ -394,7 +390,6 @@
beagle_query.disconnect (self.__hits_added_id[qstring])
beagle_query.disconnect (self.__hits_finished_id[qstring])
del self._beagle_query[qstring]
- del self._query_part_human[qstring]
del self.__hits_added_id[qstring]
del self.__hits_finished_id[qstring]
self.__beagle_lock.release()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]