diff src/collect-table.c @ 1767:9a351e8f3b97

Add compatibility for GTK 2.18 With 2.18 some functions are deprecated. With geeqie that are two at the moment. - gtk_tree_view_column_get_cell_renderers - which can be replaced by gtk_cell_layout_get_cells - gdk_event_get_graphics_expose - I just commented it as there seems to be no replacement in GTK 2.18
author mow
date Tue, 13 Oct 2009 21:49:21 +0000
parents 349ebc02b8e2
children 956aab097ea7
line wrap: on
line diff
--- a/src/collect-table.c	Sat Oct 10 15:01:41 2009 +0000
+++ b/src/collect-table.c	Tue Oct 13 21:49:21 2009 +0000
@@ -1701,7 +1701,11 @@
 			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);