diff options
author | ZenWalker <[email protected]> | 2016-10-07 22:21:44 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-11-06 18:51:06 +0100 |
commit | 7601e42e657579ff69730b29483d124ee8af5165 (patch) | |
tree | 1240bf60a77eed9aba514b3bed50255cba507f7a | |
parent | fff61bb1a1f528495a743865721c7da3589ac441 (diff) | |
download | mate-terminal-7601e42e657579ff69730b29483d124ee8af5165.tar.bz2 mate-terminal-7601e42e657579ff69730b29483d124ee8af5165.tar.xz |
notebook: avoid crash on tab DND
based on gnome-terminal commit:
https://git.gnome.org/browse/gnome-terminal/commit/?id=85b448f7c9e219e82d4d8abafe405d73349c08c1
Fixes #145
-rw-r--r-- | src/terminal-window.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/terminal-window.c b/src/terminal-window.c index 7026c83..c06bbc5 100644 --- a/src/terminal-window.c +++ b/src/terminal-window.c @@ -2633,8 +2633,13 @@ terminal_window_remove_screen (TerminalWindow *window, update_tab_visibility (window, -1); screen_container = terminal_screen_container_get_from_screen (screen); +#if GTK_CHECK_VERSION(3, 16, 0) + gtk_notebook_detach_tab (GTK_NOTEBOOK (priv->notebook), + GTK_WIDGET (screen_container)); +#else gtk_container_remove (GTK_CONTAINER (priv->notebook), GTK_WIDGET (screen_container)); +#endif } void |