diff src/gtkutils.h @ 7538:357eb1c39b72

[gaim-migrate @ 8151] Robot101 made a nice patch (which I modified just slightly) to put our gtkspell attachment function that we use all throughout gaim into a utility function, which handles error checking and only does anything if gtkspell support is compiled in. It lets us remove a lot of #ifdef USE_GTKSPELL from places, and doesn't change any functionality. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 17 Nov 2003 06:48:01 +0000
parents 53c86d59f20b
children 2823111061ba
line wrap: on
line diff
--- a/src/gtkutils.h	Mon Nov 17 06:44:05 2003 +0000
+++ b/src/gtkutils.h	Mon Nov 17 06:48:01 2003 +0000
@@ -273,6 +273,16 @@
 void gaim_gtk_find_images(const char *message, GSList **list);
 
 /**
+ * Sets up GtkSpell for the given GtkTextView, reporting errors
+ * if encountered.
+ *
+ * This does nothing if Gaim is not compiled with GtkSpell support.
+ *
+ * @param textview The textview widget to setup spellchecking for.
+ */
+void gaim_gtk_setup_gtkspell(GtkTextView *textview);
+
+/**
  * Stylizes the specified text using HTML, according to the current
  * font options.
  *
@@ -290,8 +300,8 @@
  * Save menu accelerators callback
  */
 void gaim_gtk_save_accels_cb(GtkAccelGroup *accel_group, guint arg1,
-														 GdkModifierType arg2, GClosure *arg3,
-														 gpointer data);
+							 GdkModifierType arg2, GClosure *arg3,
+							 gpointer data);
 
 /**
  * Save menu accelerators