Reputation: 11431
Happy new year everybody,
I would like to understand how to use g_signal_emit properly. I have a gtk_event_box and I want to cause it to emit a enter_notify_event when I want it to. What I tried (R GTK binding code):
on_enter = function(...){TRUE}
w = gtkWindow()
ebx = gtkEventBox()
gtkContainerAdd(w, ebx)
gtkWidgetAddEvents(ebx, GdkEventMask["enter-notify-mask"])
gSignalConnect(ebx, "enter-notify-event", on_enter)
What arguments to I have to pass to g_signal_emit now? My naive approach does not work..
gSignalEmit(ebx, "enter-notify-event")
Thanks in advance
Upvotes: 0
Views: 2243
Reputation: 11431
Following @gpoo's comment I post my solution as a separate answer here. The answer is simple: You just have to modify the last function call to:
gSignalEmit(ebx, "enter-notify-event", NULL)
Upvotes: 1