[gnome-terminal] Revert "Revert "app: Fix window size when a second tab is added by drag-n-drop""
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] Revert "Revert "app: Fix window size when a second tab is added by drag-n-drop""
- Date: Thu, 29 May 2014 12:08:22 +0000 (UTC)
commit 82a9a6581afc04aa6ba7f2451ce501edb19cd6e5
Author: Christian Persch <chpe gnome org>
Date: Thu May 29 14:06:05 2014 +0200
Revert "Revert "app: Fix window size when a second tab is added by drag-n-drop""
This reverts commit b670353dc291b771af4ae28d899aa42e842bd11f.
src/terminal-window.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 90b58d3..36474f3 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -3253,6 +3253,7 @@ mdi_screen_added_cb (TerminalMdiContainer *container,
TerminalWindow *window)
{
TerminalWindowPrivate *priv = window->priv;
+ int pages;
_terminal_debug_print (TERMINAL_DEBUG_MDI,
"[window %p] MDI: screen %p inserted\n",
@@ -3312,6 +3313,12 @@ mdi_screen_added_cb (TerminalMdiContainer *container,
gtk_window_present_with_time (GTK_WINDOW (window), gtk_get_current_event_time ());
priv->present_on_insert = FALSE;
}
+
+ pages = terminal_mdi_container_get_n_screens (container);
+ if (pages == 2)
+ {
+ terminal_window_update_size (window);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]