[gtk+/gtk-3-14] window: GtkPlug is conditionally supported on X11 only
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-14] window: GtkPlug is conditionally supported on X11 only
- Date: Mon, 10 Nov 2014 15:11:56 +0000 (UTC)
commit 0b8f666e022d983db2cefaffb24315dc34b26673
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Nov 10 14:08:20 2014 +0000
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 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index e846c41..7f5aae7 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1601,10 +1601,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]