Show signals/actions of parent classes

Original commit message from CVS:
Show signals/actions of parent classes
This commit is contained in:
David Schleef 2003-08-18 07:34:17 +00:00
parent 9b999ac27b
commit c8bdc194d0

View file

@ -732,8 +732,8 @@ print_element_info (GstElementFactory *factory)
guint nsignals;
gint i, k;
GSignalQuery *query;
GType type;
signals = g_signal_list_ids (G_OBJECT_TYPE (element), &nsignals);
for (k = 0; k < 2; k++) {
gint counted = 0;
@ -742,6 +742,9 @@ print_element_info (GstElementFactory *factory)
else
g_print ("\nElement Actions:\n");
for(type = G_OBJECT_TYPE(element); type; type = g_type_parent(type)){
signals = g_signal_list_ids (type, &nsignals);
for (i = 0; i < nsignals; i++) {
gint n_params;
GType return_type;
@ -759,7 +762,7 @@ print_element_info (GstElementFactory *factory)
g_print (" \"%s\" :\t %s user_function (%s* object",
query->signal_name, g_type_name (return_type),
g_type_name (G_OBJECT_TYPE (element)));
g_type_name (type));
for (j = 0; j < n_params; j++) {
g_print (",\n \t\t\t\t%s arg%d", g_type_name(param_types[j]), j);
@ -774,6 +777,7 @@ print_element_info (GstElementFactory *factory)
g_free (query);
}
}
if (counted == 0) g_print (" none\n");
}
}