[libadwaita/wip/exalm/inspector: 1/7] settings: Rename has_color_schemes() to get_system_supports_color_schemes()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/inspector: 1/7] settings: Rename has_color_schemes() to get_system_supports_color_schemes()
- Date: Sun, 26 Sep 2021 21:58:25 +0000 (UTC)
commit bffad8afc67ad24ca3409d812a159a2d6864f346
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Sep 27 02:48:25 2021 +0500
settings: Rename has_color_schemes() to get_system_supports_color_schemes()
Mach AdwStyleManager.
src/adw-settings-private.h | 3 ++-
src/adw-settings.c | 2 +-
src/adw-style-manager.c | 2 +-
3 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/adw-settings-private.h b/src/adw-settings-private.h
index 7533c93e..892995f2 100644
--- a/src/adw-settings-private.h
+++ b/src/adw-settings-private.h
@@ -29,7 +29,8 @@ G_DECLARE_FINAL_TYPE (AdwSettings, adw_settings, ADW, SETTINGS, GObject)
AdwSettings *adw_settings_get_default (void);
-gboolean adw_settings_has_color_scheme (AdwSettings *self);
+gboolean adw_settings_get_system_supports_color_schemes (AdwSettings *self);
+
AdwSystemColorScheme adw_settings_get_color_scheme (AdwSettings *self);
gboolean adw_settings_get_high_contrast (AdwSettings *self);
diff --git a/src/adw-settings.c b/src/adw-settings.c
index 4b2b9c3f..dd101042 100644
--- a/src/adw-settings.c
+++ b/src/adw-settings.c
@@ -463,7 +463,7 @@ adw_settings_get_default (void)
}
gboolean
-adw_settings_has_color_scheme (AdwSettings *self)
+adw_settings_get_system_supports_color_schemes (AdwSettings *self)
{
g_return_val_if_fail (ADW_IS_SETTINGS (self), FALSE);
diff --git a/src/adw-style-manager.c b/src/adw-style-manager.c
index 21367370..7a0057fc 100644
--- a/src/adw-style-manager.c
+++ b/src/adw-style-manager.c
@@ -650,7 +650,7 @@ adw_style_manager_get_system_supports_color_schemes (AdwStyleManager *self)
{
g_return_val_if_fail (ADW_IS_STYLE_MANAGER (self), FALSE);
- return adw_settings_has_color_scheme (self->settings);
+ return adw_settings_get_system_supports_color_schemes (self->settings);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]