Re: GtkTree selection in gtk1.2



On Tue, Jan 22, 2002 at 01:26:36AM +0100, Benat wrote:
Hi

On Tue, 2002-01-22 at 00:02, mrl netbank com br wrote:
Hi,

Is there a way to block the user from selecting the subtree root?
Eg:
tree1
  ^--- subtree1
          ^--- subtree2
I wanna make it only allows the subtree2 to be selected.. not subtree1 neither tree1..
I was thinking about using the select signal to change the selection, but I think it's not the best way..
Any idea?

Try with:
gtk_clist_set_selectable(GTK_CLIST(tree),     // ctree object
                       0,                     // row
                       FALSE);                // selectable/not-sel
---end quoted text---
But I'm not using CTree.. I'm using just Tree..
tree = gtk_tree_new();
...
:)

Thanks!
-- 
Marcelo R Leitner <mrl netbank com br>
ICQ #: 29966851



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]