1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

calls-application: Unconditionally use AdwStyleManager

> In libadwaita color schemes will be the only way to request dark
appearance.

https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/migrating-libhandy-1-4-to-libadwaita.html#use-hdystylemanager-instead-of-gtksettingsgtk-application-prefer-dark-theme

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
This commit is contained in:
Anton Lazarev 2023-12-13 16:24:38 -08:00
parent 2b972ba035
commit 674906f788

View file

@ -474,19 +474,15 @@ startup (GApplication *application)
{
g_autoptr (GtkCssProvider) provider = NULL;
g_autoptr (GError) error = NULL;
#if ADW_CHECK_VERSION (1, 5, 0)
AdwStyleManager *style_manager;
#endif
G_APPLICATION_CLASS (calls_application_parent_class)->startup (application);
adw_init ();
#if ADW_CHECK_VERSION (1, 5, 0)
style_manager = adw_style_manager_get_default ();
adw_style_manager_set_color_scheme (style_manager, ADW_COLOR_SCHEME_PREFER_LIGHT);
#endif
if (!call_audio_init (&error))
g_warning ("Failed to init libcallaudio: %s", error->message);