[Window] Focus new VteTerminals when adding a new tab
authorIra W. Snyder <devel@irasnyder.com>
Tue, 22 Jan 2008 19:40:50 +0000 (11:40 -0800)
committerIra W. Snyder <devel@irasnyder.com>
Tue, 22 Jan 2008 19:40:50 +0000 (11:40 -0800)
Previously, whenever a new tab was added, the notebook page was given
the in-window focus. The focus should have been given to the VteTerminal.

tilda-window.c

index 3c143e6..f0852aa 100644 (file)
@@ -104,6 +104,9 @@ tilda_window_add_terminal (TildaWindow *self)
        if (gtk_notebook_get_n_pages (GTK_NOTEBOOK(self->notebook)) > 1)
                gtk_notebook_set_show_tabs (GTK_NOTEBOOK(self->notebook), TRUE);
 
+       /* Focus the VTE Terminal */
+       gtk_widget_grab_focus (tt->vte_term);
+
        return TRUE;
 }