summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtk+/glade-gtk-window.c17
-rw-r--r--plugins/gtk+/glade-window-editor.c18
2 files changed, 0 insertions, 35 deletions
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)