summaryrefslogtreecommitdiff
path: root/mate-screenshot
diff options
context:
space:
mode:
Diffstat (limited to 'mate-screenshot')
-rw-r--r--mate-screenshot/screenshot-dialog.c4
-rw-r--r--mate-screenshot/screenshot-utils.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/mate-screenshot/screenshot-dialog.c b/mate-screenshot/screenshot-dialog.c
index f9c9a331..c5105be7 100644
--- a/mate-screenshot/screenshot-dialog.c
+++ b/mate-screenshot/screenshot-dialog.c
@@ -402,7 +402,11 @@ screenshot_dialog_set_busy (ScreenshotDialog *dialog,
/* Change cursor to busy */
cursor = gdk_cursor_new (GDK_WATCH);
gdk_window_set_cursor (gtk_widget_get_window (toplevel), cursor);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ g_object_unref (cursor);
+#else
gdk_cursor_unref (cursor);
+#endif
}
else
{
diff --git a/mate-screenshot/screenshot-utils.c b/mate-screenshot/screenshot-utils.c
index 92391d6b..eaeeca28 100644
--- a/mate-screenshot/screenshot-utils.c
+++ b/mate-screenshot/screenshot-utils.c
@@ -39,6 +39,7 @@
#define gdk_region_intersect cairo_region_intersect
#define gdk_region_subtract cairo_region_subtract
#define gdk_region_union_with_rect cairo_region_union_rectangle
+#define gdk_cursor_unref g_object_unref
#endif
static GtkWidget *selection_window;