[GNC] Changing colors and layout on 4.8

Geert Janssens geert.gnucash at kobaltwit.be
Fri Dec 10 04:30:21 EST 2021


Op vrijdag 10 december 2021 06:00:44 CET schreef Adrien Monteleone:
> The wiki has a 'file locations' map for each major OS. Be certain if you
> are on Windows that you are following the map for the current version.
> They changed at least from 2.x to 3.x, and may have been changed again.
> (I don't use Windows, so can't advise, but it should be obvious in the Wiki)
> 
> As for non-focused issues, I can at least report that this does not
> happen to me on MacOS. Something else might be amiss.
> 
> If I recall, each OS is on a different GTK+ version, so some CSS
> directives will behave differently. (as well as the default GTK itself)
> The key to solving this would be to use the GTK Inspector as the Wiki
> describes, but I don't think that is available on Windows. You'd have to
> fire up a virtual machine, install GnuCash in it, then inspect the
> various tabs/windows of the app to find out what is going on. And then,
> if the problem does not re-appear in Linux, then...
> 
> Another option "might" be to try WSL, but I don't know if the Inspector
> will then work on a Windows app, or if you have to install GnuCash via
> WSL too. (and then you're right back at the same problem with a VM and
> different GTK versions)
> 
WSL is a linux VM running under Windows. As such it has the same limitations with regards 
to GnuCash and the Gtk Inspector. That is Gtk Inspector running under WSL can't 'inspect' 
GnuCash running natively on Windows.

But that's not important as the inspector is part of Gtk3 and available anywhere Gtk3 is used, 
including Windows. The trick is to know how to enable it. The general idea is that if 
environment variable "GTK_DEBUG" is set to "interactive" while gnucash is starting, the 
inspector will be started. How to set environment variables is platform dependent, but the 
mechanism works on all platforms (I have just tested Windows and linux).

For convenience I have just now added a snippet to our Gtk3 wiki [1] to illustrate how to set 
the variable using the "environment.local" file in path/to/etc/gnucash. Again this path/to/etc/
gnucash varies per platform, but its contents will be the same everywhere. And it's only one 
way to do it. Any way that sets the environment variable prior to gnucash startup will do the 
trick.

Regards,

Geert

[1] https://wiki.gnucash.org/wiki/GTK3#Using_the_GTK_Inspector[1]

--------
[1] https://wiki.gnucash.org/wiki/GTK3#Using_the_GTK_Inspector


More information about the gnucash-user mailing list