summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2017-12-05 15:19:23 +1300
committerRobert Ancell <robert.ancell@canonical.com>2017-12-05 15:19:23 +1300
commit4099ac81597ab5640406c23829fb3c960dd53ecf (patch)
tree1f2cff60abb1b3749e0585204e5581d4095abaeb /utils
parentdfd6f1466b3acb3f0c9d31244d4ab05dca662b7f (diff)
downloadgdm-4099ac81597ab5640406c23829fb3c960dd53ecf.tar.gz
utils: Don't use deprecated gdk_cursor_new
Diffstat (limited to 'utils')
-rw-r--r--utils/gdm-screenshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/gdm-screenshot.c b/utils/gdm-screenshot.c
index 7d1e2cf7..01b35852 100644
--- a/utils/gdm-screenshot.c
+++ b/utils/gdm-screenshot.c
@@ -73,7 +73,7 @@ screenshot_grab_lock (void)
goto out;
}
- cursor = gdk_cursor_new (GDK_WATCH);
+ cursor = gdk_cursor_new_for_display (gdk_display_get_default (), GDK_WATCH);
gdk_pointer_grab (gtk_widget_get_window (selection_window), FALSE, 0, NULL,
cursor, GDK_CURRENT_TIME);
gdk_cursor_unref (cursor);