[gedit/wip/libgedit/gedit-document: 8/8] GeditDocument: add the NO_SENSITIVITY flag for GSettings bindings
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/libgedit/gedit-document: 8/8] GeditDocument: add the NO_SENSITIVITY flag for GSettings bindings
- Date: Sat, 2 May 2015 19:09:25 +0000 (UTC)
commit 6f1a21cfa581d7691a8864d55cd98a2ae8b41142
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Apr 29 17:22:56 2015 +0200
GeditDocument: add the NO_SENSITIVITY flag for GSettings bindings
GtkSourceBuffer and GtkSourceSearchContext don't have a "sensitive"
property, so it's better to set the flag.
gedit/gedit-document.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index 0e20f38..54629f2 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -828,19 +828,19 @@ gedit_document_init (GeditDocument *doc)
GEDIT_SETTINGS_MAX_UNDO_ACTIONS,
doc,
"max-undo-levels",
- G_SETTINGS_BIND_GET);
+ G_SETTINGS_BIND_GET | G_SETTINGS_BIND_NO_SENSITIVITY);
g_settings_bind (priv->editor_settings,
GEDIT_SETTINGS_SYNTAX_HIGHLIGHTING,
doc,
"highlight-syntax",
- G_SETTINGS_BIND_GET);
+ G_SETTINGS_BIND_GET | G_SETTINGS_BIND_NO_SENSITIVITY);
g_settings_bind (priv->editor_settings,
GEDIT_SETTINGS_BRACKET_MATCHING,
doc,
"highlight-matching-brackets",
- G_SETTINGS_BIND_GET);
+ G_SETTINGS_BIND_GET | G_SETTINGS_BIND_NO_SENSITIVITY);
style_scheme = get_default_style_scheme (priv->editor_settings);
if (style_scheme != NULL)
@@ -1997,7 +1997,7 @@ gedit_document_set_search_context (GeditDocument *doc,
g_settings_bind (priv->editor_settings,
GEDIT_SETTINGS_SEARCH_HIGHLIGHTING,
search_context, "highlight",
- G_SETTINGS_BIND_GET);
+ G_SETTINGS_BIND_GET | G_SETTINGS_BIND_NO_SENSITIVITY);
g_signal_connect_object (search_context,
"notify::settings",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]