summaryrefslogtreecommitdiff
path: root/mate-screenshot/src/screenshot-dialog.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-08-07 11:10:10 +0200
committerraveit65 <[email protected]>2016-09-01 08:21:46 +0200
commit7d859a9e17f0c4f0b790e8b2a3d8ac25481d7fe6 (patch)
tree4a025beb91143d2a41863861b79083cde1a20a63 /mate-screenshot/src/screenshot-dialog.c
parent8819ce43d5dcdfd102fd63f7a5ae7713a9e25b04 (diff)
downloadmate-utils-7d859a9e17f0c4f0b790e8b2a3d8ac25481d7fe6.tar.bz2
mate-utils-7d859a9e17f0c4f0b790e8b2a3d8ac25481d7fe6.tar.xz
avoid deprecated gdk_cursor_new ()
Diffstat (limited to 'mate-screenshot/src/screenshot-dialog.c')
-rw-r--r--mate-screenshot/src/screenshot-dialog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mate-screenshot/src/screenshot-dialog.c b/mate-screenshot/src/screenshot-dialog.c
index 6e71ebf8..fd9f12e4 100644
--- a/mate-screenshot/src/screenshot-dialog.c
+++ b/mate-screenshot/src/screenshot-dialog.c
@@ -408,14 +408,16 @@ screenshot_dialog_set_busy (ScreenshotDialog *dialog,
gboolean busy)
{
GtkWidget *toplevel;
+ GdkDisplay *display;
toplevel = screenshot_dialog_get_toplevel (dialog);
+ display = gtk_widget_get_display (GTK_WIDGET (dialog));
if (busy)
{
GdkCursor *cursor;
/* Change cursor to busy */
- cursor = gdk_cursor_new (GDK_WATCH);
+ cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
gdk_window_set_cursor (gtk_widget_get_window (toplevel), cursor);
#if GTK_CHECK_VERSION (3, 0, 0)
g_object_unref (cursor);