Re: Please help (core dump)

2020-07-28 Thread aitor
Hi, On 27/7/20 14:00, Carlo Wood wrote: Hi aitor, thank you so much for your examples! I will definitely study them in depth as soon as I get my current problem resolved of how to add a 'Mode' to my menu having a separate Gtk::Builder (aka, how to combine multiple Gtk::Builder objects into a

Re: Please help (core dump)

2020-07-27 Thread Kjell Ahlstedt via gtkmm-list
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

Re: Please help (core dump)

2020-07-27 Thread Carlo Wood
On Sun, 26 Jul 2020 20:22:43 +0100 Daniel Boles via gtkmm-list wrote: > On Sun, 26 Jul 2020, 20:21 Carlo Wood, wrote: > > > > > I'm not sure what you mean with doing > > > > LinuxChessboardWidget(..) : Glib::ObjectBase("myWidgetClass") > > > > since Glib::ObjectBase is a base class of

Re: Please help (core dump)

2020-07-26 Thread Daniel Boles via gtkmm-list
On Sun, 26 Jul 2020, 20:21 Carlo Wood, wrote: > > I'm not sure what you mean with doing > > LinuxChessboardWidget(..) : Glib::ObjectBase("myWidgetClass") > > since Glib::ObjectBase is a base class of Gio::ActionMap, > I can't call that from LinuxChessboardWidget no? > yes, you can: research

Re: Please help (core dump)

2020-07-26 Thread Carlo Wood
Hi Kjell, thank you so much for helping me out! I'm not sure what you mean with doing LinuxChessboardWidget(..) : Glib::ObjectBase("myWidgetClass") since Glib::ObjectBase is a base class of Gio::ActionMap, I can't call that from LinuxChessboardWidget no? What I have is the following:

Re: Please help (core dump)

2020-07-26 Thread aitor
Hi Carlo, On 25/7/20 15:35, Carlo Wood wrote: Hi Aitor, is this gtkmm3? For example, Gtk::VBox is deprecated, I'm using Gtk::Grid. Yes, it is. Have a look at the "pkg_check_modules" in the configuration of CMake. I'm using the deprecated VBox because this code is taken froma network

Re: Please help (core dump)

2020-07-26 Thread Kjell Ahlstedt via gtkmm-list
On 2020-07-25 17:35, Carlo Wood wrote: Why would this core dump?? LinuxChessboardWidget is defined as: class LinuxChessboardWidget : public cwmm::ChessPositionWidget, public Gio::ActionMap { ... I have to derive from Gio::ActionMap because its constructor is protected. The call to

Re: Please help (core dump)

2020-07-25 Thread Carlo Wood
Hi Aitor, is this gtkmm3? For example, Gtk::VBox is deprecated, I'm using Gtk::Grid. Currently my application just core dumps :(. The backtrace is: Thread 1 "tstcpp" received signal SIGSEGV, Segmentation fault. 0x76bc29c6 in g_action_map_add_action () from /usr/lib/libgio-2.0.so.0 (gdb)