[gcalctool] Focus on the display entry by default



commit e57fd2c3d8662e84a734b15e51b0afadf9d1edb5
Author: Robert Ancell <robert ancell gmail com>
Date:   Wed May 27 12:06:22 2009 +0200

    Focus on the display entry by default
---
 ChangeLog |    4 ++++
 src/gtk.c |    6 ------
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a83561c..843fa10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,10 @@
 gcalctool change history.
 =========================
 
+2009-05-27 Robert Ancell <robert ancell gmail com>
+
+    * Focus on the display entry by default
+
 2009-05-26 Robert Ancell <robert ancell gmail com>
 
     * Fix missing icon in Help>Contents menu
diff --git a/src/gtk.c b/src/gtk.c
index a4e5569..df8f9ea 100644
--- a/src/gtk.c
+++ b/src/gtk.c
@@ -2804,12 +2804,6 @@ ui_start(void)
     ui_set_wordlen(v->wordlen);
     ui_set_trigonometric_mode(v->ttype);
     ui_set_numeric_mode(v->display.format);
-
-    /* Focus on the clear button */
-    if (X.mode == BASIC)
-        gtk_widget_grab_focus(GTK_WIDGET(X.clear_buttons[0]));
-    else
-        gtk_widget_grab_focus(GTK_WIDGET(X.clear_buttons[1]));
     
     gtk_widget_show(X.main_window);
 



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