How to silence adw_init warning

Hi, when calling adw_init:

int main() {
   return 0;

I get the following warning:

(test_main:499854): Adwaita-WARNING **: 00:20:22.105: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.

I am aware of what this means, my question is, how do I prevent this warning from being printed? It also happens when using Adw.Application, even if I have never interacted with Gtk.Settings.

Do you maybe have something in ~/.config/gtk-4.0/settings.ini?

The only way to get rid of this warning is to stop using GtkSettings:gtk-application-prefer-dark-theme, note that this can be set in gtk settings in .config among other ways outside of the app.

yes thank you, removing the entry out of the settings.ini made the warning go away

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.