Re: gtk_list_store
- From: Tim Müller <zen18864 zen co uk>
- To: gtk-app-devel-list gnome org, Russell Shaw <rjshaw netspace net au>
- Cc:
- Subject: Re: gtk_list_store
- Date: Sun, 16 May 2004 07:47:23 +0100
On Sunday 16 May 2004 07:36, Russell Shaw wrote:
I just tried out gtk_list_store. The code below should
display:
Manufacturer Web Notes
------------ --- -----
cyclon www.cyclon.com lead-acid
but i can't get the data (cyclon, www.cyclon.com, lead-acid)
displayed (only gives a blank row with grey background).
(snip)
renderer=gtk_cell_renderer_text_new();
column=gtk_tree_view_column_new();
gtk_tree_view_column_set_title(column,"Manufacturer");
gtk_tree_view_column_pack_start(column,renderer,FALSE);
gtk_tree_view_append_column(GTK_TREE_VIEW(tree),column);
Try
renderer=gtk_cell_renderer_text_new();
column=gtk_tree_view_column_new();
gtk_tree_view_column_set_title(column,"Manufacturer");
gtk_tree_view_column_pack_start(column,renderer,FALSE);
+ gtk_tree_view_column_add_attribute(column, renderer, "text", NAME);
gtk_tree_view_append_column(GTK_TREE_VIEW(tree),column);
etc.
Cheers
-Tim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]