tracker r1431 - in branches/indexer-split: . src/trackerd
- From: mr svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r1431 - in branches/indexer-split: . src/trackerd
- Date: Wed, 14 May 2008 13:59:45 +0100 (BST)
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]