[mutter] color-profile: Add API to get file path
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] color-profile: Add API to get file path
- Date: Thu, 1 Sep 2022 17:08:35 +0000 (UTC)
commit 22064055be72d35cf2498ea8b3a0307152e38027
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Sat Dec 4 00:36:14 2021 +0100
color-profile: Add API to get file path
Each color profile has a corresponding ICC profile saved on the file
system. The getter returns a file path for that ICC profile file.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2165>
src/backends/meta-color-profile.c | 6 ++++++
src/backends/meta-color-profile.h | 2 ++
2 files changed, 8 insertions(+)
---
diff --git a/src/backends/meta-color-profile.c b/src/backends/meta-color-profile.c
index 43259a89c9..f759f26876 100644
--- a/src/backends/meta-color-profile.c
+++ b/src/backends/meta-color-profile.c
@@ -368,6 +368,12 @@ meta_color_profile_get_id (MetaColorProfile *color_profile)
return color_profile->cd_profile_id;
}
+const char *
+meta_color_profile_get_file_path (MetaColorProfile *color_profile)
+{
+ return cd_profile_get_filename (color_profile->cd_profile);
+}
+
const char *
meta_color_profile_get_brightness_profile (MetaColorProfile *color_profile)
{
diff --git a/src/backends/meta-color-profile.h b/src/backends/meta-color-profile.h
index a38b979f80..72c894aabf 100644
--- a/src/backends/meta-color-profile.h
+++ b/src/backends/meta-color-profile.h
@@ -56,6 +56,8 @@ gboolean meta_color_profile_is_ready (MetaColorProfile *color_profile);
META_EXPORT_TEST
const char * meta_color_profile_get_id (MetaColorProfile *color_profile);
+const char * meta_color_profile_get_file_path (MetaColorProfile *color_profile);
+
const char * meta_color_profile_get_brightness_profile (MetaColorProfile *color_profile);
#endif /* META_COLOR_PROFILE_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]