diff options
author | Yuedong Du <yuedong.du@sun.com> | 2003-07-10 02:04:54 +0800 |
---|---|---|
committer | Yuedong Du <york@src.gnome.org> | 2003-07-10 02:04:54 +0800 |
commit | 16ce509ec02a99acf7324c4e157cf1cf781a8a67 (patch) | |
tree | c15bbb61a05f61ec7896de3011e92fc9814b890d /mail/folder-browser-ui.c | |
parent | fb32aa52b61de2c9e13d32a7a5f7661a6670a8f6 (diff) | |
download | gsoc2013-evolution-16ce509ec02a99acf7324c4e157cf1cf781a8a67.tar gsoc2013-evolution-16ce509ec02a99acf7324c4e157cf1cf781a8a67.tar.gz gsoc2013-evolution-16ce509ec02a99acf7324c4e157cf1cf781a8a67.tar.bz2 gsoc2013-evolution-16ce509ec02a99acf7324c4e157cf1cf781a8a67.tar.lz gsoc2013-evolution-16ce509ec02a99acf7324c4e157cf1cf781a8a67.tar.xz gsoc2013-evolution-16ce509ec02a99acf7324c4e157cf1cf781a8a67.tar.zst gsoc2013-evolution-16ce509ec02a99acf7324c4e157cf1cf781a8a67.zip |
add a gconf key corresponding to newly introduced caret mode of gtkhtml
2003-07-10 Yuedong Du <yuedong.du@sun.com>
* evolution-mail.schemas: add a gconf key corresponding to newly
introduced caret mode of gtkhtml widget.
* folder-browser-ui.c: new verb handling, corresponding the new menu
entry for the caret mode flag.
* folder-browser.h: declaration of new verb handler to the menu entry
that turn caret mode on/off. The function just set the new introduced
gconf key.
* folder-browser.c: ditto
* mail-config.c: lstione to the new gconf key, and when caret mode
flag is set/unset,change the style of gtkhtml widget. see bug
#44607.
svn path=/trunk/; revision=21776
Diffstat (limited to 'mail/folder-browser-ui.c')
-rw-r--r-- | mail/folder-browser-ui.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/folder-browser-ui.c b/mail/folder-browser-ui.c index 0f47ca66a2..4028f14e41 100644 --- a/mail/folder-browser-ui.c +++ b/mail/folder-browser-ui.c @@ -104,6 +104,7 @@ static BonoboUIVerb message_verbs [] = { BONOBO_UI_UNSAFE_VERB ("ToolsVFolderSubject", vfolder_subject), BONOBO_UI_UNSAFE_VERB ("ViewLoadImages", load_images), /* ViewHeaders stuff is a radio */ + /* CaretMode is a toggle */ BONOBO_UI_VERB_END }; @@ -238,6 +239,7 @@ struct _UINode default_ui_nodes[] = { { "ViewFullHeaders", IS_0MESSAGE }, { "ViewNormal", IS_0MESSAGE }, { "ViewSource", IS_0MESSAGE }, + { "CaretMode", IS_0MESSAGE }, { "AddSenderToAddressbook", IS_INCOMING_FOLDER | SELECTION_SINGLE | ANY_THREADED | HAS_FLAGS }, @@ -517,6 +519,7 @@ folder_browser_ui_add_message (FolderBrowser *fb) FolderBrowserSelectionState prev_state; GConfClient *gconf; int style; + gboolean caret_mode; gconf = mail_config_get_gconf_client (); @@ -527,6 +530,10 @@ folder_browser_ui_add_message (FolderBrowser *fb) ui_add (fb, "message", message_verbs, message_pixcache); + caret_mode = gconf_client_get_bool (gconf, "/apps/evolution/mail/display/caret_mode", NULL); + bonobo_ui_component_set_prop(uic, "/commands/CaretMode", "state", caret_mode?"1":"0", NULL); + bonobo_ui_component_add_listener (uic, "CaretMode", folder_browser_toggle_caret_mode, fb); + /* Display Style */ style = gconf_client_get_int (gconf, "/apps/evolution/mail/display/message_style", NULL); style = style >= 0 && style < MAIL_CONFIG_DISPLAY_MAX ? style : 0; |