Wrap cairo_destroy call with appropriate CPP macro
authorMichael Cross <mc@xi2.org>
Fri, 19 Aug 2016 11:33:01 +0000 (12:33 +0100)
committerMichael Cross <mc@xi2.org>
Fri, 19 Aug 2016 11:34:48 +0000 (12:34 +0100)
src/cellrenderericon.c

index e4d0729..7de28db 100644 (file)
@@ -692,7 +692,9 @@ gqv_cell_renderer_icon_render(GtkCellRenderer               *cell,
 
        if (!pixbuf && !text)
                {
+#if !GTK_CHECK_VERSION(3,0,0)
                cairo_destroy(cr);
+#endif
                return;
                }