Revision 2473
| src/compose.c (revision 2473) | ||
|---|---|---|
| 6016 | 6016 |
static void compose_change_spell_lang_menu(Compose *compose, const gchar *lang) |
| 6017 | 6017 |
{
|
| 6018 | 6018 |
GtkWidget *menu; |
| 6019 |
GtkWidget *def_item = NULL; |
|
| 6019 | 6020 |
GList *cur_item; |
| 6020 | 6021 |
const gchar *dict; |
| 6021 | 6022 |
|
| ... | ... | |
| 6025 | 6026 |
menu = gtk_menu_item_get_submenu(GTK_MENU_ITEM(compose->spell_menu)); |
| 6026 | 6027 |
for (cur_item = GTK_MENU_SHELL(menu)->children; cur_item != NULL; |
| 6027 | 6028 |
cur_item = cur_item->next) {
|
| 6029 |
if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(cur_item->data))) |
|
| 6030 |
def_item = GTK_WIDGET(cur_item->data); |
|
| 6028 | 6031 |
dict = g_object_get_data(G_OBJECT(cur_item->data), "spell-lang"); |
| 6029 | 6032 |
if (dict && !g_ascii_strcasecmp(dict, lang)) {
|
| 6030 | 6033 |
gtk_check_menu_item_set_active |
| 6031 | 6034 |
(GTK_CHECK_MENU_ITEM(cur_item->data), TRUE); |
| 6032 |
break;
|
|
| 6035 |
return;
|
|
| 6033 | 6036 |
} |
| 6034 | 6037 |
} |
| 6038 |
|
|
| 6039 |
if (def_item) {
|
|
| 6040 |
gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(def_item), |
|
| 6041 |
TRUE); |
|
| 6042 |
compose_set_spell_lang_cb(def_item, compose); |
|
| 6043 |
} |
|
| 6035 | 6044 |
} |
| 6036 | 6045 |
#endif /* USE_GTKSPELL */ |
| 6037 | 6046 |
|
| ChangeLog (revision 2473) | ||
|---|---|---|
| 1 | 1 |
2010-02-12 |
| 2 | 2 |
|
| 3 |
* src/compose.c: compose_change_spell_lang_menu(): force selection of |
|
| 4 |
currently selected item to update compose->spell_lang. |
|
| 5 |
|
|
| 6 |
2010-02-12 |
|
| 7 |
|
|
| 3 | 8 |
* src/compose.c: Preserve PGP settings saving and loading drafts |
| 4 | 9 |
(thanks to Antonio). |
| 5 | 10 |
|
Also available in: Unified diff