Package: meld
Version: 3.12.1-2
Severity: normal
Tags: patch

Dear Maintainer,

The editor windows do not update for changes to the tab-width setting in
preferences->editor->tab-width.

I was able to find a fix upstream in commit:
089b74f6d1eb86fa8f27102bf3cf9f76d2e5c809 sourceview: Fix GtkSourceView tab
width property binding (bgo#738001)

I'm not sure the proper way to generate patches as I couldn't find adequate
documentation (or help in irc), but I generated a patch file from that git
commit.

After manually applying the patch, tab-width works as expected.




-- System Information:
Debian Release: 8.0
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.18.5 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages meld depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.22.0-1
ii  gir1.2-gtksource-3.0                         3.14.1-1
ii  libcanberra-gtk3-module                      0.30-2.1
ii  libgtk-3-0                                   3.14.5-1
ii  libgtksourceview-3.0-1                       3.14.1-1
ii  patch                                        2.7.1-6
ii  python                                       2.7.8-4
ii  python-gi                                    3.14.0-1
ii  python-gi-cairo                              3.14.0-1
pn  python:any                                   <none>

Versions of packages meld recommends:
ii  yelp  3.14.1-1

meld suggests no packages.

-- no debconf information
>From 089b74f6d1eb86fa8f27102bf3cf9f76d2e5c809 Mon Sep 17 00:00:00 2001
From: Kai Willadsen <kai.willad...@gmail.com>
Date: Tue, 28 Oct 2014 06:42:02 +1000
Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-)

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'),
-- 
2.1.4

Reply via email to