On 30/11/11 20:04, Tadej Borovšak wrote:
Hi.

2011/11/30 James Steward<jamesstew...@optusnet.com.au>:
col = gtk_tree_view_insert_column_with_attributes (
                GTK_TREE_VIEW (view),
                -1,
                "Title",
                renderer,
                "text", i,
                "strikethrough", j,
                "background", k,
                "background-set", TRUE,
                NULL);

gtk_tree_view_column_set_cell_data_func(
                gtk_tree_view_get_column(GTK_TREE_VIEW(view), col),
                renderer,
                render_float,
                GINT_TO_POINTER(i),
                NULL);

IIRC, gtk_tree_view_insert_column_with_attributes() returns number of
columns and gtk_tree_view_get_column() expects to get column number
where first column is 0. So you may be off-by-one in your call to
gtk_tree_view_column_set_cell_data_func().

Well spotted!  Thanks very much.

Regards,
James.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to