[Xfce4-commits] [apps/xfce4-terminal] 01/01: Fix detach tab functionality with GTK>=3.16
noreply at xfce.org
noreply at xfce.org
Tue Jun 7 20:48:22 CEST 2016
This is an automated email from the git hooks/post-receive script.
ochosi pushed a commit to branch master
in repository apps/xfce4-terminal.
commit 60a7bb1917a6b4ca8871159adde07555ff57d2cb
Author: Igor <f2404 at yandex.ru>
Date: Tue Jun 7 19:09:54 2016 +0300
Fix detach tab functionality with GTK>=3.16
Signed-off-by: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
---
terminal/terminal-window.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 1ca9660..063893c 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -1046,7 +1046,7 @@ terminal_window_notebook_drag_data_received (GtkWidget *widget,
gint y,
GtkSelectionData *selection_data,
guint info,
- guint32 drag_time,
+ guint drag_time,
TerminalWindow *window)
{
GtkWidget *notebook;
@@ -1151,7 +1151,11 @@ terminal_window_notebook_create_window (GtkNotebook *notebook,
g_object_ref (G_OBJECT (screen));
/* remove screen from active window */
- gtk_container_remove (GTK_CONTAINER (window->notebook), child);
+ #if GTK_CHECK_VERSION (3,16,0)
+ gtk_notebook_detach_tab (notebook, child);
+ #else
+ gtk_container_remove (GTK_CONTAINER (notebook), child);
+ #endif
/* create new window with the screen */
g_signal_emit (G_OBJECT (window), window_signals[NEW_WINDOW_WITH_SCREEN], 0, screen, x, y);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list