gtkmm Notebook signal_switch_page().connect
I'm developing a program in C++ using gtkmm 2.4 on a Ubuntu 11.04 system.
I created a GUI using Glade, I have a Window with a Notebook of 4 pages. I need to connect the signal_switch_page to a callback function of an object class.
The function member is declared as follow:
void Controller::
onMainPageSwitch ( Gtk::Widget *page, guint page_num )
{
...do something here...
}
The signals are connected in this function:
void Controller::
connectSignals ( void )
{
_addToolButton
_remToolButton
_mainNotebook-
}
the _mainNotebook connection doesn't compile with gtkmm 2.4 (while I had not problem when compiling with gtkmm 3.0),
the compiler error is:
/usr/include/
/usr/include/
/usr/include/
Does anyone know how to fix it to make it works with gtkmm 2.4 ?
I tried to remove the parameters from the onMainPageSwitch but the error is the same.
Please help
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu gtkmm2.4 Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Massimiliano Maniscalco
- Solved:
- Last query:
- Last reply: