aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-11-26 10:48:16 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-11-26 10:48:16 +0800
commit1dc9b4348460ee9771db8eef729bc6396ea646d7 (patch)
treef2b6ed2d2ae22c6f1caf13cbd6f641b2dee43d83 /e-util
parent4172f09580fed628681bd683f620c2bc43ea842e (diff)
downloadgsoc2013-evolution-1dc9b4348460ee9771db8eef729bc6396ea646d7.tar.gz
gsoc2013-evolution-1dc9b4348460ee9771db8eef729bc6396ea646d7.tar.zst
gsoc2013-evolution-1dc9b4348460ee9771db8eef729bc6396ea646d7.zip
Conditionalize X11 stuff on GDK_WINDOWING_X11.
2005-11-26 Tor Lillqvist <tml@novell.com> * e-dialog-utils.c: Conditionalize X11 stuff on GDK_WINDOWING_X11. svn path=/trunk/; revision=30682
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog4
-rw-r--r--e-util/e-dialog-utils.c15
2 files changed, 17 insertions, 2 deletions
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 <tml@novell.com>
+
+ * e-dialog-utils.c: Conditionalize X11 stuff on GDK_WINDOWING_X11.
+
2005-11-25 Tor Lillqvist <tml@novell.com>
* 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 <gdkconfig.h>
+#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
+#endif
#include <gtk/gtkmain.h>
#include <gtk/gtkplug.h>
@@ -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