Re: [gtk-list] Passing a Structure to a Function



In gtkwidget.h:

  gint (* focus_in_event)          (GtkWidget          *widget,
                                    GdkEventFocus      *event);

The focus_in_event signal handler has two arguments before data, the
widget which the event happened to, and the event itself. You need to
change one line to

void my_function (GtkWidget *widget, GdkEventFocus *event, gpointer data)

-- Elliot
When I die, I want to die peacefully in my sleep like my grandfather...
	...not yelling and screaming like the people in the back of the
	   plane he was flying.



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