city41 / mate-i3-applet

i3 workspace applet for MATE (unsupported, see top of README)
BSD 3-Clause "New" or "Revised" License
62 stars 14 forks source link

Mate version 1.16(.2) using GTK 3.0 #17

Open antoniotrkdz opened 5 years ago

antoniotrkdz commented 5 years ago

I am using MATE 1.16.2 and it uses GTK 3.0. I made the following change to mate_version.py

from

if version and version.major < 2 and version.minor < 18:
        gi.require_version("Gtk", "2.0")

to

if version and version.major < 2 and version.minor < 16:
        gi.require_version("Gtk", "2.0")

And it works now. It could be that there are patches of mate 1.16 using GTK 2.0 or it could depend on how mate is installed on the system, but the method of choosing which GTK version to load based only on the mate-about output looks not accurate. On debian based system the output of the apt package dependency could be more useful. something like:

$ apt-get remove -s libgtk-3-0 | grep Remv | cut -d ' ' -f 2,3 | grep mate

Please note it is a simulation -s.