[gnome-color-manager] Ignore inaccessable profiles from other user accounts
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Ignore inaccessable profiles from other user accounts
- Date: Tue, 13 Sep 2011 11:46:07 +0000 (UTC)
commit b987ba2628d6c51c037605369c931f5c846900df
Author: Richard Hughes <richard hughsie com>
Date: Tue Sep 13 12:45:51 2011 +0100
Ignore inaccessable profiles from other user accounts
src/gcm-picker.c | 6 ++++++
src/gcm-viewer.c | 6 ++++++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-picker.c b/src/gcm-picker.c
index 100a7f7..c97b665 100644
--- a/src/gcm-picker.c
+++ b/src/gcm-picker.c
@@ -567,6 +567,12 @@ gcm_prefs_setup_space_combobox (GtkWidget *widget)
goto out;
}
+#if CD_CHECK_VERSION(0,1,13)
+ /* ignore profiles from other user accounts */
+ if (!cd_profile_has_access (profile))
+ continue;
+#endif
+
/* is a printer profile */
filename = cd_profile_get_filename (profile);
if (filename == NULL)
diff --git a/src/gcm-viewer.c b/src/gcm-viewer.c
index 02044f3..73527ab 100644
--- a/src/gcm-viewer.c
+++ b/src/gcm-viewer.c
@@ -248,6 +248,12 @@ gcm_viewer_update_profile_list (GcmViewerPrivate *viewer)
goto out;
}
+#if CD_CHECK_VERSION(0,1,13)
+ /* ignore profiles from other user accounts */
+ if (!cd_profile_has_access (profile))
+ continue;
+#endif
+
profile_kind = cd_profile_get_kind (profile);
icon_name = gcm_viewer_profile_kind_to_icon_name (profile_kind);
filename = cd_profile_get_filename (profile);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]