[shotwell] Remove deprecations from AppWindow
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Remove deprecations from AppWindow
- Date: Thu, 17 Nov 2016 22:00:15 +0000 (UTC)
commit 96b325abdfec494294f3bc6233d999a4968de8ab
Author: Jens Georg <mail jensge org>
Date: Thu Nov 17 21:51:13 2016 +0100
Remove deprecations from AppWindow
Signed-off-by: Jens Georg <mail jensge org>
src/AppWindow.vala | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/AppWindow.vala b/src/AppWindow.vala
index bdb7bd2..e7902c7 100644
--- a/src/AppWindow.vala
+++ b/src/AppWindow.vala
@@ -355,8 +355,10 @@ public abstract class PageWindow : Gtk.ApplicationWindow {
public void set_busy_cursor() {
if (busy_counter++ > 0)
return;
-
- get_window().set_cursor(new Gdk.Cursor(Gdk.CursorType.WATCH));
+
+ var display = get_window ().get_display ();
+ var cursor = new Gdk.Cursor.for_display (display, Gdk.CursorType.WATCH);
+ get_window().set_cursor (cursor);
spin_event_loop();
}
@@ -368,7 +370,9 @@ public abstract class PageWindow : Gtk.ApplicationWindow {
return;
}
- get_window().set_cursor(new Gdk.Cursor(Gdk.CursorType.LEFT_PTR));
+ var display = get_window ().get_display ();
+ var cursor = new Gdk.Cursor.for_display (display, Gdk.CursorType.LEFT_PTR);
+ get_window().set_cursor (cursor);
spin_event_loop();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]