diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-02-27 04:07:43 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-02-27 04:07:43 +0800 |
commit | ed71a8cb94a3bb163f74f2dc66dc58dcafd9185f (patch) | |
tree | f70c602c59c2880e7208ce1a4276343b6509667f /mail/em-folder-view.h | |
parent | 6ce5f011fbea862fecd948215ba378c549724363 (diff) | |
download | gsoc2013-evolution-ed71a8cb94a3bb163f74f2dc66dc58dcafd9185f.tar.gz gsoc2013-evolution-ed71a8cb94a3bb163f74f2dc66dc58dcafd9185f.tar.zst gsoc2013-evolution-ed71a8cb94a3bb163f74f2dc66dc58dcafd9185f.zip |
Fix for bug #54352
2004-02-26 Jeffrey Stedfast <fejj@ximian.com>
Fix for bug #54352
* em-message-browser.c (emmb_class_init): Set update_message_style
to FALSE.
* em-folder-view.c (emfv_setting_notify): Only update message
display style if our subclass wants us to.
(emfv_class_init): Set update_message_style to TRUE.
(emfv_view_mode): Don't save the gconf key unless our class allows
us to.
svn path=/trunk/; revision=24894
Diffstat (limited to 'mail/em-folder-view.h')
-rw-r--r-- | mail/em-folder-view.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/mail/em-folder-view.h b/mail/em-folder-view.h index 4d7f3057a2..31dd8a13dd 100644 --- a/mail/em-folder-view.h +++ b/mail/em-folder-view.h @@ -37,6 +37,8 @@ struct _EMFormatHTMLDisplay; struct _CamelFolder; struct _CamelMedium; +#define EM_FOLDER_VIEW_GET_CLASS(emfv) ((EMFolderViewClass *) G_OBJECT_GET_CLASS (emfv)) + typedef struct _EMFolderView EMFolderView; typedef struct _EMFolderViewClass EMFolderViewClass; @@ -86,7 +88,10 @@ struct _EMFolderView { struct _EMFolderViewClass { GtkVBoxClass parent_class; - + + /* behaviour definition */ + int update_message_style:1; + /* if used as a control, used to activate/deactivate custom menu's */ void (*activate)(EMFolderView *, struct _BonoboUIComponent *uic, int state); @@ -102,10 +107,10 @@ GType em_folder_view_get_type(void); GtkWidget *em_folder_view_new(void); -#define em_folder_view_activate(emfv, uic, state) ((EMFolderViewClass *)G_OBJECT_GET_CLASS(emfv))->activate((emfv), (uic), (state)) -#define em_folder_view_set_folder(emfv, folder, uri) ((EMFolderViewClass *)G_OBJECT_GET_CLASS(emfv))->set_folder((emfv), (folder), (uri)) -#define em_folder_view_set_folder_uri(emfv, uri) ((EMFolderViewClass *)G_OBJECT_GET_CLASS(emfv))->set_folder_uri((emfv), (uri)) -#define em_folder_view_set_message(emfv, uid) ((EMFolderViewClass *)G_OBJECT_GET_CLASS(emfv))->set_message((emfv), (uid)) +#define em_folder_view_activate(emfv, uic, state) EM_FOLDER_VIEW_GET_CLASS (emfv)->activate((emfv), (uic), (state)) +#define em_folder_view_set_folder(emfv, folder, uri) EM_FOLDER_VIEW_GET_CLASS (emfv)->set_folder((emfv), (folder), (uri)) +#define em_folder_view_set_folder_uri(emfv, uri) EM_FOLDER_VIEW_GET_CLASS (emfv)->set_folder_uri((emfv), (uri)) +#define em_folder_view_set_message(emfv, uid) EM_FOLDER_VIEW_GET_CLASS (emfv)->set_message((emfv), (uid)) struct _EMPopupTarget *em_folder_view_get_popup_target(EMFolderView *emfv); |