aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2015-10-27 11:42:32 +1300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-10-27 17:02:38 +0100
commite80a7fcfde57054a26967ec25c02386ce9bb4108 (patch)
tree25933b33bada87d100aaec679c5c61253b10fcc0 /src
parenta18ab60939f72eb4c4b4c057790d14bcdeb3ec56 (diff)
downloadarctica-greeter-e80a7fcfde57054a26967ec25c02386ce9bb4108.tar.gz
arctica-greeter-e80a7fcfde57054a26967ec25c02386ce9bb4108.tar.bz2
arctica-greeter-e80a7fcfde57054a26967ec25c02386ce9bb4108.zip
Use non-deprecated Gdk.Cursor methods
Ported to ArcticaGreeter: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Diffstat (limited to 'src')
-rw-r--r--src/arctica-greeter.vala2
-rw-r--r--src/dash-entry.vala2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 5fccbef..f0abb4d 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -497,7 +497,7 @@ public class ArcticaGreeter
/* Set the cursor to not be the crap default */
debug ("Setting cursor");
- Gdk.get_default_root_window ().set_cursor (new Gdk.Cursor (Gdk.CursorType.LEFT_PTR));
+ Gdk.get_default_root_window ().set_cursor (new Gdk.Cursor.for_display (Gdk.Display.get_default (), Gdk.CursorType.LEFT_PTR));
bool do_show_version = false;
bool do_test_mode = false;
diff --git a/src/dash-entry.vala b/src/dash-entry.vala
index 471f518..cc51767 100644
--- a/src/dash-entry.vala
+++ b/src/dash-entry.vala
@@ -234,7 +234,7 @@ public class DashEntry : Gtk.Entry, Fadable
{
base.realize ();
- var cursor = new Gdk.Cursor (Gdk.CursorType.LEFT_PTR);
+ var cursor = new Gdk.Cursor.for_display (get_display (), Gdk.CursorType.LEFT_PTR);
var attrs = Gdk.WindowAttr ();
attrs.x = 0;
attrs.y = 0;