[gdm] utils: Don't use deprecated gdk_cursor_new
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] utils: Don't use deprecated gdk_cursor_new
- Date: Tue, 5 Dec 2017 02:19:37 +0000 (UTC)
commit 4099ac81597ab5640406c23829fb3c960dd53ecf
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Dec 5 15:19:23 2017 +1300
utils: Don't use deprecated gdk_cursor_new
utils/gdm-screenshot.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/utils/gdm-screenshot.c b/utils/gdm-screenshot.c
index 7d1e2cf..01b3585 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]