Mercurial > geeqie
diff src/view_file_list.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 | 140b73f094c5 |
children | 956aab097ea7 |
line wrap: on
line diff
--- a/src/view_file_list.c Sat Oct 10 15:01:41 2009 +0000 +++ b/src/view_file_list.c Tue Oct 13 21:49:21 2009 +0000 @@ -1701,7 +1701,11 @@ gtk_tree_view_column_set_fixed_width(column, 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);