Re: Using g_signal_connect in class



On Tue, Jul 15, 2008 at 6:36 AM, Gabriele Greco <gabriele greco darts it>
wrote:


 static void handle_click_cbk(GtkWidget *mywidget_, MyClass *data) {
data->handle_click(); }


You can't make a callback function intended to be used by C code be inside
of the C++ class.  It will not be able to find it.

Marco, I recommend using the full gtkmm API - this mix of gtk+ and gtkmm
will lead to a lot of headaches unless you know where the boundaries of the
two are (you can use them together, but typically not in a way you are using
it now).

Read the excellent docs at http://gtkmm.org/documentation.shtml,
specifically the book at
http://gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/index.html

dave



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