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

Re: How to create a editable treeview



On Thu, Apr 30, 2009 at 11:12:05AM +0530, padthmanabhan paddu wrote:
>      I am new to this GTK technology , and  i am trying to create an
> tree view with two columns and it should get the input from an text
> document,  i need it like editable window. And this is the code
> creating two columns in the tree view
> 
> renderer = gtk_cell_renderer_text_new ();
>     column = gtk_tree_view_column_new_with_attributes ("ORIGINAL",
>  														renderer,"text",COL_ORIGINAL,NULL);
>     gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);
> 
>     renderer = gtk_cell_renderer_text_new ();
>     column = gtk_tree_view_column_new_with_attributes ("TRANSLATED",
> 													 renderer, "text",COL_TRANSLATED, NULL);
>     gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);
> 
> some assistance might help in this issue.

Have you read

http://git.gnome.org/cgit/gtk+/tree/demos/gtk-demo/editable_cells.c

http://scentric.net/tutorial/

?

Yeti



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