Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 104680 Details for
Bug 158663
mail-client/sylpheed-2.3.0rc version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for sylpheed 2.3 to replace aspell with enchant.
sylpheed-2.3-replace-aspell-with-enchant.diff (text/plain), 3.27 KB, created by
Dale Whittaker
on 2006-12-24 05:53:35 UTC
(
hide
)
Description:
Patch for sylpheed 2.3 to replace aspell with enchant.
Filename:
MIME Type:
Creator:
Dale Whittaker
Created:
2006-12-24 05:53:35 UTC
Size:
3.27 KB
patch
obsolete
>--- sylpheed-2.3.0.orig/src/compose.c 2006-12-14 01:49:40.000000000 +0000 >+++ sylpheed-2.3.0/src/compose.c 2006-12-24 13:44:54.000000000 +0000 >@@ -64,7 +64,7 @@ > #if USE_GTKSPELL > # include <gtk/gtkradiomenuitem.h> > # include <gtkspell/gtkspell.h> >-# include <aspell.h> >+# include <enchant/enchant.h> > #endif > > #include <stdio.h> >@@ -463,6 +463,9 @@ > GtkWidget *widget); > static void compose_set_spell_lang_cb (GtkWidget *widget, > gpointer data); >+static void compose_list_dicts_cb (const char *lang_tag, >+ const char *provider_name, const char *provider_desc, >+ const char *provider_file, void *user_data); > #endif > > static void compose_attach_drag_received_cb (GtkWidget *widget, >@@ -5036,33 +5039,35 @@ > } > > #if USE_GTKSPELL >+static void compose_list_dicts_cb(const char *lang_tag, >+ const char *provider_name, const char *provider_desc, >+ const char *provider_file, void *user_data) >+{ >+ GQueue *queue = (GQueue *)user_data; >+ >+ if (g_queue_index(queue, (gconstpointer)lang_tag) == -1) { >+ g_queue_push_tail(queue, g_strdup(lang_tag)); >+ >+ } >+} >+ > static void compose_set_spell_lang_menu(Compose *compose) > { >- AspellConfig *config; >- AspellDictInfoList *dlist; >- AspellDictInfoEnumeration *dels; >- const AspellDictInfo *entry; >+ EnchantBroker *broker; >+ GQueue *langs; > GSList *dict_list = NULL, *menu_list = NULL, *cur; > GtkWidget *menu; > gboolean lang_set = FALSE; > >- config = new_aspell_config(); >- dlist = get_aspell_dict_info_list(config); >- delete_aspell_config(config); >- >- dels = aspell_dict_info_list_elements(dlist); >- while ((entry = aspell_dict_info_enumeration_next(dels)) != 0) { >- dict_list = g_slist_append(dict_list, (gchar *)entry->name); >- if (compose->spell_lang != NULL && >- g_ascii_strcasecmp(compose->spell_lang, entry->name) == 0) >- lang_set = TRUE; >- } >- delete_aspell_dict_info_enumeration(dels); >+ broker = enchant_broker_init(); >+ langs = g_queue_new(); >+ enchant_broker_list_dicts(broker, compose_list_dicts_cb, langs); >+ enchant_broker_free(broker); > > menu = gtk_menu_new(); >- >- for (cur = dict_list; cur != NULL; cur = cur->next) { >- gchar *dict = (gchar *)cur->data; >+ >+ while (g_queue_get_length(langs) > 0) { >+ gchar *dict = g_queue_pop_head(langs); > GtkWidget *item; > > if (dict == NULL) continue; >@@ -5072,13 +5077,16 @@ > (GTK_RADIO_MENU_ITEM(item)); > if (compose->spell_lang != NULL && > g_ascii_strcasecmp(compose->spell_lang, dict) == 0) >- gtk_check_menu_item_set_active >+ { >+ gtk_check_menu_item_set_active > (GTK_CHECK_MENU_ITEM(item), TRUE); >- gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); >+ lang_set = TRUE; >+ } >+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); > g_signal_connect(G_OBJECT(item), "activate", > G_CALLBACK(compose_set_spell_lang_cb), > compose); >- g_object_set_data(G_OBJECT(item), "spell-lang", dict); >+ g_object_set_data_full(G_OBJECT(item), "spell-lang", dict, g_free); > gtk_widget_show(item); > > if (!lang_set && g_ascii_strcasecmp("en", dict) == 0) >@@ -5086,6 +5094,8 @@ > (GTK_CHECK_MENU_ITEM(item), TRUE); > } > >+ g_queue_free(langs); >+ > gtk_widget_show(menu); > gtk_menu_item_set_submenu(GTK_MENU_ITEM(compose->spell_menu), menu); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 158663
:
104449
| 104680