Mercurial > geeqie
diff src/pixbuf-renderer.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 | 54280e8b8309 |
children | 956aab097ea7 |
line wrap: on
line diff
--- a/src/pixbuf-renderer.c Sat Oct 10 15:01:41 2009 +0000 +++ b/src/pixbuf-renderer.c Tue Oct 13 21:49:21 2009 +0000 @@ -3682,6 +3682,7 @@ } /* process exposures here, "expose_event" seems to miss a few with obstructed windows */ +#if ! GTK_CHECK_VERSION(2,18,0) while ((event = gdk_event_get_graphics_expose(box->window)) != NULL) { pixbuf_renderer_paint(pr, &event->expose.area); @@ -3693,6 +3694,7 @@ } gdk_event_free(event); } +#endif } }