Re: Gtk::SELECTION_SINGLE ignored
| From: | Konstantinos Pistiolis | Date: | Sun, 27 May 2007 07:57:55 +0000 |
| Subject: | Re: Gtk::SELECTION_SINGLE ignored | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7879@lists.php.net to get a copy of this message | ||
Thanks for the hint Bob, I had allready added an "unselect all"
entry to my context popup menu.
I just thought that it may have been a bug. Should I report it to
the developer's list instead?
Kostas
> You could grab the selection and perform unselect_all() on it, perhaps
> for binding to an deselect button.
>
> Though If you mean the user should be able to unselect it just by
> clicking it again, I have never had anything work like that and never
> thought about it, figured that was just the way it works.
>
> http://gtk.php.net/manual/en/gtk.gtktreeselection.php
>
> - bob
>
> Pistiolis Konstantinos wrote:
> > Hi everyone.
> > I have a GtkTreeView displaying a tree model and I want to be able to
> > deselect the currently selected item. I tried to call
> > $selection->set_mode(Gtk::SELECTION_SINGLE);
> > but it no deselection is possible neither by clicking on the
> > selected element itself nor on the free area of the treeview.
> >
> > It seems to me that Gtk::SELECTION_SINGLE works exactly like
> > Gtk::SELECTION_BROWSE is supposed to work.
> >
> > Is this supposed to work like that or is it a bug?
> >
> >
> > Pistiolis Konstantinos
> >
>