forked from AuroraMiddleware/gtk
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
This commit is contained in:
parent
90555e06be
commit
36fedb0c4b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user