summaryrefslogtreecommitdiffstats
path: root/mingw-w64-gtk3/window-GtkPlug-is-conditionally-supported-on-X11-o.patch
diff options
context:
space:
mode:
Diffstat (limited to 'mingw-w64-gtk3/window-GtkPlug-is-conditionally-supported-on-X11-o.patch')
-rw-r--r--mingw-w64-gtk3/window-GtkPlug-is-conditionally-supported-on-X11-o.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/mingw-w64-gtk3/window-GtkPlug-is-conditionally-supported-on-X11-o.patch b/mingw-w64-gtk3/window-GtkPlug-is-conditionally-supported-on-X11-o.patch
new file mode 100644
index 0000000..8e6c0b7
--- /dev/null
+++ b/mingw-w64-gtk3/window-GtkPlug-is-conditionally-supported-on-X11-o.patch
@@ -0,0 +1,38 @@
+From e9201c0d6d9818f23c8712b2af8316f67d9d6be3 Mon Sep 17 00:00:00 2001
+From: Emmanuele Bassi <ebassi@gnome.org>
+Date: Mon, 10 Nov 2014 14:08:20 +0000
+Subject: [PATCH] window: GtkPlug is conditionally supported on X11 only
+
+We cannot do a type check on it if we don't have the X11 backend
+compiled in.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=739885
+---
+ gtk/gtkwindow.c | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
+index 0d0fb88..6cb355b 100644
+--- a/gtk/gtkwindow.c
++++ b/gtk/gtkwindow.c
+@@ -1610,10 +1610,17 @@ gtk_window_constructed (GObject *object)
+ {
+ GtkWindow *window = GTK_WINDOW (object);
+ GtkWindowPrivate *priv = window->priv;
++ gboolean is_plug;
+
+ G_OBJECT_CLASS (gtk_window_parent_class)->constructed (object);
+
+- if (priv->type == GTK_WINDOW_TOPLEVEL && !GTK_IS_PLUG (window))
++#ifdef GDK_WINDOWING_X11
++ is_plug = GTK_IS_PLUG (window);
++#else
++ is_plug = FALSE;
++#endif
++
++ if (priv->type == GTK_WINDOW_TOPLEVEL && !is_plug)
+ {
+ priv->multipress_gesture = gtk_gesture_multi_press_new (GTK_WIDGET (object));
+ gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (priv->multipress_gesture), 0);
+--
+2.1.0 \ No newline at end of file