Clone in a terminal:
Commit 0e5dfcf
Johan Mattsson - 2015-04-24T18:16:59+00:00
0e5dfcfb862c263779a4c383bc7ac16655c5c2e4johan.mattsson.m@gmail.com

Hide cursor in gtk window

Changed files (2)

Diff

diff --git a/birdfont/GtkWindow.vala b/birdfont/GtkWindow.valaindex b6faff9..41042ca 100644--- a/birdfont/GtkWindow.vala+++ b/birdfont/GtkWindow.vala@@ -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 {diff --git a/libbirdfont/NativeWindow.vala b/libbirdfont/NativeWindow.valaindex b117043..c38035b 100644--- a/libbirdfont/NativeWindow.vala+++ b/libbirdfont/NativeWindow.vala@@ -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); }  }

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112