Re: Elements not shown in treeview and combobox?



Tim Müller wrote:

> GtkCellRendererText *cell;
> cell = gtk_cell_renderer_text_new ();
> gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (cb1), cell, FALSE);
> gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (cb1), cell, "text", 0);
ARGH! I KNEW I was forgetting something! Tks a lot!

> For the treeview, you'd need to create a GtkTreeViewColumn, append it to the
> tree view, and then pack cell renderers into the tree view column just like
> above.
The treeview is not a problem... It's there just to debug. :-)

Tks again.

BYtE,
 Diego.



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