From 4456b616ae585a2c628a0dc463c6fd92efce0b62 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 25 Jul 2001 21:40:03 +0000 Subject: [PATCH] Added shims for signal introspections and g_type_parent Original commit message from CVS: Added shims for signal introspections and g_type_parent --- gst/gobject2gtk.c | 12 ++++++++++++ gst/gobject2gtk.h | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gst/gobject2gtk.c b/gst/gobject2gtk.c index 9ea5285..3279c45 100644 --- a/gst/gobject2gtk.c +++ b/gst/gobject2gtk.c @@ -298,3 +298,15 @@ g2g_signal_newc (const gchar *name, return signal_id; } + +gint* g_signal_list_ids (GType type, guint *n_ids) +{ + GtkObjectClass *class; + + class = gtk_type_class (type); + + *n_ids = class->nsignals; + + return class->signals; +} + diff --git a/gst/gobject2gtk.h b/gst/gobject2gtk.h index 34e4d83..1b66556 100644 --- a/gst/gobject2gtk.h +++ b/gst/gobject2gtk.h @@ -82,6 +82,7 @@ G_STMT_START{ \ #define g_type_class_unref(c) #define g_type_name(t) gtk_type_name(t) #define g_type_from_name(t) gtk_type_from_name(t) +#define g_type_parent(t) gtk_type_parent(t) #define GEnumValue GtkEnumValue #define g_enum_register_static gtk_type_register_enum @@ -170,7 +171,7 @@ gtk_signal_handler_pending ((GtkObject *)object,name,may_block) #define g_signal_handler_block gtk_signal_handler_block #define g_signal_handler_unblock gtk_signal_handler_unblock - +gint* g_signal_list_ids (GType type, guint *n_ids); // arguments/parameters -- 2.7.4