Re: Selection of Toogle Button in a tree view

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

 



On Tue, Nov 14, 2006 at 10:10:34AM +0000, Saba Khan wrote:
> Here the line of code where i emmit the signal and want to select the 
> toggle renderer. So please have a check this and help me in right way

1. You must associate the view with the information in the
model:

  gtk_tree_view_column_add_attribute(column, renderer, "active", column_id);

2. When you want to change what is displayed, change the
*model*:

  gtk_list_store_set(model, iter, column_id, TRUE or FALSE, -1);

3. Do not set attrbiutes of the cell renderer except (a) in
the cell data function if you have any (b) to set its
properties globally (which you incorrectly do now).

See demos/gtk-demo/list_store.c for an example of the correct
use.

Yeti


--
Whatever.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux