diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-05 00:03:24 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-05 01:10:02 +0800 |
commit | 5794c63f4ff48ad4abc677954fcd5e9bb578aacc (patch) | |
tree | 8fd8dcd8e6060085efa099bedf8ca0b1405f3cdd /modules/settings/e-settings-mail-browser.h | |
parent | 046816123764f86f1b258195292abcdb7951fca3 (diff) | |
download | gsoc2013-evolution-5794c63f4ff48ad4abc677954fcd5e9bb578aacc.tar gsoc2013-evolution-5794c63f4ff48ad4abc677954fcd5e9bb578aacc.tar.gz gsoc2013-evolution-5794c63f4ff48ad4abc677954fcd5e9bb578aacc.tar.bz2 gsoc2013-evolution-5794c63f4ff48ad4abc677954fcd5e9bb578aacc.tar.lz gsoc2013-evolution-5794c63f4ff48ad4abc677954fcd5e9bb578aacc.tar.xz gsoc2013-evolution-5794c63f4ff48ad4abc677954fcd5e9bb578aacc.tar.zst gsoc2013-evolution-5794c63f4ff48ad4abc677954fcd5e9bb578aacc.zip |
EMailBrowser: Add "close-on-reply-policy" property.
Mainly to avoid accessing GSettings directly from EMailBrowser.
Also add a "browser-close-on-reply-policy" GSettings key that replaces
"prompt-on-reply-close-browser", the difference being the new key uses
an enum definition compatible with EAutomaticActionPolicy instead of a
free-form string value.
And finally add an ESettingsMailBrowser class to glue things together.
Diffstat (limited to 'modules/settings/e-settings-mail-browser.h')
-rw-r--r-- | modules/settings/e-settings-mail-browser.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/modules/settings/e-settings-mail-browser.h b/modules/settings/e-settings-mail-browser.h new file mode 100644 index 0000000000..edd5047668 --- /dev/null +++ b/modules/settings/e-settings-mail-browser.h @@ -0,0 +1,66 @@ +/* + * e-settings-mail-browser.h + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with the program; if not, see <http://www.gnu.org/licenses/> + * + */ + +#ifndef E_SETTINGS_MAIL_BROWSER_H +#define E_SETTINGS_MAIL_BROWSER_H + +#include <libebackend/libebackend.h> + +/* Standard GObject macros */ +#define E_TYPE_SETTINGS_MAIL_BROWSER \ + (e_settings_mail_browser_get_type ()) +#define E_SETTINGS_MAIL_BROWSER(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), E_TYPE_SETTINGS_MAIL_BROWSER, ESettingsMailBrowser)) +#define E_SETTINGS_MAIL_BROWSER_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_CAST \ + ((cls), E_TYPE_SETTINGS_MAIL_BROWSER, ESettingsMailBrowserClass)) +#define E_IS_SETTINGS_MAIL_BROWSER(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), E_TYPE_SETTINGS_MAIL_BROWSER)) +#define E_IS_SETTINGS_MAIL_BROWSER_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_TYPE \ + ((cls), E_TYPE_SETTINGS_MAIL_BROWSER)) +#define E_SETTINGS_MAIL_BROWSER_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), E_TYPE_SETTINGS_MAIL_BROWSER, ESettingsMailBrowserClass)) + +G_BEGIN_DECLS + +typedef struct _ESettingsMailBrowser ESettingsMailBrowser; +typedef struct _ESettingsMailBrowserClass ESettingsMailBrowserClass; +typedef struct _ESettingsMailBrowserPrivate ESettingsMailBrowserPrivate; + +struct _ESettingsMailBrowser { + EExtension parent; + ESettingsMailBrowserPrivate *priv; +}; + +struct _ESettingsMailBrowserClass { + EExtensionClass parent_class; +}; + +GType e_settings_mail_browser_get_type + (void) G_GNUC_CONST; +void e_settings_mail_browser_type_register + (GTypeModule *type_module); + +G_END_DECLS + +#endif /* E_SETTINGS_MAIL_BROWSER_H */ + |