[gedit] document: correctly bind properties



commit 4d08fb81de98873764497ab0a196d5e4dc1acc25
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Apr 21 15:10:01 2013 +0200

    document: correctly bind properties

 gedit/gedit-document.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index fa24ad4..6855a89 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -981,17 +981,20 @@ gedit_document_init (GeditDocument *doc)
        g_settings_bind (priv->editor_settings,
                         GEDIT_SETTINGS_MAX_UNDO_ACTIONS,
                         doc,
-                        "max-undo-levels");
+                        "max-undo-levels",
+                        G_SETTINGS_BIND_GET);
 
        g_settings_bind (priv->editor_settings,
                         GEDIT_SETTINGS_BRACKET_MATCHING,
                         doc,
-                        "bracket-matching");
+                        "highlight-matching-brackets",
+                        G_SETTINGS_BIND_GET);
 
        g_settings_bind (priv->editor_settings,
                         GEDIT_SETTINGS_SEARCH_HIGHLIGHTING,
                         doc,
-                        "enable-search-highlighting");
+                        "enable-search-highlighting",
+                        G_SETTINGS_BIND_GET);
 
        style_scheme = get_default_style_scheme (priv->editor_settings);
        if (style_scheme != NULL)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]