changeset 12959:acf22abb86ba

[gaim-migrate @ 15312] I got tired of people asking me for this on Windows, and of telling people to use it and them saying "I can't find it" when they didn't bother to tell me they were using Windows first. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Fri, 20 Jan 2006 01:44:06 +0000
parents 6910db1ae6a1
children cefac38bcb9f
files plugins/Makefile.mingw plugins/notify.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/Makefile.mingw	Fri Jan 20 00:26:55 2006 +0000
+++ b/plugins/Makefile.mingw	Fri Jan 20 01:44:06 2006 +0000
@@ -119,6 +119,7 @@
 		history.dll \
 	 	iconaway.dll \
 		idle.dll \
+		notify.dll \
 		relnot.dll \
 		spellchk.dll \
 		statenotify.dll \
--- a/plugins/notify.c	Fri Jan 20 00:26:55 2006 +0000
+++ b/plugins/notify.c	Fri Jan 20 01:44:06 2006 +0000
@@ -96,9 +96,11 @@
 #include "gtkplugin.h"
 #include "gtkutils.h"
 
+#ifndef _WIN32
 #include <X11/Xatom.h>
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
+#endif
 
 #define NOTIFY_PLUGIN_ID "gtk-x11-notify"
 
@@ -494,6 +496,7 @@
 static void
 handle_urgent(GaimGtkWindow *win, gboolean add)
 {
+#ifndef _WIN32
 	XWMHints *hints;
 
 	g_return_if_fail(win != NULL);
@@ -512,6 +515,7 @@
 	XSetWMHints(GDK_WINDOW_XDISPLAY(win->window->window),
 	            GDK_WINDOW_XWINDOW(win->window->window), hints);
 	XFree(hints);
+#endif
 }
 
 static void
@@ -684,6 +688,7 @@
 	g_signal_connect(G_OBJECT(toggle), "toggled",
 	                 G_CALLBACK(method_toggle_cb), "method_count");
 
+#ifndef _WIN32
 	/* Urgent method button */
 	toggle = gtk_check_button_new_with_mnemonic(_("Set window manager \"_URGENT\" hint"));
 	gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0);
@@ -691,6 +696,7 @@
 	                             gaim_prefs_get_bool("/plugins/gtk/X11/notify/method_urgent"));
 	g_signal_connect(G_OBJECT(toggle), "toggled",
 	                 G_CALLBACK(method_toggle_cb), "method_urgent");
+#endif
 
 	/* Raise window method button */
 	toggle = gtk_check_button_new_with_mnemonic(_("R_aise conversation window"));