comparison src/dupe.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
comparison
equal deleted inserted replaced
1728:2ef885dfa3a7 1729:760e8d68290c
2773 column = gtk_tree_view_get_column(GTK_TREE_VIEW(listview), DUPE_COLUMN_THUMB - 1); 2773 column = gtk_tree_view_get_column(GTK_TREE_VIEW(listview), DUPE_COLUMN_THUMB - 1);
2774 if (!column) return; 2774 if (!column) return;
2775 2775
2776 gtk_tree_view_column_set_fixed_width(column, (thumb) ? options->thumbnails.max_width : 4); 2776 gtk_tree_view_column_set_fixed_width(column, (thumb) ? options->thumbnails.max_width : 4);
2777 2777
2778 #if GTK_CHECK_VERSION(2,18,0)
2779 list = gtk_cell_layout_get_cells(GTK_CELL_LAYOUT(column));
2780 #else
2778 list = gtk_tree_view_column_get_cell_renderers(column); 2781 list = gtk_tree_view_column_get_cell_renderers(column);
2782 #endif
2779 if (!list) return; 2783 if (!list) return;
2780 cell = list->data; 2784 cell = list->data;
2781 g_list_free(list); 2785 g_list_free(list);
2782 2786
2783 g_object_set(G_OBJECT(cell), "height", (thumb) ? options->thumbnails.max_height : -1, NULL); 2787 g_object_set(G_OBJECT(cell), "height", (thumb) ? options->thumbnails.max_height : -1, NULL);