Ticket #45966: gtk_window.c.diff

File gtk_window.c.diff, 760 bytes (added by gellule.xg@…, 10 years ago)
  • gtk/gtkwindow.c

    diff --git gtk/gtkwindow.c gtk/gtkwindow.c
    index e846c41..7f5aae7 100644
    gtk_window_constructed (GObject *object) 
    16011601{
    16021602  GtkWindow *window = GTK_WINDOW (object);
    16031603  GtkWindowPrivate *priv = window->priv;
     1604  gboolean is_plug;
    16041605
    16051606  G_OBJECT_CLASS (gtk_window_parent_class)->constructed (object);
    16061607
    1607   if (priv->type == GTK_WINDOW_TOPLEVEL && !GTK_IS_PLUG (window))
     1608#ifdef GDK_WINDOWING_X11
     1609  is_plug = GTK_IS_PLUG (window);
     1610#else
     1611  is_plug = FALSE;
     1612#endif
     1613
     1614  if (priv->type == GTK_WINDOW_TOPLEVEL && !is_plug)
    16081615    {
    16091616      priv->multipress_gesture = gtk_gesture_multi_press_new (GTK_WIDGET (object));
    16101617      gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (priv->multipress_gesture), 0);