CVS: sylpheedclaws/sylpheed-claws/src compose.c,1.382.2.346,1.382.2.347

[email protected] Wed, 27 Dec 2006 11:19:47 +0000
Newsgroups gmane.mail.sylpheed.claws.cvs
Message-ID <[email protected]>
Update of /pack/anoncvs/sylpheedclaws/sylpheed-claws/src
In directory sunsite.dk:/tmp/cvs-serv9894/src

Modified Files:
      Tag: gtk2
	compose.c 
Log Message:
2006-12-27 [wwp]	2.6.1cvs81

	* src/gtk/gtkaspell.c
	* src/gtk/gtkaspell.h
	* src/compose.c
		Fix assignment of compose's default and alternate dictionary from
		account or folder settings. Now gtkaspell_change_dict does rotate
		dicts only when it's called from a menu cb.

Index: compose.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/compose.c,v
retrieving revision 1.382.2.346
retrieving revision 1.382.2.347
diff -u -d -r1.382.2.346 -r1.382.2.347
--- compose.c	2006/12/23 10:42:19	1.382.2.346
+++ compose.c	2006/12/27 11:19:42	1.382.2.347
@@ -975,9 +975,9 @@
 	if (item && item->prefs && compose->gtkaspell) {
 		if (item->prefs->enable_default_dictionary)
 			gtkaspell_change_dict(compose->gtkaspell, 
-				    item->prefs->default_dictionary);
+				    item->prefs->default_dictionary, FALSE);
 		if (item->prefs->enable_default_alt_dictionary)
-			gtkaspell_change_dict(compose->gtkaspell, 
+			gtkaspell_change_alt_dict(compose->gtkaspell, 
 				    item->prefs->default_alt_dictionary);
 		compose_spell_menu_changed(compose);
 	}
@@ -1416,9 +1416,9 @@
 	    compose->gtkaspell) {
 		if (msginfo->folder->prefs->enable_default_dictionary)
 			gtkaspell_change_dict(compose->gtkaspell, 
-				    msginfo->folder->prefs->default_dictionary);
+				    msginfo->folder->prefs->default_dictionary, FALSE);
 		if (msginfo->folder->prefs->enable_default_alt_dictionary)
-			gtkaspell_change_dict(compose->gtkaspell, 
+			gtkaspell_change_alt_dict(compose->gtkaspell, 
 				    msginfo->folder->prefs->default_alt_dictionary);
 		compose_spell_menu_changed(compose);
 	}