* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
/*
- * Adapted by the Sylpheed Claws Team.
+ * Adapted by the Claws Mail Team.
*/
/*
#include <gtk/gtkoptionmenu.h>
-#include "gtkstext.h"
-
typedef struct _GtkAspell GtkAspell; /* Defined in gtkaspell.c */
void gtkaspell_checkers_init (void);
GtkAspell* gtkaspell_new (const gchar *dictionary_path,
const gchar *dictionary,
+ const gchar *alt_dictionary,
const gchar *encoding,
gint misspelled_color,
- gboolean check_while_typing,
+ gboolean check_while_typing,
+ gboolean recheck_when_changing_dict,
gboolean use_alternate,
- GtkSText *gtktext);
+ gboolean use_both_dicts,
+ GtkTextView *gtktext,
+ GtkWindow *parent_win,
+ void (*spell_menu_cb)(void *data),
+ void *data);
void gtkaspell_delete (GtkAspell *gtkaspell);
-guchar* gtkaspell_get_dict (GtkAspell *gtkaspell);
gboolean gtkaspell_change_dict (GtkAspell *gtkaspell,
- const gchar* dictionary);
+ const gchar* dictionary,
+ gboolean always_set_alt_dict);
+
+gboolean gtkaspell_change_alt_dict (GtkAspell *gtkaspell,
+ const gchar* alt_dictionary);
-guchar* gtkaspell_get_path (GtkAspell *gtkaspell);
gboolean gtkaspell_set_sug_mode (GtkAspell *gtkaspell,
gint themode);
-GSList* gtkaspell_get_dictionary_list (const char *aspell_path,
- gint refresh);
-
-void gtkaspell_free_dictionary_list (GSList *list);
-
void gtkaspell_check_forwards_go (GtkAspell *gtkaspell);
void gtkaspell_check_backwards (GtkAspell *gtkaspell);
void gtkaspell_check_all (GtkAspell *gtkaspell);
-void gtkaspell_uncheck_all (GtkAspell *gtkaspell);
void gtkaspell_highlight_all (GtkAspell *gtkaspell);
-void gtkaspell_populate_submenu (GtkAspell *gtkaspell,
- GtkWidget *menuitem);
+GtkWidget* gtkaspell_dictionary_combo_new (const gchar *aspell_path,
+ const gboolean refresh);
-GtkWidget* gtkaspell_dictionary_option_menu_new (const gchar *aspell_path);
+GtkTreeModel* gtkaspell_dictionary_store_new (const gchar *aspell_path);
+GtkTreeModel* gtkaspell_dictionary_store_new_with_refresh
+ (const gchar *aspell_path,
+ gboolean refresh);
gchar* gtkaspell_get_dictionary_menu_active_item
- (GtkWidget *menu);
+ (GtkComboBox *combo);
gint gtkaspell_set_dictionary_menu_active_item
- (GtkWidget *menu,
+ (GtkComboBox *combo,
const gchar *dictionary);
-GtkWidget* gtkaspell_sugmode_option_menu_new (gint sugmode);
+GtkWidget* gtkaspell_sugmode_combo_new (gint sugmode);
-void gtkaspell_sugmode_option_menu_set (GtkOptionMenu *optmenu,
- gint sugmode);
+GSList* gtkaspell_make_config_menu (GtkAspell *gtkaspell);
-gint gtkaspell_get_sugmode_from_option_menu (GtkOptionMenu *optmenu);
+gchar *gtkaspell_get_default_dictionary(GtkAspell *gtkaspell);
#endif /* USE_ASPELL */
#endif /* __GTKASPELL_H__ */