[SOLVED] help me with glib programming
I'm adapting the code of gnome cheese to my program, but I encountered some difficulties since I'm new to glib programming.
I find in the file cheese-webcam.c a statement: Code:
g_signal_connect (G_OBJECT (priv->photo_sink), "handoff", Code:
static void How should I pass an argument to this parameter? Thanks in advance. |
Problem solved.
According to James, there is no way to pass this argument as what we ordinarily do. But when I want to call the function I just need to emit a "handoff" signal, the argument is automatically (and implicitly of course) passed by the library. That's all. I just haven't got used to glib. Thanks to James. |
All times are GMT -5. The time now is 12:01 PM. |