[evolution] The "headers-collapsed" change not propagated into the settings
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] The "headers-collapsed" change not propagated into the settings
- Date: Thu, 11 Aug 2016 16:43:52 +0000 (UTC)
commit dd345d00bb54cc17f100f8430cc8d62d20c16537
Author: Milan Crha <mcrha redhat com>
Date: Thu Aug 11 12:36:02 2016 +0200
The "headers-collapsed" change not propagated into the settings
web-extensions/e-dom-utils.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/web-extensions/e-dom-utils.c b/web-extensions/e-dom-utils.c
index f671f77..e64be02 100644
--- a/web-extensions/e-dom-utils.c
+++ b/web-extensions/e-dom-utils.c
@@ -570,6 +570,7 @@ toggle_headers_visibility (WebKitDOMElement *button,
{
WebKitDOMElement *short_headers = NULL, *full_headers = NULL;
WebKitDOMCSSStyleDeclaration *css_short = NULL, *css_full = NULL;
+ GSettings *settings;
gboolean expanded;
const gchar *path;
gchar *css_value;
@@ -606,6 +607,11 @@ toggle_headers_visibility (WebKitDOMElement *button,
webkit_dom_html_image_element_set_src (
WEBKIT_DOM_HTML_IMAGE_ELEMENT (button), path);
+
+ settings = e_util_ref_settings ("org.gnome.evolution.mail");
+ g_settings_set_boolean (settings, "headers-collapsed", expanded);
+ g_clear_object (&settings);
+
clean:
g_clear_object (&short_headers);
g_clear_object (&css_short);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]