Mercurial > geeqie
diff src/view_file_icon.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 | caf0e4b8319d |
children | 956aab097ea7 |
line wrap: on
line diff
--- a/src/view_file_icon.c Sat Oct 10 15:01:41 2009 +0000 +++ b/src/view_file_icon.c Tue Oct 13 21:49:21 2009 +0000 @@ -1636,7 +1636,11 @@ gtk_tree_view_column_set_visible(column, (i < VFICON(vf)->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);