From 1dc9b4348460ee9771db8eef729bc6396ea646d7 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 26 Nov 2005 02:48:16 +0000 Subject: Conditionalize X11 stuff on GDK_WINDOWING_X11. 2005-11-26 Tor Lillqvist * e-dialog-utils.c: Conditionalize X11 stuff on GDK_WINDOWING_X11. svn path=/trunk/; revision=30682 --- e-util/ChangeLog | 4 ++++ e-util/e-dialog-utils.c | 15 +++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) (limited to 'e-util') diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 90a055a519..396f7f4fab 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,7 @@ +2005-11-26 Tor Lillqvist + + * e-dialog-utils.c: Conditionalize X11 stuff on GDK_WINDOWING_X11. + 2005-11-25 Tor Lillqvist * e-util-private.h: Sort the stuff in the Win32 part for diff --git a/e-util/e-dialog-utils.c b/e-util/e-dialog-utils.c index 7796b21e5e..4195248fb9 100644 --- a/e-util/e-dialog-utils.c +++ b/e-util/e-dialog-utils.c @@ -28,7 +28,10 @@ #include "e-dialog-utils.h" +#include +#ifdef GDK_WINDOWING_X11 #include +#endif #include #include @@ -120,6 +123,7 @@ e_notice_with_xid (GdkNativeWindow parent, GtkMessageType type, const char *form } +#ifdef GDK_WINDOWING_X11 /* Tests whether or not an X Window is being managed by the * window manager. */ @@ -146,6 +150,8 @@ window_is_wm_toplevel (Display *display, Window window) return FALSE; } +#endif + /** * e_dialog_set_transient_for: * @dialog: a dialog window @@ -163,11 +169,12 @@ e_dialog_set_transient_for (GtkWindow *dialog, GtkWidget *parent_widget) { GtkWidget *toplevel; +#ifdef GDK_WINDOWING_X11 Window parent, root_ret, *children; unsigned int numchildren; Display *display; Status status; - +#endif g_return_if_fail (GTK_IS_WINDOW (dialog)); g_return_if_fail (GTK_IS_WIDGET (parent_widget)); @@ -180,7 +187,7 @@ e_dialog_set_transient_for (GtkWindow *dialog, GTK_WINDOW (toplevel)); return; } - +#ifdef GDK_WINDOWING_X11 /* Find the top-level windowmanager-managed X Window */ display = GDK_WINDOW_XDISPLAY (parent_widget->window); parent = GDK_WINDOW_XID (parent_widget->window); @@ -193,6 +200,10 @@ e_dialog_set_transient_for (GtkWindow *dialog, } e_dialog_set_transient_for_xid (dialog, parent); +#endif +#ifdef GDK_WINDOWING_WIN32 + g_warning ("Not implemented: e_dialog_set_transient_for() plug windows"); +#endif } static void -- cgit