From a2d4f04d97fc9a29a34ddd7bc81b8cdc9dd716db Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 9 Jun 2003 12:40:42 +0000 Subject: [PATCH] fix object loaded signal Original commit message from CVS: fix object loaded signal --- gst/gstobject.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gst/gstobject.c b/gst/gstobject.c index bcff8a91ad..8b8139513f 100644 --- a/gst/gstobject.c +++ b/gst/gstobject.c @@ -640,8 +640,7 @@ gst_object_real_restore_thyself (GstObject *object, xmlNodePtr self) g_return_if_fail (GST_IS_OBJECT (object)); g_return_if_fail (self != NULL); -/* FIXME: the signalobject stuff doesn't work - * gst_class_signal_emit_by_name (object, "object_loaded", self); */ + gst_class_signal_emit_by_name (object, "object_loaded", self); } #endif /* GST_DISABLE_LOADSAVE_REGISTRY */ @@ -806,7 +805,7 @@ gst_signal_object_class_init (GstSignalObjectClass *klass) #ifndef GST_DISABLE_LOADSAVE_REGISTRY gst_signal_object_signals[SO_OBJECT_LOADED] = g_signal_new ("object_loaded", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (GstObjectClass, parent_set), NULL, NULL, + G_STRUCT_OFFSET (GstSignalObjectClass, object_loaded), NULL, NULL, gst_marshal_VOID__OBJECT_POINTER, G_TYPE_NONE, 2, G_TYPE_OBJECT, G_TYPE_POINTER); #endif