Re: GtkTree selection in gtk1.2



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


Benat






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