notebook: avoid crash on tab DND
based on gnome-terminal commit: https://git.gnome.org/browse/gnome-terminal/commit/?id=85b448f7c9e219e82d4d8abafe405d73349c08c1 Fixes #145master-1.22
parent
fff61bb1a1
commit
13bf77c21a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue