Re: Gtk::SELECTION_SINGLE ignored

From: Date: Sat, 26 May 2007 23:12:56 +0000
Subject: Re: Gtk::SELECTION_SINGLE ignored
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7875@lists.php.net to get a copy of this message
[sorry Pistiolis, you get double posting because this list incorrecly states who to reply to when i click reply in thunderbird, so i repost to list] 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


« previous php.gtk.general (#7875) next »