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.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.c')
-rw-r--r-- | mail/folder-browser.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 6ff8c386fd..b48f3f4b61 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -1379,6 +1379,24 @@ folder_browser_toggle_hide_deleted (BonoboUIComponent *component, } void +folder_browser_toggle_caret_mode(BonoboUIComponent *component, + const char * path, + Bonobo_UIComponent_EventType type, + const char * state, + gpointer user_data) +{ + FolderBrowser *fb = user_data; + GConfClient *gconf; + + if (type != Bonobo_UIComponent_STATE_CHANGED) + return; + + gconf = mail_config_get_gconf_client (); + gconf_client_set_bool (gconf, "/apps/evolution/mail/display/caret_mode", + atoi(state), NULL); +} + +void folder_browser_set_message_display_style (BonoboUIComponent *component, const char *path, Bonobo_UIComponent_EventType type, |