Re: disable "tabs" in meld window
- From: Kai <kai willadsen gmail com>
- To: Fourhundred Thecat <400thecat gmx ch>
- Cc: meld-list <meld-list gnome org>
- Subject: Re: disable "tabs" in meld window
- Date: Sun, 6 Sep 2020 06:59:07 +1000
Replace
self.notebook.child_set_property(page, 'tab-expand', True)\
with
self.notebook.child_set_property(page.widget, 'tab-expand', True)
cheers,
Kai
> 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,
_______________________________________________
meld-list mailing list
meld-list gnome org
https://mail.gnome.org/mailman/listinfo/meld-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]