diff options
author | ZenWalker <[email protected]> | 2016-11-06 02:04:11 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-11-06 18:51:13 +0100 |
commit | 6dc0e22c6189a3b396f31101a4aaa0d0dfe768da (patch) | |
tree | 6fc6b1ccdb03b12d35695575707295a796b40113 /src/terminal-window.c | |
parent | 7601e42e657579ff69730b29483d124ee8af5165 (diff) | |
download | mate-terminal-6dc0e22c6189a3b396f31101a4aaa0d0dfe768da.tar.bz2 mate-terminal-6dc0e22c6189a3b396f31101a4aaa0d0dfe768da.tar.xz |
Fix window size when a second tab is added by drag-n-drop
based on gnome-terminal commit:
https://git.gnome.org/browse/gnome-terminal/commit/?id=d3e593e4974303618305da4e0d20f0d5c10f83b0
Diffstat (limited to 'src/terminal-window.c')
-rw-r--r-- | 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 c06bbc5..fd374ec 100644 --- a/src/terminal-window.c +++ b/src/terminal-window.c @@ -3038,6 +3038,7 @@ notebook_page_added_callback (GtkWidget *notebook, { TerminalWindowPrivate *priv = window->priv; TerminalScreen *screen; + int pages; screen = terminal_screen_container_get_screen (TERMINAL_SCREEN_CONTAINER (container)); @@ -3096,6 +3097,8 @@ notebook_page_added_callback (GtkWidget *notebook, gtk_window_present_with_time (GTK_WINDOW (window), gtk_get_current_event_time ()); priv->present_on_insert = FALSE; } + pages = gtk_notebook_get_n_pages (GTK_NOTEBOOK (notebook)); + if (pages == 2) terminal_window_update_size (window, priv->active_screen, TRUE); } static void |