ArcticaProject / arctica-greeter

Arctica Greeter: Greeter Frontend for LightDM
GNU General Public License v3.0
27 stars 10 forks source link

GTK+ 3/GTK 4 switching support. #61

Closed Ionic closed 10 months ago

Ionic commented 10 months ago

This PR adds a --disable-gtk4 configure flag.

Previously, the HAVE_GTK_4_0 macro has been enabled whenever GTK 4 development files were found on the system.

We keep that behavior, and actually modify the build system to actually build and link against GTK 4, but also add a new configure flag --disable-gtk4 that disables GTK 4 usage.

The logic goes like that:

Note that making GTK 4 the default might not be the best option currently, because the greeter does not build against GTK 4, but is paving the way for the future.

For now, users will have to use --disable-gtk4, up until all code has been fully ported to support GTK 4.

Fixes: https://github.com/ArcticaProject/arctica-greeter/issues/56