[gnome-screenshot: 2/3] screenshot-dialog: replace deprecated gdk_cursor_new



commit b6d17c508c832d9131c60e85eb50c23a909e85cf
Author: Jente Hidskes <hjdskes gmail com>
Date:   Wed Dec 9 23:53:38 2015 +0100

    screenshot-dialog: replace deprecated gdk_cursor_new

 src/screenshot-dialog.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/screenshot-dialog.c b/src/screenshot-dialog.c
index 248e5f1..92e035a 100644
--- a/src/screenshot-dialog.c
+++ b/src/screenshot-dialog.c
@@ -332,9 +332,11 @@ screenshot_dialog_set_busy (ScreenshotDialog *dialog,
 
   if (busy)
     {
+      GdkDisplay *display;
       GdkCursor *cursor;
       /* Change cursor to busy */
-      cursor = gdk_cursor_new (GDK_WATCH);
+      display = gtk_widget_get_window (GTK_WIDGET (dialog));
+      cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
       gdk_window_set_cursor (window, cursor);
       g_object_unref (cursor);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]