changeset 32058:e1c801f3669d

I assume this check was backwards, since embedding should be used on !Windows. Also, fix a warning when the function's not used.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Tue, 06 Sep 2011 18:38:01 +0000
parents 0f0996c93c42
children d50bdda3dc81
files pidgin/gtkdocklet.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkdocklet.c	Tue Sep 06 18:30:50 2011 +0000
+++ b/pidgin/gtkdocklet.c	Tue Sep 06 18:38:01 2011 +0000
@@ -858,6 +858,7 @@
 	return FALSE;
 }
 
+#ifndef _WIN32
 static gboolean
 docklet_gtk_embed_timeout_cb(gpointer data)
 {
@@ -890,6 +891,7 @@
 	return TRUE;
 #endif
 }
+#endif
 
 #if GTK_CHECK_VERSION(2,12,0)
 static gboolean
@@ -1005,7 +1007,7 @@
 	 */
 	if (!recreate) {
 		pidgin_docklet_embedded();
-#ifdef _WIN32
+#ifndef _WIN32
 #if GTK_CHECK_VERSION(2,12,0)
 		if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/docklet/gtk/embedded")) {
 			embed_timeout = purple_timeout_add_seconds(LONG_EMBED_TIMEOUT, docklet_gtk_embed_timeout_cb, NULL);