[gnome-flashback] polkit: remove warning about missing user icon
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] polkit: remove warning about missing user icon
- Date: Wed, 21 Jun 2017 12:05:06 +0000 (UTC)
commit 172b4f291a860081ecaeaa10e9eea524b63366f5
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Jun 21 14:48:17 2017 +0300
polkit: remove warning about missing user icon
.../libpolkit/flashback-polkit-dialog.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gnome-flashback/libpolkit/flashback-polkit-dialog.c
b/gnome-flashback/libpolkit/flashback-polkit-dialog.c
index 56ce5d8..5b430f6 100644
--- a/gnome-flashback/libpolkit/flashback-polkit-dialog.c
+++ b/gnome-flashback/libpolkit/flashback-polkit-dialog.c
@@ -350,7 +350,10 @@ get_user_icon (char *username)
pixbuf = gdk_pixbuf_new_from_file_at_size (icon_filename, 16, 16, &error);
if (pixbuf == NULL)
{
- g_warning ("Couldn't open user icon: %s", error->message);
+ if (!g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
+ g_warning ("Couldn't open user icon: %s", error->message);
+ else
+ g_debug ("Couldn't open user icon: %s", error->message);
g_error_free (error);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]