[meld/meld-3-12] sourceview: Fix GtkSourceView tab width property binding (bgo#738001)



commit 6d27183fd85b052bf4f98e13d186b02abd7b6af2
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Tue Oct 28 06:42:02 2014 +1000

    sourceview: Fix GtkSourceView tab width property binding (bgo#738001)
    
    The tab-width and indent-width properties interact weirdly if they're
    different. This was a breakage in the GtkSourceView 3 migration, so
    just switch the binding back over here.
    
    This might cause some pain in the future if we want to support setting
    both for some reason, but I don't actually know why we'd want to do
    that.

 meld/sourceview.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/sourceview.py b/meld/sourceview.py
index 48aa9a2..a0c9e4f 100644
--- a/meld/sourceview.py
+++ b/meld/sourceview.py
@@ -49,7 +49,7 @@ class MeldSourceView(GtkSource.View):
     __gtype_name__ = "MeldSourceView"
 
     __gsettings_bindings__ = (
-        ('indent-width', 'indent-width'),
+        ('indent-width', 'tab-width'),
         ('insert-spaces-instead-of-tabs', 'insert-spaces-instead-of-tabs'),
         ('show-line-numbers', 'show-line-numbers'),
         ('draw-spaces', 'draw-spaces'),


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