gtk_tree_view_new How to display two icons within a new cell

54 Views Asked by At

enter image description here

I want to display the following effect, but I don't know what to do

1

There are 1 best solutions below

2
Brad Lanam On

Initialize the renderer as a pixbuf.

renderer = gtk_cell_renderer_pixbuf_new ();

And add an attribute for that column as "pixbuf".

gtk_tree_view_column_add_attribute (column, renderer, "pixbuf", colnum);

When setting the value in the storage, pass in a pixbuf argument.

Hope these bits of information point you in the right direction.