Re: Please help (core dump)



On 2020-07-27 09:40, Carlo Wood wrote:
Is there an example somewhere that shows how I can combine the
`void on_menu_mode_*()` member functions of a widget that is not
derived (indirectly) from Gio::ActionMap to the menu of the window
that this widgets belongs to?

Thanks,
Carlo Wood

Look at https://gitlab.gnome.org/GNOME/gtkmm-documentation/-/blob/gtkmm-3-24/examples/book/menus_and_toolbars/examplewindow.cc

I think that's what you can do. Create a Gio::SimpleActionGroup. Add your actions to it. Insert it in your widget with Gtk::Widget's insert_action_group() method. In the call to insert_action_group() you choose what prefix to use in the ui file.



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