From 5794c63f4ff48ad4abc677954fcd5e9bb578aacc Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 4 Jun 2013 12:03:24 -0400 Subject: 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. --- mail/e-mail-browser.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mail/e-mail-browser.h') diff --git a/mail/e-mail-browser.h b/mail/e-mail-browser.h index fe7c6bfafd..dce6922be8 100644 --- a/mail/e-mail-browser.h +++ b/mail/e-mail-browser.h @@ -66,6 +66,12 @@ GtkWidget * e_mail_browser_new (EMailBackend *backend, const gchar *message_uid, EMailFormatterMode display_mode); void e_mail_browser_close (EMailBrowser *browser); +EAutomaticActionPolicy + e_mail_browser_get_close_on_reply_policy + (EMailBrowser *browser); +void e_mail_browser_set_close_on_reply_policy + (EMailBrowser *browser, + EAutomaticActionPolicy policy); EMailFormatterMode e_mail_browser_get_display_mode (EMailBrowser *browser); EFocusTracker * e_mail_browser_get_focus_tracker -- cgit