GNOME Bugzilla – Bug 608609
GtkIconView: Gtk-CRITICAL with set_text_column
Last modified: 2012-07-04 19:22:36 UTC
Created attachment 152688 [details] A test program If gtk_icon_view_set_text_column() is called a first time in a function which creates and returns a new GtkIconView, and if gtk_icon_view_set_text_column() is called again with the value -1 so only icons are displayed (no text), this error message appears: Gtk-CRITICAL **: gtk_icon_view_get_cell_area: assertion `info->position < item->n_cells' failed Because it's clearer with an example, in the test program (see the attachment), we have the function create_icon_view() which contains the line: gtk_icon_view_set_text_column (GTK_ICON_VIEW (icon_view), COL_TEXT); And in main(), we have: GtkWidget *icon_view = create_icon_view (store); gtk_icon_view_set_text_column (GTK_ICON_VIEW (icon_view), -1); This problem can be easily avoid if we set the text column only when needed. But it's problematic if we want to dynamically change this property.
This is now fixed.