gtkaccelgroup API changes



hi all,
i'm getting confused with the newly implemented accel API,
where can i find some docs on how to get accelerators working on menus without using menu factory ?
My previous way was:
- at menu level create an accelerator with  gtk_accel_group_new()
- gtk_accel_group_attach() the menu to accel group
- add accel group to top level window with gtk_window_add_accel_group()
- adding a menu item add an accelerator with gtk_widget_add_accelerator()
This one does not work anymore since gtk_accel_group_attach() is now private. I can't figure out how does works now, i tried to substitute gtk_menu_set_accel_group gtk_accel_group_attach() with no success.
Any help will be appreciated.
/mario
--
Mario Motta
AI Research Group - Rimini
http://vdkbuilder.sourceforge.net





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