Re: gtk_tree_view_column_set_cell_data_func gives GTK-CRITICAL error
- From: Tadej BorovÅak <tadeboro gmail com>
- To: James Steward <jamessteward optusnet com au>
- Cc: gtk app devel list <gtk-app-devel-list gnome org>
- Subject: Re: gtk_tree_view_column_set_cell_data_func gives GTK-CRITICAL error
- Date: Wed, 30 Nov 2011 10:04:24 +0100
Hi.
2011/11/30 James Steward <jamessteward 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().
Cheers,
Tadej
--
Tadej BorovÅak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]