mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 01:40:10 +00:00
gtk/gtkwindow.c: Fix build on non-X11
There were some code added to this file that is meant for the X11 backend, but they are being unconditionally built. Add build-time checks for the X11 backend for these to fix the build on non-X11 platforms.
This commit is contained in:
parent
a0e4fa5e61
commit
c8cad49108
@ -7887,6 +7887,7 @@ ontop_window_clicked (GtkMenuItem *menuitem,
|
|||||||
gtk_window_set_keep_above (window, !window->priv->above_initially);
|
gtk_window_set_keep_above (window, !window->priv->above_initially);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef GDK_WINDOWING_X11
|
||||||
static void
|
static void
|
||||||
stick_window_clicked (GtkMenuItem *menuitem,
|
stick_window_clicked (GtkMenuItem *menuitem,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
@ -7917,6 +7918,7 @@ workspace_change_clicked (GtkMenuItem *menuitem,
|
|||||||
desktop = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (menuitem), "workspace"));
|
desktop = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (menuitem), "workspace"));
|
||||||
gdk_x11_window_move_to_desktop (gdk_window, desktop);
|
gdk_x11_window_move_to_desktop (gdk_window, desktop);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
close_window_clicked (GtkMenuItem *menuitem,
|
close_window_clicked (GtkMenuItem *menuitem,
|
||||||
|
Loading…
Reference in New Issue
Block a user