Re: Using g_signal_connect in class
- From: "Dave Foster" <dave foster gmail com>
- To: "Gabriele Greco" <gabriele greco darts it>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Using g_signal_connect in class
- Date: Wed, 16 Jul 2008 14:48:26 -0400
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]