Paul Davis írta:
On Thu, 2006-03-23 at 23:18 +0100, Zoltan Boszormenyi wrote:
Hi,
I wrote an application in GTK2 but it gives strange me behaviour.
First, I cannot deselect a row in a GtkTreeView with the mouse,
despite the GtkListStore behind it is GTK_SELECTION_SINGLE.
From the documentation:
GTK_SELECTION_SINGLE Zero or one element may be selected.
GTK_SELECTION_BROWSE Exactly one element is selected. In some
circumstances,
such as initially or during a search
operation, it's possible
for no element to be selected with
GTK_SELECTION_BROWSE.
What is really enforced is that the user
can't deselect a currently
selected element except by selecting
another element.
So, I guess GTK_SELECTION_SINGLE provides a way for the user to deselect
the already selected row, but how? In GTK-1.2.x, a mouse click deselects the
already selected row.
read the GNOME HIG.
ctrl-click toggles the selection state of an item.
D'oh. :-) Thanks.
And what about the focus/selection problem?
At present I am on FC3/x86-64, so I have gtk2-2.4.14.
_______________________________________________
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list