[gtk+] gtk/gtkwindow.c: Fix build on non-X11
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk/gtkwindow.c: Fix build on non-X11
- Date: Mon, 26 Aug 2013 13:33:24 +0000 (UTC)
commit c8cad4910860fe3e9023f24a0592b84fdf847170
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Aug 26 12:12:57 2013 +0800
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.
gtk/gtkwindow.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 363654e..434b2fe 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7887,6 +7887,7 @@ ontop_window_clicked (GtkMenuItem *menuitem,
gtk_window_set_keep_above (window, !window->priv->above_initially);
}
+#ifdef GDK_WINDOWING_X11
static void
stick_window_clicked (GtkMenuItem *menuitem,
gpointer user_data)
@@ -7917,6 +7918,7 @@ workspace_change_clicked (GtkMenuItem *menuitem,
desktop = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (menuitem), "workspace"));
gdk_x11_window_move_to_desktop (gdk_window, desktop);
}
+#endif
static void
close_window_clicked (GtkMenuItem *menuitem,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]