[gnome-calculator] Make info view unfocusable



commit 699a35535755ee5609575f22b4e1b96d5ce7344f
Author: Simen Heggestøyl <simenheg ifi uio no>
Date:   Thu Mar 13 18:05:59 2014 +0100

    Make info view unfocusable
    
    In October 2012, making the info view unfocusable made the cursor lock
    inside the main view. This seems to not be the case anymore. Let's make
    the info view unfocusable again.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706018

 src/math-display.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/math-display.vala b/src/math-display.vala
index 9c46293..f4da9b3 100644
--- a/src/math-display.vala
+++ b/src/math-display.vala
@@ -54,8 +54,7 @@ public class MathDisplay : Gtk.Viewport
 
         var info_view = new Gtk.TextView ();
         info_view.set_wrap_mode (Gtk.WrapMode.WORD);
-        info_view.set_can_focus (true); // FIXME: This should be false but it locks the cursor inside the 
main view for some reason
-        info_view.set_cursor_visible (false); // FIXME: Just here so when incorrectly gets focus doesn't 
look editable
+        info_view.set_can_focus (false);
         info_view.set_editable (false);
         info_view.set_justification (Gtk.Justification.RIGHT);
         /* TEMP: Disabled for now as GTK+ doesn't properly render a right aligned right margin, see bug 
#482688 */


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