Hi Yves-Alexis.
Can you do radio buttons inside menus?
Yesss, sssirrr, GTK+ can, sssirrr! ;-)
GtkRadioMenuItem — A choice from multiple check menu items
[...]A radio menu item is a check menu item that belongs to a group. At
each instant exactly one of the radio menu items from a group is selected.
The group list does not need to be freed, as each GtkRadioMenuItem will
remove itself and its list item when it is destroyed.
http://www.gtk.org/api/2.6/gtk/GtkRadioMenuItem.html
The XFC pages of XFCE.org say this:
Detailed Description
A GtkRadioMenuItem C++ wrapper class.
A radio menu item is a check menu item that belongs to a group. At each
instant exactly one of the radio menu items from a group is selected.
You create a group radio menu items the same way you would create a
group of buttons (see Gtk::RadioButton).
http://xfc.xfce.org/docs/reference/html/classXfc_1_1Gtk_1_1RadioMenuItem.html
http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-mnui also has
some nice explanation (for Ruby, though):
Radio Menu Items
Gtk::RadioMenuItem is a widget derived from Gtk::CheckMenuItem. It is
rendered as a radio button instead of a check button. A radio menu item
is a check menu item that belongs to a group. At each instant exactly
one of the radio menu items from a group is selected.
The first radio button should be created with
Gtk::RadioMenuItem.new(label = nil, use_underline = true). All other
radio menu items should be created with Gtk::RadioMenuItem.new(group,
label = nil, use_underline = true).
Regards
Andreas
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org