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)
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
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_
On Sat, 2015-12-05 at 16:47 +0100, Miroslav Rajcic wrote:
> I am trying to customize GtkCellRendererCombo so that the items in the
> combo box have different colors.
Yes, that is not really easy.
Looking at
https://developer.gnome.org/gtk3/stable/GtkCellLayout.html#gtk-cell-layo
ut-set-cell-data
I am trying to customize GtkCellRendererCombo so that the items in the
combo box have different colors.
Documentation indicates that this is supposed to be done through
"editing-started" signal handler, but I failed to do it.
My sample is given below.
When gtk_cell_layout_set_cell_data_func or