[gst-devel] Signals in GStreamer ???
Tristan Van Berkom
tvb at gnome.org
Tue Apr 19 12:36:14 CEST 2005
Jérôme Patey wrote:
[...]
> What happens to the last parameter not used in the first function ?
> It will stay on the stack ? Then the program should crash...
Nah,
it wont bother crashing ;-)
Note that it's standard practice in GTK+ to ignore function params,
a typical example is somthing like:
g_signal_connect_swapped (G_OBJECT (quit_button), "clicked",
G_CALLBACK (gtk_widget_destroy),
(gpointer) main_window);
Pretty hardcore, but efficient.
Cheers,
-Tristan
Note also that all object implementations have signal
handlers which omit the last "NULL" argument, that argument
is only used "user_data" arguments to g_signal_connect ().
More information about the gstreamer-devel
mailing list