[gnome-terminal] Grab focus in the infobar response handler



commit a11ec5da0aa5a14bd5d1d4833cb763acf9ab5514
Author: Christian Persch <chpe gnome org>
Date:   Sun Mar 7 21:18:20 2010 +0100

    Grab focus in the infobar response handler
    
    Otherwise focus ends up ... somewhere.

 src/terminal-screen.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index 03b7cae..18efe09 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -1421,6 +1421,8 @@ info_bar_response_cb (GtkWidget *info_bar,
                       int response,
                       TerminalScreen *screen)
 {
+  gtk_widget_grab_focus (GTK_WIDGET (screen));
+
   switch (response) {
     case GTK_RESPONSE_CANCEL:
       gtk_widget_destroy (info_bar);



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