[gnome-terminal] window: Focus the terminal if only a single tab remains in a window
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] window: Focus the terminal if only a single tab remains in a window
- Date: Fri, 9 Jan 2015 22:06:40 +0000 (UTC)
commit 083d17d70288fa864af44aefe6c123bea9af5592
Author: Egmont Koblinger <egmont gmail com>
Date: Fri Jan 9 23:04:13 2015 +0100
window: Focus the terminal if only a single tab remains in a window
https://bugzilla.gnome.org/show_bug.cgi?id=742422
src/terminal-window.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index c8913f8..cf9ba80 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -3425,6 +3425,9 @@ mdi_screen_removed_cb (TerminalMdiContainer *container,
pages = terminal_mdi_container_get_n_screens (container);
if (pages == 1)
{
+ TerminalScreen *active_screen = terminal_mdi_container_get_active_screen (container);
+ gtk_widget_grab_focus (GTK_WIDGET(active_screen)); /* bug 742422 */
+
terminal_window_update_size (window);
}
else if (pages == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]