Re: help: add handler to a menuitem
- From: Mark Roberts <gtkmm manumark de>
- To: sd <wallace lee hotmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: help: add handler to a menuitem
- Date: Wed, 2 Sep 2009 09:27:44 +0200 (CEST)
On Wed, 2 Sep 2009, sd wrote:
I wanted to add a handler function to menuitem.
// this line will lead to an error when compiling
G_CALLBACK(on_mnuGlobalConfig_activate), NULL);
In member function `int gkass::connect_signals()': argument of type
`void (gkass::)()' does not match `void (*)()'
'on_mnuGlobalConfig_activate' is a member function, while G_CALLBACK
expects a C function. In *mm we use signals from libsigc++. See for
instance:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/chapter-signals.html
Mark
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]