diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-10-10 06:01:49 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-10-10 06:01:49 +0800 |
commit | cd28010b326d9f212759a4f4de6cd9b67ac4f0db (patch) | |
tree | 4bfd81b9b33e3c38f7ee6f1cc4ea2a291e89c9a2 /mail/folder-browser.h | |
parent | a7282ea415c41d561245abfb988460a7a53c4cfb (diff) | |
download | gsoc2013-evolution-cd28010b326d9f212759a4f4de6cd9b67ac4f0db.tar gsoc2013-evolution-cd28010b326d9f212759a4f4de6cd9b67ac4f0db.tar.gz gsoc2013-evolution-cd28010b326d9f212759a4f4de6cd9b67ac4f0db.tar.bz2 gsoc2013-evolution-cd28010b326d9f212759a4f4de6cd9b67ac4f0db.tar.lz gsoc2013-evolution-cd28010b326d9f212759a4f4de6cd9b67ac4f0db.tar.xz gsoc2013-evolution-cd28010b326d9f212759a4f4de6cd9b67ac4f0db.tar.zst gsoc2013-evolution-cd28010b326d9f212759a4f4de6cd9b67ac4f0db.zip |
Create a chaqrset picker submenu in the View menu.
2001-10-09 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c (folder_browser_ui_add_message): Create a
chaqrset picker submenu in the View menu.
* mail-format.c (mail_format_raw_message): Pass the mail-display
to get_data_wrapper_text.
(get_data_wrapper_text): Use the user's override charset if one is
provided, otherwise user the user's default charset.
(handle_text_plain): Pass along the mail-display to
get_data_wrapper_text.
(handle_application_pgp): Same.
(handle_text_enriched): Here too.
(mail_get_message_body): Pass NULL as the mail-display to
get_data_wrapper_text since we don't have access to a
mail-display.
* mail-display.c (mail_display_set_charset): New function to set a
charset on the maildisplay. Once set, the message is redisplayed
using the new charset.
(mail_display_destroy): Free the charset.
* folder-browser.c (folder_browser_charset_changed): New callback
for when a user overrides the message charset.
svn path=/trunk/; revision=13530
Diffstat (limited to 'mail/folder-browser.h')
-rw-r--r-- | mail/folder-browser.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/mail/folder-browser.h b/mail/folder-browser.h index 1e10b907a9..85a6d6bbaf 100644 --- a/mail/folder-browser.h +++ b/mail/folder-browser.h @@ -24,6 +24,8 @@ #define IS_FOLDER_BROWSER(o) (GTK_CHECK_TYPE ((o), FOLDER_BROWSER_TYPE)) #define IS_FOLDER_BROWSER_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), FOLDER_BROWSER_TYPE)) +#define FB_DEFAULT_CHARSET _("Default") + typedef enum _FolderBrowserSelectionState { FB_SELSTATE_NONE, FB_SELSTATE_SINGLE, @@ -38,7 +40,7 @@ struct _FolderBrowser { GNOME_Evolution_Shell shell; GNOME_Evolution_ShellView shell_view; - + BonoboUIComponent *uicomp; /* @@ -68,11 +70,11 @@ struct _FolderBrowser { gboolean preview_shown; gboolean threaded; gboolean pref_master; - + FolderBrowserSelectionState selection_state; GSList *sensitize_changes; int sensitize_timeout_id; - + /* View collection and the menu handler object */ GalViewCollection *view_collection; GalViewMenus *view_menus; @@ -153,6 +155,12 @@ void folder_browser_set_message_display_style (BonoboUIComponent *comp const char *state, gpointer user_data); +void folder_browser_charset_changed (BonoboUIComponent *component, + const char *path, + Bonobo_UIComponent_EventType type, + const char *state, + gpointer user_data); + gboolean folder_browser_is_drafts (FolderBrowser *fb); gboolean folder_browser_is_sent (FolderBrowser *fb); gboolean folder_browser_is_outbox (FolderBrowser *fb); |