[gnome-settings-daemon] color: Be less chatty when creating duplicate profiles
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] color: Be less chatty when creating duplicate profiles
- Date: Fri, 9 Sep 2011 07:52:53 +0000 (UTC)
commit f4483cf3d281f9ddc0d108bd8f615bbc8ba02ff0
Author: Richard Hughes <richard hughsie com>
Date: Fri Sep 9 08:50:58 2011 +0100
color: Be less chatty when creating duplicate profiles
We don't need to warn when the user has duplicated system profile in the home
directory, as the daemon just does the right thing.
plugins/color/gsd-color-manager.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index 6b7a073..343c036 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -1784,7 +1784,9 @@ gcm_session_create_profile_cb (GObject *object,
profile = cd_client_create_profile_finish (client, res, &error);
if (profile == NULL) {
- g_warning ("%s", error->message);
+ if (error->domain != CD_CLIENT_ERROR ||
+ error->code != CD_CLIENT_ERROR_ALREADY_EXISTS)
+ g_warning ("%s", error->message);
g_error_free (error);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]