summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-01-31 20:48:50 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-01-31 20:48:50 (GMT)
commit3d4d97da355c0dd90b1e623f452da22894f8cd71 (patch)
tree268f3345d771925f61f60da48fba355130bcf012 /src/plugins
parente7325a7e273ea1df59aa949cf8b2614e1e6eb46e (diff)
Queried the parent type of copied dynamic instances.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/dt.c b/src/plugins/dt.c
index 14b03f0..fc398cd 100644
--- a/src/plugins/dt.c
+++ b/src/plugins/dt.c
@@ -504,6 +504,7 @@ void register_dynamic_type_pattern(GObject *instance)
{
GType type; /* Type d'instances concerné */
type_dyn_info_t *nfo; /* Source d'inspiration */
+ GType parent; /* Type parent du type */
GTypeQuery query; /* Informations complémentaires*/
type = G_TYPE_FROM_INSTANCE(instance);
@@ -511,7 +512,8 @@ void register_dynamic_type_pattern(GObject *instance)
nfo = g_dynamic_types_find(_chrysalide_dtypes, type);
assert(nfo != NULL);
- g_type_query(type, &query);
+ parent = g_type_parent(type);
+ g_type_query(parent, &query);
if (nfo->pattern == NULL)
nfo->pattern = malloc(query.instance_size);