Mercurial > geeqie.yaz
diff src/ui_tree_edit.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 | f8503019ac38 |
| children |
line wrap: on
line diff
--- a/src/ui_tree_edit.c Sat Oct 10 15:01:41 2009 +0000 +++ b/src/ui_tree_edit.c Tue Oct 13 21:49:21 2009 +0000 @@ -189,7 +189,11 @@ tcolumn = gtk_tree_view_get_column(tree, column); if (!tcolumn) return FALSE; +#if GTK_CHECK_VERSION(2,18,0) + list = gtk_cell_layout_get_cells(GTK_CELL_LAYOUT(tcolumn)); +#else list = gtk_tree_view_column_get_cell_renderers(tcolumn); +#endif work = list; while (work && !cell) { @@ -289,7 +293,11 @@ gint cell_x; gint cell_width; +#if GTK_CHECK_VERSION(2,18,0) + renderers = gtk_cell_layout_get_cells(GTK_CELL_LAYOUT(tv_column)); +#else renderers = gtk_tree_view_column_get_cell_renderers(tv_column); +#endif work = renderers; while (work && !cell) {
