Re: disable "tabs" in meld window



> On 2020-09-04 00:52, Kai wrote:
On Tue, 1 Sep 2020 at 15:40, Fourhundred Thecat <400thecat gmx ch
<mailto:400thecat gmx ch>> wrote:

There's no way to do this in 3.20 without editing code, but this has
changed to be the default in the unstable 3.21.x. The commit that
changed this is
https://gitlab.gnome.org/GNOME/meld/-/commit/133aaccfcb32ed7c5778fbbd8f76bf609d09ba35,
which you could probably apply to 3.20.x, though I haven't tried.

Thank you Kai.

I have patched meld/meldwindow.py and meld/ui/notebook.py in 3.20 based
on this commit.

However, I get this error when I run meld:


Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/meld/meldapp.py", line 79, in
do_command_line
    tab = self.parse_args(command_line)
  File "/usr/lib/python3/dist-packages/meld/meldapp.py", line 365, in
parse_args
    focus=i == 0,
  File "/usr/lib/python3/dist-packages/meld/meldapp.py", line 159, in
open_files
    return window.open_paths(gfiles, **kwargs)
  File "/usr/lib/python3/dist-packages/meld/meldwindow.py", line 688,
in open_paths
    auto_merge=auto_merge)
  File "/usr/lib/python3/dist-packages/meld/meldwindow.py", line 637,
in append_diff
    gfiles, merge_output=merge_output, meta=meta)
  File "/usr/lib/python3/dist-packages/meld/meldwindow.py", line 598,
in append_filediff
    self._append_page(doc, "text-x-generic")
  File "/usr/lib/python3/dist-packages/meld/meldwindow.py", line 547,
in _append_page
    self.notebook.child_set_property(page, 'tab-expand', True)
TypeError: argument child: Expected Gtk.Widget, but got
meld.filediff.FileDiff


could somebody more experienced with python programing suggest how to
properly apply this patch in meld 3.20 ?

thank you,


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