Doubt, adding several functions at the same event(GTK+)



I have two doubts about GTK+. The first is when I call:
gtk_signal_connect (widget, "key-press-event", G_CALLBACK (function1), NULL);
and then:
gtk_signal_connect (widget, "key-press-event", G_CALLBACK (function2), NULL);

when the event occurs, both functions will be called? The second doubt is because when I call
gtk_signal_connect (widget, "key-press-event", G_CALLBACK (function), NULL);
and press one key on the widget function "function" is not called? What else to add missing?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]