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