Re: function type



>Hi, i'm writing a class in C++ which has a member-function to add a
>button into the widget. It's declared like this:
>
>gboolean AddButton(gint* id, gchar* label, function_type callback,
>gpointer data);
>
>Which type should I use for the callback? Something like GtkSignalFunc??

can't be answered without knowing which signal you plan on connecting to.
clicked ? button_press ? button_release ? enter_notify? etc.

why aren't you using Gtk-- ?

--p




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