Commit 0e5dfcf
Hide cursor in gtk window
Changed files (2)
Diff
@@ -633,6 +633,14 @@ public class GtkWindow : Gtk.Window, NativeWindow { public bool can_export () { return true; }+ + public void set_cursor (int visible) {+ if (visible != NativeWindow.VISIBLE) {+ get_window ().set_cursor (new Cursor (CursorType.BLANK_CURSOR));+ } else {+ get_window ().set_cursor (new Cursor (CursorType.ARROW));+ }+ } } class TabbarCanvas : DrawingArea {@@ -1,5 +1,5 @@ /*- Copyright (C) 2012, 2013, 2014 Johan Mattsson+ Copyright (C) 2012, 2013, 2014, 2015 Johan Mattsson This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -69,7 +69,7 @@ public interface NativeWindow : GLib.Object { public abstract bool can_export (); /** Set cursor visibility */- public abstract bool set_cursor (int visible);+ public abstract void set_cursor (int visible); } }