[gnome-calculator/gnome-3-18] MathDisplay grabs focus after being shown



commit 3fc2a2c8d6e9f933a76e00d0df63a46c493ffbbc
Author: Elita.A.A.Lobo <loboelita gmail com>
Date:   Mon Jan 11 21:07:33 2016 +0000

    MathDisplay grabs focus after being shown
    
    Fixes 748743

 src/math-window.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/math-window.vala b/src/math-window.vala
index 7dd94a5..c6c32f7 100644
--- a/src/math-window.vala
+++ b/src/math-window.vala
@@ -107,9 +107,9 @@ public class MathWindow : Gtk.ApplicationWindow
         scrolled_window.show ();
 
         _display = new MathDisplay (equation);
+        scrolled_window.add (_display);
+        _display.show ();
         _display.grabfocus ();
-        scrolled_window.add (display);
-        display.show ();
 
         _buttons = new MathButtons (equation);
 


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