git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: ttk error when starting git gui

From
JHJessie Hernandez <git@jessiehernandez.com>
Date
Mar 31, 2017, 07:45 UTC
Message-ID
<ff7628d7c69ecd3d212b29fec33f6ba1.squirrel@mail.jessiehernandez.com>
In-Reply-To
<20170331103330.5d7c414b6a0273cefb8508f2@domain007.com>
Show 36 quoted lines
> On Fri, 31 Mar 2017 08:44:27 +0200
> "Jessie Hernandez" <git@jessiehernandez.com> wrote:
>
> [...]
>> I also got this problem when I wanted to build and run git 2.10.x.
>> I have added the following change to git-gui/git-gui.sh
>>
>> diff --git a/git-gui/git-gui.sh b/git-gui/git-gui.sh
>> index 5bc21b878..5ce59ef94 100755
>> --- a/git-gui/git-gui.sh
>> +++ b/git-gui/git-gui.sh
>> @@ -894,7 +894,7 @@ set default_config(gui.fontui) [font configure
>> font_ui] set default_config(gui.fontdiff) [font configure font_diff]
>>  # TODO: this option should be added to the git-config documentation
>>  set default_config(gui.maxfilesdisplayed) 5000
>> -set default_config(gui.usettk) 1
>> +set default_config(gui.usettk) 0
>>  set default_config(gui.warndetachedcommit) 1
>>  set default_config(gui.tabsize) 8
>>  set font_descs {
>>
>>
>> If you guys want I can submit it as a patch.
>> But i assume that 'fixing' this by disabling the feature is not really
>> what we want.
>
> It's possible to have ttk with 8.5 as well (say, here on Debian 8.5
> ships with ttk enabled).
>
> A proper patch would be
>
> -set default_config(gui.usettk) 1
> +set default_config(gui.usettk) [namespace exists ::ttk]
>
> Could you please test it on your system?
>

Yeah that seems to work. Thanks for this.

I have tried it with git 2.12.2
Jessie Hernandez
Previous: Konstantin KhomoutovNext: Jessie Hernandez
Message 7 of 12 in “ttk error when starting git gui”
  1. David ShraderMar 30, 2017
  2. Peter van der DoesMar 30, 2017
  3. Dennis KaarsemakerMar 30, 2017
  4. David ShraderMar 30, 2017
  5. Jessie HernandezMar 31, 2017
  6. Konstantin KhomoutovMar 31, 2017
  7. Jessie HernandezMar 31, 2017
  8. Jessie HernandezMar 31, 2017
  9. Konstantin KhomoutovMar 31, 2017
  10. Jessie HernandezMar 31, 2017
  11. Konstantin KhomoutovMar 31, 2017
  12. Konstantin KhomoutovMar 31, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.