/pidgin/main: 3703a6de528a: Remove unnecessary GtkSpell checks.

Elliott Sales de Andrade qulogic at pidgin.im
Tue Aug 28 03:43:24 EDT 2012


Changeset: 3703a6de528a528eb84934501efa1b8578a21662
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2012-08-28 03:25 -0400
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/3703a6de528a

Description:

Remove unnecessary GtkSpell checks.

diffstat:

 pidgin/gtkconv.c      |  14 +++-----------
 pidgin/gtkprefs.c     |   2 --
 pidgin/gtkstatusbox.c |   7 -------
 3 files changed, 3 insertions(+), 20 deletions(-)

diffs (69 lines):

diff --git a/pidgin/gtkconv.c b/pidgin/gtkconv.c
--- a/pidgin/gtkconv.c
+++ b/pidgin/gtkconv.c
@@ -33,13 +33,6 @@
 # include <X11/Xlib.h>
 #endif
 
-#ifdef USE_GTKSPELL
-# include <gtkspell/gtkspell.h>
-# ifdef _WIN32
-#  include "wspell.h"
-# endif
-#endif
-
 #include <gdk/gdkkeysyms.h>
 
 #include "account.h"
@@ -7887,7 +7880,6 @@ static void
 spellcheck_pref_cb(const char *name, PurplePrefType type,
 				   gconstpointer value, gpointer data)
 {
-#ifdef USE_GTKSPELL
 	GList *cl;
 	PurpleConversation *conv;
 	PidginConversation *gtkconv;
@@ -7901,9 +7893,9 @@ spellcheck_pref_cb(const char *name, Pur
 
 		gtkconv = PIDGIN_CONVERSATION(conv);
 
-		pidgin_webview_set_spellcheck(GTK_WEBVIEW(gtkconv->entry), value);
-	}
-#endif
+		pidgin_webview_set_spellcheck(GTK_WEBVIEW(gtkconv->entry),
+		                              (gboolean)GPOINTER_TO_INT(value));
+	}
 }
 
 static void
diff --git a/pidgin/gtkprefs.c b/pidgin/gtkprefs.c
--- a/pidgin/gtkprefs.c
+++ b/pidgin/gtkprefs.c
@@ -1663,10 +1663,8 @@ conv_page(void)
 
 	pidgin_prefs_checkbox(_("_Notify buddies that you are typing to them"),
 			"/purple/conversations/im/send_typing", vbox);
-#ifdef USE_GTKSPELL
 	pidgin_prefs_checkbox(_("Highlight _misspelled words"),
 			PIDGIN_PREFS_ROOT "/conversations/spellcheck", vbox);
-#endif
 
 	pidgin_prefs_checkbox(_("Use smooth-scrolling"), PIDGIN_PREFS_ROOT "/conversations/use_smooth_scrolling", vbox);
 
diff --git a/pidgin/gtkstatusbox.c b/pidgin/gtkstatusbox.c
--- a/pidgin/gtkstatusbox.c
+++ b/pidgin/gtkstatusbox.c
@@ -60,13 +60,6 @@
 #include "gtkstatusbox.h"
 #include "gtkutils.h"
 
-#ifdef USE_GTKSPELL
-#  include <gtkspell/gtkspell.h>
-#  ifdef _WIN32
-#    include "wspell.h"
-#  endif
-#endif
-
 #include "gtk3compat.h"
 
 /* Timeout for typing notifications in seconds */



More information about the Commits mailing list