[Commits] gtkaspell.c 1.9.2.83 1.9.2.84

claws at claws-mail.org claws at claws-mail.org
Wed Jan 9 12:50:40 CET 2013


Update of /home/claws-mail/claws/src/gtk
In directory srv:/tmp/cvs-serv22355/src/gtk

Modified Files:
      Tag: gtk2
	gtkaspell.c 
Log Message:
2013-01-09 [paul]	3.9.0cvs54

	* src/gtk/gtkaspell.c
		fix sensitivity of 'Use both dictionaries' in compose window 

Index: gtkaspell.c
===================================================================
RCS file: /home/claws-mail/claws/src/gtk/gtkaspell.c,v
retrieving revision 1.9.2.83
retrieving revision 1.9.2.84
diff -u -d -r1.9.2.83 -r1.9.2.84
--- gtkaspell.c	19 Sep 2012 14:48:46 -0000	1.9.2.83
+++ gtkaspell.c	9 Jan 2013 11:50:38 -0000	1.9.2.84
@@ -1,6 +1,7 @@
 /* gtkaspell - a spell-checking addon for GtkText
  * Copyright (c) 2000 Evan Martin (original code for ispell).
  * Copyright (c) 2002 Melvin Hadasht.
+ * Copyright (C) 2001-2013 the Claws Mail Team
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -1999,7 +2000,7 @@
 
 static GSList *populate_submenu(GtkAspell *gtkaspell)
 {
-	GtkWidget *item, *submenu;
+	GtkWidget *item, *submenu, *both_dicts_item;
 	gchar *dictname;
 	GtkAspeller *gtkaspeller = NULL;
 	GSList *list = NULL;
@@ -2034,15 +2035,17 @@
 		list = g_slist_append(list, item);
 	}
 
-	item = gtk_check_menu_item_new_with_label(_("Use both dictionaries"));
-	if (gtkaspell->use_both_dicts) {
-		gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(item), TRUE);
+	both_dicts_item = gtk_check_menu_item_new_with_label(_("Use both dictionaries"));
+	if (gtkaspell->use_both_dicts && gtkaspell->use_alternate) {
+		gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(both_dicts_item), TRUE);
 	} 
-	g_signal_connect(G_OBJECT(item), "activate",
+	gtk_widget_set_sensitive(both_dicts_item, gtkaspell->use_alternate);
+	
+	g_signal_connect(G_OBJECT(both_dicts_item), "activate",
 			 G_CALLBACK(set_use_both_cb),
 			 gtkaspell);
-	gtk_widget_show(item);
-	list = g_slist_append(list, item);
+	gtk_widget_show(both_dicts_item);
+	list = g_slist_append(list, both_dicts_item);
 	
 	item = gtk_menu_item_new();
         gtk_widget_show(item);



More information about the Commits mailing list