tracker r1431 - in branches/indexer-split: . src/trackerd



Author: mr
Date: Wed May 14 12:59:44 2008
New Revision: 1431
URL: http://svn.gnome.org/viewvc/tracker?rev=1431&view=rev

Log:
	* src/trackerd/tracker-query-tree.c: (tracker_query_tree_new):
	Make sure we set the "query" after setting the "config" and
	"language" properties since they are required in the _set_query()
	function. This fixes several warnings to the console.


Modified:
   branches/indexer-split/ChangeLog
   branches/indexer-split/src/trackerd/tracker-query-tree.c

Modified: branches/indexer-split/src/trackerd/tracker-query-tree.c
==============================================================================
--- branches/indexer-split/src/trackerd/tracker-query-tree.c	(original)
+++ branches/indexer-split/src/trackerd/tracker-query-tree.c	Wed May 14 12:59:44 2008
@@ -284,12 +284,17 @@
 	g_return_val_if_fail (TRACKER_IS_CONFIG (config), NULL);
 	g_return_val_if_fail (language != NULL, NULL);
 
+        /* NOTE: The "query" has to come AFTER the "config" and
+         * "language" properties since setting the query actually
+         * uses the priv->config and priv->language settings.
+         * Changing this order results in warnings.
+         */
 	return g_object_new (TRACKER_TYPE_QUERY_TREE,
-			     "query", query_str,
 			     "indexer", indexer,
                              "config", config,
                              "language", language,
 			     "services", services,
+			     "query", query_str,
 			     NULL);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]