[gnome-control-center/gnome-3-2] color: Do not allow the user to choose profiles owned by other users



commit 09181fc2ab8334dcfef88ced20dc295e7a283266
Author: Richard Hughes <richard hughsie com>
Date:   Wed Sep 14 11:10:37 2011 +0100

    color: Do not allow the user to choose profiles owned by other users
    
    If there are multiple users in a system, don't show profiles we can't access.

 panels/color/cc-color-panel.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index f47c6dc..3301838 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -422,6 +422,12 @@ gcm_prefs_add_profiles_suitable_for_devices (CcColorPanel *prefs,
       if (!ret)
         continue;
 
+#if CD_CHECK_VERSION(0,1,13)
+      /* ignore profiles from other user accounts */
+      if (!cd_profile_has_access (profile_tmp))
+        continue;
+#endif
+
       /* add */
       gcm_prefs_combobox_add_profile (widget,
                                       profile_tmp,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]