summaryrefslogtreecommitdiff
path: root/gladeui/glade-base-editor.c
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2014-05-17 20:12:15 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2014-05-17 20:23:05 -0300
commitdd8290e36f16bb4d0c0d5bc5a52e3e7f24f9f5ce (patch)
tree307dbfd92aa14f30995c5d5a87d0a44e65e8f00f /gladeui/glade-base-editor.c
parent2b4586ef2e8355b3ac0b69f80211818613f0c7d1 (diff)
downloadglade-dd8290e36f16bb4d0c0d5bc5a52e3e7f24f9f5ce.tar.gz
GladeBaseEditor->build_child() use correct type for paramenters
Fixes bug 704600 "Cannot add items to menu hierarchy - assertion `GLADE_IS_WIDGET_ADAPTOR (adaptor)' failed" GladeWidget * (*build_child) (GladeBaseEditor *, GladeWidget *, GType); glin-genmarshal does not have a specific type for GType thus back in the day UINT was used instead. But this is not correct in systems where GType is bigger than UINT
Diffstat (limited to 'gladeui/glade-base-editor.c')
-rw-r--r--gladeui/glade-base-editor.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gladeui/glade-base-editor.c b/gladeui/glade-base-editor.c
index c8ef558b..f2af222e 100644
--- a/gladeui/glade-base-editor.c
+++ b/gladeui/glade-base-editor.c
@@ -1560,9 +1560,8 @@ glade_base_editor_class_init (GladeBaseEditorClass *klass)
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GladeBaseEditorClass, build_child),
- _glade_stop_emission_accumulator, NULL,
- _glade_marshal_OBJECT__OBJECT_UINT,
- G_TYPE_OBJECT, 2, G_TYPE_OBJECT, G_TYPE_UINT);
+ _glade_stop_emission_accumulator, NULL, NULL,
+ G_TYPE_OBJECT, 2, G_TYPE_OBJECT, G_TYPE_GTYPE);
/**
* GladeBaseEditor::delete-child: