/pidgin/main: 24393ecae82e: Make this plugin a bit more friendly...

John Bailey rekkanoryo at rekkanoryo.org
Sun Nov 4 12:52:40 EST 2012


Changeset: 24393ecae82ea5389224e526a25094d730a09357
Author:	 John Bailey <rekkanoryo at rekkanoryo.org>
Date:	 2012-11-04 12:46 -0500
Branch:	 release-2.x.y
URL: http://hg.pidgin.im/pidgin/main/rev/24393ecae82e

Description:

Make this plugin a bit more friendly with Quartz-enabled GTK+ in MacPorts.

diffstat:

 pidgin/plugins/notify.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (39 lines):

diff --git a/pidgin/plugins/notify.c b/pidgin/plugins/notify.c
--- a/pidgin/plugins/notify.c
+++ b/pidgin/plugins/notify.c
@@ -96,7 +96,7 @@
 #include "gtkplugin.h"
 #include "gtkutils.h"
 
-#ifndef _WIN32
+#ifdef HAVE_X11
 #include <X11/Xatom.h>
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
@@ -105,7 +105,7 @@
 #define NOTIFY_PLUGIN_ID "gtk-x11-notify"
 
 static PurplePlugin *my_plugin = NULL;
-#ifndef _WIN32
+#ifdef HAVE_X11
 static GdkAtom _Cardinal = GDK_NONE;
 static GdkAtom _PurpleUnseenCount = GDK_NONE;
 #endif
@@ -525,7 +525,7 @@ handle_count_title(PidginWindow *purplew
 static void
 handle_count_xprop(PidginWindow *purplewin)
 {
-#ifndef _WIN32
+#ifdef HAVE_X11
 	guint count;
 	GtkWidget *window;
 	GdkWindow *gdkwin;
@@ -757,7 +757,7 @@ get_config_frame(PurplePlugin *plugin)
 	g_signal_connect(G_OBJECT(toggle), "toggled",
 	                 G_CALLBACK(method_toggle_cb), "method_count");
 
-#ifndef _WIN32
+#ifdef HAVE_X11
 	/* Count xprop method button */
 	toggle = gtk_check_button_new_with_mnemonic(_("Insert count of new message into _X property"));
 	gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0);



More information about the Commits mailing list