Failure to add radio buttons to popup menu.
- From: Carlo Wood <carlo alinoe com>
- To: gtkmm-list gnome org
- Subject: Failure to add radio buttons to popup menu.
- Date: Fri, 4 Dec 2020 16:51:51 +0100
Hi Kjell,
I've been trying for days to get radio buttons working
in my popup menu. I can't get closer than "it doesn't work".
Most notably, the line
refActionGroup->add_action_radio_string("radio",
sigc::mem_fun(*this, &ExampleWindow::on_menu_file_popup_radio),
"'A'");
doesn't even cause the call back function to be called
when I click on the radio menu entry.
Can you please tell me what I do wrong and how it should
be done?
I reproduced my problem by editing
gtkmm-documentation/-/blob/gtkmm-3-24/examples/book/menus/popup
The cloned repository and commit can be found here:
https://gitlab.gnome.org/carlo.wood/gtkmm-documentation/-/commit/e106f79c78bba7ad265817a74897f09501d024db
If you clone my repository, please note that the change was
made to the gtkmm-3-24 branch (not master)!
Or you can copy the two changed files from here:
https://gitlab.gnome.org/carlo.wood/gtkmm-documentation/-/blob/gtkmm-3-24/examples/book/menus/popup/examplewindow.cc
https://gitlab.gnome.org/carlo.wood/gtkmm-documentation/-/blob/gtkmm-3-24/examples/book/menus/popup/examplewindow.h
Any pointers would be greatly appreciated.
Regards,
Carlo Wood
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]