use connect_swapped

Original commit message from CVS:
use connect_swapped
This commit is contained in:
Wim Taymans 2001-12-11 22:23:20 +00:00
parent ec4a6a7502
commit 3ee219faba
2 changed files with 3 additions and 3 deletions

View file

@ -225,7 +225,7 @@ g_signal_handlers_disconnect_by_func(object,func,func_data) \
gtk_signal_disconnect_by_func((GtkObject *)object,func,func_data)
#define \
g_signal_connect_object(object,name,func,func_data) \
g_signal_connect_swapped(object,name,func,func_data) \
gtk_signal_connect_object((GtkObject *)object,name,func,(GtkObject*)func_data)
#define \

View file

@ -278,7 +278,7 @@ gst_bin_add (GstBin *bin,
// set the element's parent and add the element to the bin's list of children
gst_object_set_parent (GST_OBJECT (element), GST_OBJECT (bin));
g_signal_connect (G_OBJECT (element), "state_change", gst_bin_child_state_change, G_OBJECT (bin));
g_signal_connect_swapped (G_OBJECT (element), "state_change", gst_bin_child_state_change, G_OBJECT (bin));
bin->children = g_list_append (bin->children, element);
bin->numchildren++;
@ -358,7 +358,7 @@ gst_bin_remove (GstBin *bin,
}
static void
gst_bin_child_state_change (GstElement *child, GstElementState old, GstElementState new, GstBin *bin)
gst_bin_child_state_change (GstBin *bin, GstElementState old, GstElementState new, GstElement *child)
{
gint old_idx = 0, new_idx = 0, i;