summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--plugins/gtk+/glade-gtk-window.c17
-rw-r--r--plugins/gtk+/glade-window-editor.c18
3 files changed, 1 insertions, 36 deletions
diff --git a/configure.ac b/configure.ac
index 9792a54d..514a9369 100644
--- a/configure.ac
+++ b/configure.ac
@@ -145,7 +145,7 @@ GOBJECT_INTROSPECTION_CHECK([1.32.0])
dnl ================================================================
dnl Check for gtk+
dnl ================================================================
-GTK_REQUIRED=3.12.0
+GTK_REQUIRED=3.15.0
PKG_CHECK_MODULES([GTK],[
gtk+-3.0 >= $GTK_REQUIRED
gmodule-2.0
diff --git a/plugins/gtk+/glade-gtk-window.c b/plugins/gtk+/glade-gtk-window.c
index 2d7fde4d..7f221f39 100644
--- a/plugins/gtk+/glade-gtk-window.c
+++ b/plugins/gtk+/glade-gtk-window.c
@@ -38,23 +38,6 @@
#define CSD_DISABLED_MESSAGE _("This property does not apply to client-side decorated windows")
-#if !GTK_CHECK_VERSION (3,15,0)
-static void check_titlebar (GtkWidget *widget, gpointer data)
-{
- GtkWidget **titlebar = data;
- if (gtk_style_context_has_class (gtk_widget_get_style_context (widget), "titlebar"))
- *titlebar = widget;
-}
-
-static GtkWidget *
-gtk_window_get_titlebar (GtkWindow *window)
-{
- GtkWidget *titlebar = NULL;
- gtk_container_forall (GTK_CONTAINER (window), check_titlebar, &titlebar);
- return titlebar;
-}
-#endif
-
static void
glade_gtk_window_parse_finished (GladeProject * project, GObject * object)
{
diff --git a/plugins/gtk+/glade-window-editor.c b/plugins/gtk+/glade-window-editor.c
index fe4d8159..0ea7c79d 100644
--- a/plugins/gtk+/glade-window-editor.c
+++ b/plugins/gtk+/glade-window-editor.c
@@ -194,24 +194,6 @@ icon_file_toggled (GtkWidget *widget,
glade_editable_load (GLADE_EDITABLE (window_editor), gwidget);
}
-#if !GTK_CHECK_VERSION (3,15,0)
-/* Hack to find the titlebar */
-static void check_titlebar (GtkWidget *widget, gpointer data)
-{
- GtkWidget **titlebar = data;
- if (gtk_style_context_has_class (gtk_widget_get_style_context (widget), "titlebar"))
- *titlebar = widget;
-}
-
-static GtkWidget *
-gtk_window_get_titlebar (GtkWindow *window)
-{
- GtkWidget *titlebar = NULL;
- gtk_container_forall (GTK_CONTAINER (window), check_titlebar, &titlebar);
- return titlebar;
-}
-#endif
-
static void
use_csd_toggled (GtkWidget *widget,
GladeWindowEditor *window_editor)