[Xfce4-commits] [apps/xfce4-terminal] 01/01: Bump gtk3 required version to 3.16.0

noreply at xfce.org noreply at xfce.org
Mon Feb 13 09:42:04 CET 2017


This is an automated email from the git hooks/post-receive script.

f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.

commit 287bf06e4c966acae1a6b94ab05dfb82f2fcaaf3
Author: Igor <f2404 at yandex.ru>
Date:   Mon Feb 13 11:41:00 2017 +0300

    Bump gtk3 required version to 3.16.0
    
    It seems the oldest gtk3 version shipped nowadays is 3.18.0 on FreeBSD.
---
 configure.ac.in            |  2 +-
 terminal/terminal-window.c | 10 +---------
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/configure.ac.in b/configure.ac.in
index f4761e4..3df3af6 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -91,7 +91,7 @@ XDT_CHECK_LIBX11()
 dnl ***********************************
 dnl *** Check for required packages ***
 dnl ***********************************
-XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.14.0])
+XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.16.0])
 XDT_CHECK_PACKAGE([VTE], [vte-2.91], [0.38])
 XDT_CHECK_PACKAGE([GIO], [gio-2.0], [2.26.0])
 XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.10.0])
diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 6f34773..847c041 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -1338,11 +1338,7 @@ terminal_window_notebook_drag_data_received (GtkWidget        *widget,
           g_object_ref (G_OBJECT (window));
 
           /* remove the document from the source notebook */
-#if GTK_CHECK_VERSION (3,16,0)
           gtk_notebook_detach_tab (GTK_NOTEBOOK (notebook), *screen);
-#else
-          gtk_container_remove (GTK_CONTAINER (notebook), *screen);
-#endif
 
           /* add the screen to the new window */
           terminal_window_add (window, TERMINAL_SCREEN (*screen));
@@ -1401,11 +1397,7 @@ terminal_window_notebook_create_window (GtkNotebook    *notebook,
       g_object_ref (G_OBJECT (screen));
 
       /* remove screen from active window */
-      #if GTK_CHECK_VERSION (3,16,0)
-        gtk_notebook_detach_tab (notebook, child);
-      #else
-        gtk_container_remove (GTK_CONTAINER (notebook), child);
-      #endif
+      gtk_notebook_detach_tab (notebook, child);
 
       /* 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