[anjuta] symbol-db-query: change order of property installation in SymbolDBQuery
- From: Carl-Anton Ingmarsson <carlantoni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] symbol-db-query: change order of property installation in SymbolDBQuery
- Date: Wed, 24 Apr 2013 12:54:02 +0000 (UTC)
commit bb3214b7eaf2ad749f732ed5955cf650e44bec4e
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Wed Apr 24 14:48:16 2013 +0200
symbol-db-query: change order of property installation in SymbolDBQuery
Since https://git.gnome.org/browse/glib/commit/?id=bfa8bef7b9985b3ab8bc6165ed5e915f70d464d8
GObject will set construct properties in the order that they are
installed and not in the order they were passed to g_object_new(). We
therefore have to install the "db-engine-system and "db-engine-project"
properties before the "query-db" property.
plugins/symbol-db/symbol-db-query.c | 38 ++++++++++++++++++----------------
1 files changed, 20 insertions(+), 18 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-query.c b/plugins/symbol-db/symbol-db-query.c
index f445ce8..0297c3b 100644
--- a/plugins/symbol-db/symbol-db-query.c
+++ b/plugins/symbol-db/symbol-db-query.c
@@ -985,6 +985,25 @@ sdb_query_class_init (SymbolDBQueryClass *klass)
object_class->get_property = sdb_query_get_property;
g_object_class_install_property (object_class,
+ PROP_DB_ENGINE_SYSTEM,
+ g_param_spec_object ("db-engine-system",
+ "System DB Engine",
+ "The System SymbolDBEngine",
+ SYMBOL_TYPE_DB_ENGINE,
+ G_PARAM_READABLE |
+ G_PARAM_WRITABLE |
+ G_PARAM_CONSTRUCT_ONLY));
+ g_object_class_install_property (object_class,
+ PROP_DB_ENGINE_PROJECT,
+ g_param_spec_object ("db-engine-project",
+ "Project DB Engine",
+ "The Project SymbolDBEngine",
+ SYMBOL_TYPE_DB_ENGINE,
+ G_PARAM_READABLE |
+ G_PARAM_WRITABLE |
+ G_PARAM_CONSTRUCT_ONLY));
+
+ g_object_class_install_property (object_class,
PROP_QUERY_NAME,
g_param_spec_enum ("query-name",
"Query name",
@@ -1074,24 +1093,7 @@ sdb_query_class_init (SymbolDBQueryClass *klass)
IANJUTA_SYMBOL_FIELD_END,
G_PARAM_READABLE |
G_PARAM_WRITABLE));
- g_object_class_install_property (object_class,
- PROP_DB_ENGINE_SYSTEM,
- g_param_spec_object ("db-engine-system",
- "System DB Engine",
- "The System SymbolDBEngine",
- SYMBOL_TYPE_DB_ENGINE,
- G_PARAM_READABLE |
- G_PARAM_WRITABLE |
- G_PARAM_CONSTRUCT_ONLY));
- g_object_class_install_property (object_class,
- PROP_DB_ENGINE_PROJECT,
- g_param_spec_object ("db-engine-project",
- "Project DB Engine",
- "The Project SymbolDBEngine",
- SYMBOL_TYPE_DB_ENGINE,
- G_PARAM_READABLE |
- G_PARAM_WRITABLE |
- G_PARAM_CONSTRUCT_ONLY));
+
g_object_class_install_property (object_class,
PROP_DB_ENGINE_SELECTED,
g_param_spec_object ("db-engine-selected",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]