Bug#626586: [Pkg-xfce-devel] Bug#626586: Menu: View Side Pane [ ] Shortcuts / [ ] Tree should be radio buttons

2011-05-22 Thread Stefan Ott
Hi

One small thing: while it's true that the check boxes are not the best
choice, radio buttons would not be much better: you would either lose
the ability to disable the side pane altogether or you would need a
third option (Disable?). I guess that's the reason why it currently
uses the check boxes.

cheers
-- 
Stefan Ott
http://www.ott.net/

You are not Grey Squirrel?



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#626586: [Pkg-xfce-devel] Bug#626586: Menu: View Side Pane [ ] Shortcuts / [ ] Tree should be radio buttons

2011-05-14 Thread Andreas Neudecker
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



Bug#626586: [Pkg-xfce-devel] Bug#626586: Menu: View Side Pane [ ] Shortcuts / [ ] Tree should be radio buttons

2011-05-13 Thread Yves-Alexis Perez
On ven., 2011-05-13 at 12:04 +0200, Andreas Neudecker wrote:
 The menu options Shortcuts and Tree in the submenu View  Side Pane are
 checkboxes, even though checking one unchecks the other. They should clearly 
 be
 radio buttons. 

Can you do radio buttons inside menus?
-- 
Yves-Alexis




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org