2008-09-16 [colin] 3.5.0cvs110
authorColin Leroy <colin@colino.net>
Tue, 16 Sep 2008 20:40:24 +0000 (20:40 +0000)
committerColin Leroy <colin@colino.net>
Tue, 16 Sep 2008 20:40:24 +0000 (20:40 +0000)
* src/prefs_account.c
* src/prefs_folder_item.c
* src/prefs_spelling.c
* src/gtk/gtkaspell.c
Better stripping of aspell dictionaries names

ChangeLog
PATCHSETS
configure.ac
src/gtk/gtkaspell.c
src/prefs_account.c
src/prefs_folder_item.c
src/prefs_spelling.c

index fc01678..799ebd7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-09-16 [colin]     3.5.0cvs110
+
+       * src/prefs_account.c
+       * src/prefs_folder_item.c
+       * src/prefs_spelling.c
+       * src/gtk/gtkaspell.c
+               Better stripping of aspell dictionaries names
+
 2008-09-16 [colin]     3.5.0cvs109
 
        * src/account.c
index 732b3b3..22f7b78 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.382.2.476 -r 1.382.2.477 src/compose.c;  ) > 3.5.0cvs107.patchset
 ( cvs diff -u -r 1.94.2.185 -r 1.94.2.186 src/messageview.c;  cvs diff -u -r 1.2.2.33 -r 1.2.2.34 src/gtk/inputdialog.c;  cvs diff -u -r 1.1.2.10 -r 1.1.2.11 src/gtk/inputdialog.h;  ) > 3.5.0cvs108.patchset
 ( cvs diff -u -r 1.61.2.85 -r 1.61.2.86 src/account.c;  cvs diff -u -r 1.149.2.95 -r 1.149.2.96 src/inc.c;  cvs diff -u -r 1.274.2.272 -r 1.274.2.273 src/mainwindow.c;  cvs diff -u -r 1.49.2.40 -r 1.49.2.41 src/prefs_account.h;  cvs diff -u -r 1.1.2.31 -r 1.1.2.32 src/prefs_other.c;  cvs diff -u -r 1.17.2.50 -r 1.17.2.51 src/send_message.c;  cvs diff -u -r 1.2.2.34 -r 1.2.2.35 src/gtk/inputdialog.c;  ) > 3.5.0cvs109.patchset
+( cvs diff -u -r 1.105.2.145 -r 1.105.2.146 src/prefs_account.c;  cvs diff -u -r 1.52.2.67 -r 1.52.2.68 src/prefs_folder_item.c;  cvs diff -u -r 1.5.2.37 -r 1.5.2.38 src/prefs_spelling.c;  cvs diff -u -r 1.9.2.61 -r 1.9.2.62 src/gtk/gtkaspell.c;  ) > 3.5.0cvs110.patchset
index 03367d1..2b8b00a 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=5
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=109
+EXTRA_VERSION=110
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 2c9fea5..2870b8a 100644 (file)
@@ -393,6 +393,9 @@ GtkAspell *gtkaspell_new(const gchar *dictionary,
                dict->dictname = g_strdup(dictionary);
        }
 
+       if (strchr(dictionary, '-')) {
+               *(strchr(dictionary, '-')) = '\0';
+       }
        gtkaspeller    = gtkaspeller_new(dict); 
        dictionary_delete(dict);
 
@@ -418,6 +421,9 @@ GtkAspell *gtkaspell_new(const gchar *dictionary,
                        alt_dict->fullname = g_strdup(alt_dictionary);
                        alt_dict->dictname = g_strdup(alt_dictionary);
                }
+               if (strchr(alt_dictionary, '-')) {
+                       *(strchr(alt_dictionary, '-')) = '\0';
+               }
 
                alt_gtkaspeller    = gtkaspeller_new(alt_dict);
                dictionary_delete(alt_dict);
@@ -2055,6 +2061,10 @@ gboolean gtkaspell_change_dict(GtkAspell *gtkaspell, const gchar *dictionary,
                dict->dictname = g_strdup(dictionary);
        }
 
+       if (strchr(dictionary, '-')) {
+               *(strchr(dictionary, '-')) = '\0';
+       }
+
        gtkaspeller = gtkaspeller_new(dict);
 
        if (!gtkaspeller) {
@@ -2101,6 +2111,10 @@ gboolean gtkaspell_change_alt_dict(GtkAspell *gtkaspell, const gchar *alt_dictio
                dict->dictname = g_strdup(alt_dictionary);
        }
 
+       if (strchr(alt_dictionary, '-')) {
+               *(strchr(alt_dictionary, '-')) = '\0';
+       }
+
        gtkaspeller = gtkaspeller_new(dict);
 
        if (!gtkaspeller) {
index 25a01ba..4f17d82 100644 (file)
@@ -4538,6 +4538,9 @@ static void prefs_account_compose_default_dictionary_set_optmenu_from_string
                dictionary = g_strdup(strrchr(dictionary, '/')+1);
        }
 
+       if (strchr(dictionary, '-')) {
+               *(strchr(dictionary, '-')) = '\0';
+       }
        combo = *pparam->widget;
        if (dictionary)
                gtkaspell_set_dictionary_menu_active_item(GTK_COMBO_BOX(combo), 
index 5d66a89..f4ef920 100644 (file)
@@ -939,6 +939,9 @@ static void prefs_folder_item_compose_create_widget_func(PrefsPage * page_,
                item->prefs->default_dictionary = tmp;
                dictionary = item->prefs->default_dictionary;
        }
+       if (strchr(item->prefs->default_dictionary, '-')) {
+               *(strchr(item->prefs->default_dictionary, '-')) = '\0';
+       }
        if (dictionary)
                gtkaspell_set_dictionary_menu_active_item(
                        GTK_COMBO_BOX(combo_default_dictionary), dictionary);
@@ -969,6 +972,9 @@ static void prefs_folder_item_compose_create_widget_func(PrefsPage * page_,
                item->prefs->default_alt_dictionary = tmp;
                dictionary = item->prefs->default_alt_dictionary;
        }
+       if (strchr(item->prefs->default_alt_dictionary, '-')) {
+               *(strchr(item->prefs->default_alt_dictionary, '-')) = '\0';
+       }
        if (dictionary)
                gtkaspell_set_dictionary_menu_active_item(
                        GTK_COMBO_BOX(combo_default_alt_dictionary), dictionary);
index 6c8f9bb..b9de1cc 100644 (file)
@@ -238,6 +238,12 @@ static void prefs_spelling_create_widget(PrefsPage *_page, GtkWindow *window, gp
                g_free(prefs_common.alt_dictionary);
                prefs_common.alt_dictionary = tmp;
        }
+       if (strchr(prefs_common.dictionary, '-')) {
+               *(strchr(prefs_common.dictionary, '-')) = '\0';
+       }
+       if (strchr(prefs_common.alt_dictionary, '-')) {
+               *(strchr(prefs_common.alt_dictionary, '-')) = '\0';
+       }
        gtkaspell_set_dictionary_menu_active_item(GTK_COMBO_BOX(default_dict_combo),
                                                prefs_common.dictionary);