Re: How to customize GtkCellRendererCombo ?

2015-12-06 Thread Miroslav Rajcic
Hi Stefan, I was not aware of this sample, and it turns out that this sample works fine. I rewrote the following function from my sample, and the combo works fine now: void on_tree_cell_combo_editing_start(GtkCellRenderer *renderer, GtkCellEditable *editable, gchar *path, gpointer user_data)

Re: How to customize GtkCellRendererCombo ?

2015-12-06 Thread Stefan Salewski
On Sun, 2015-12-06 at 15:26 +0100, Miroslav Rajcic wrote: > Hi Stefan, > > thank you for the nice idea. I was not really happy with that fix myself. You may have seen http://www.kksou.com/php-gtk2/sample-codes/set-up-combobox-in-treeview-with-colors-Part-1.php Seems to be a related task, but i

Re: How to customize GtkCellRendererCombo ?

2015-12-06 Thread Miroslav Rajcic
Hi Stefan, thank you for the nice idea. I've tried the code, but it seems to produce two combo box columns instead of a single one, because renderer is pushed twice (original one is black, 2nd one is colored). If I add this line before yours, that problem is fixed: gtk_cell_layout_clear(GTK_