gtk-- menufactory callbacks



Hello.
    I was wondering if it is possible to connect the menu_entries to
callbacks which are located in some other classes.

for example
void MyClass::set_up_menus()
{
    menufactory->add_entry("<Main>/File/Load", "L",
MenuFactoryConnector<MyClass, ignored>(this, &MyOtherClass::callback));?

also, if I specify "Ctrl+L" as the accelerator for the Load menu, and
"Ctrl+S" for save, and "Ctrl+Q" for quit, when the program is run, I get
"C" as the accelerator for the Quit.  Is that a bug or am I doing
something wrong?

Thank you
Marsel



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