changeset 21029:3a12f08b2185

Guard this X stuff so it's only compiled if GDK_WINDOWING_X11 is defined. I think this might be necessary for non-X11 non-win32 builds.
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 27 Oct 2007 13:36:14 +0000
parents e4cf0506be74
children 3cc856ca2338
files pidgin/gtkutils.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkutils.c	Sat Oct 27 13:31:38 2007 +0000
+++ b/pidgin/gtkutils.c	Sat Oct 27 13:36:14 2007 +0000
@@ -2858,7 +2858,7 @@
 	gtk_window_set_urgency_hint(window, urgent);
 #elif defined _WIN32
 	winpidgin_window_flash(window, urgent);
-#else
+#elif defined GDK_WINDOWING_X11
 	GdkWindow *gdkwin;
 	XWMHints *hints;
 
@@ -2880,6 +2880,8 @@
 	XSetWMHints(GDK_WINDOW_XDISPLAY(gdkwin),
 	            GDK_WINDOW_XWINDOW(gdkwin), hints);
 	XFree(hints);
+#else
+	/* do something else? */
 #endif
 }