Add compatibility for GTK 2.18
[geeqie.git] / src / collect-table.c
index 00a34f1..61ae086 100644 (file)
@@ -1701,7 +1701,11 @@ static void collection_table_populate(CollectTable *ct, gboolean resize)
                        gtk_tree_view_column_set_visible(column, (i < ct->columns));
                        gtk_tree_view_column_set_fixed_width(column, thumb_width + (THUMB_BORDER_PADDING * 6));
 
+#if GTK_CHECK_VERSION(2,18,0)
+                       list = gtk_cell_layout_get_cells(GTK_CELL_LAYOUT(column));
+#else
                        list = gtk_tree_view_column_get_cell_renderers(column);
+#endif
                        cell = (list) ? list->data : NULL;
                        g_list_free(list);