Re: Please help (core dump)

Kjell Ahlstedt via gtkmm-list <[email protected]> Mon, 27 Jul 2020 09:48:30 +0200
Newsgroups gmane.comp.gnome.gtkmm
Message-ID <[email protected]>
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.

_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list