diff src/search.c @ 1729:760e8d68290c

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 717374fb1bbd
children
line wrap: on
line diff
--- a/src/search.c	Sat Oct 10 15:01:41 2009 +0000
+++ b/src/search.c	Tue Oct 13 21:49:21 2009 +0000
@@ -828,7 +828,11 @@
 
 	gtk_tree_view_column_set_fixed_width(column, (sd->thumb_enable) ? options->thumbnails.max_width : 4);
 
+#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
 	if (!list) return;
 	cell = list->data;
 	g_list_free(list);