From: Ira W. Snyder Date: Tue, 22 Jan 2008 19:40:50 +0000 (-0800) Subject: [Window] Focus new VteTerminals when adding a new tab X-Git-Url: https://irasnyder.com/gitweb/?a=commitdiff_plain;h=046561900e6f85a79490627fb04d38e42852d6a0;p=tilda-gobject.git [Window] Focus new VteTerminals when adding a new tab 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. --- diff --git a/tilda-window.c b/tilda-window.c index 3c143e6..f0852aa 100644 --- a/tilda-window.c +++ b/tilda-window.c @@ -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; }