Re: GtkCellRendererCombo



Am Samstag, den 17.09.2005, 22:45 +0200 schrieb GyÃzà Both:
hello,

i can't quite figure out how to use a cell renderer combo. what i'd
like to have is a treeview column with cells that contain some text and
an icon next to the text.

so, what i try to do is pack a column into the treeview along with a
GtkCellRendererCombo and a cell data function. in the cell data
function i create a liststore with a G_TYPE_STRING and a
GDK_TYPE_PIXBUF, fill it with a few rows, and do a

    g_object_set(renderer, "model", GTK_TREE_MODEL(ls), NULL);
    g_object_unref(ls);

ls being my GtkListStore.

but i don't see any sign of text or icons in my treeview :-(

The text will be set if you do additionally set the "text-column"
property to the text column in the model. Icons are unfortunately not
supported for now, IMHO.

-- 
Christian Neumair <chris gnome-de org>


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