Commit bb3214b7 authored by Carl-Anton Ingmarsson's avatar Carl-Anton Ingmarsson

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.
parent ce1db51c
......@@ -984,6 +984,25 @@ sdb_query_class_init (SymbolDBQueryClass *klass)
object_class->set_property = sdb_query_set_property;
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",
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment