[gnome-latex: 88/205] symbols: set the focus on the text after inserting a symbol



commit 76a616929c797f308bbaa01350b1baea67b2b859
Author: Sébastien Wilmet <sebastien wilmet gmail com>
Date:   Wed Oct 7 22:15:44 2009 +0200

    symbols: set the focus on the text after inserting a symbol

 TODO          | 2 +-
 src/symbols.c | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/TODO b/TODO
index fd13974..8c0f45e 100644
--- a/TODO
+++ b/TODO
@@ -16,7 +16,7 @@ Fri Oct 2, 2009 to Fri Oct 9, 2009
 [-] symbol tables
        - mathematical sets (N, Z, Q, R, C) in misc math
        x add a space after the symbols
-       - set the focus on the text after inserting a symbol
+       x set the focus on the text after inserting a symbol
 
 [x] bugs correction
 
diff --git a/src/symbols.c b/src/symbols.c
index 9498d17..94317c8 100644
--- a/src/symbols.c
+++ b/src/symbols.c
@@ -941,6 +941,8 @@ cb_symbol_selected (GtkIconView *icon_view, gpointer user_data)
                                GTK_TEXT_BUFFER (latexila.active_doc->source_buffer), " ", -1);
                gtk_text_buffer_end_user_action (buffer);
 
+               gtk_widget_grab_focus (latexila.active_doc->source_view);
+
                g_free (latex_command);
        }
 


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