[gnome-panel] status-notifier: avoid useless warnings about missing properties
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] status-notifier: avoid useless warnings about missing properties
- Date: Tue, 20 Dec 2016 16:05:20 +0000 (UTC)
commit dad074279c451c296869725f6cbda2ce6c98af24
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Dec 20 18:02:00 2016 +0200
status-notifier: avoid useless warnings about missing properties
modules/external/status-notifier/sn-item-v0.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/modules/external/status-notifier/sn-item-v0.c b/modules/external/status-notifier/sn-item-v0.c
index dbcb546..ef86a01 100644
--- a/modules/external/status-notifier/sn-item-v0.c
+++ b/modules/external/status-notifier/sn-item-v0.c
@@ -489,6 +489,12 @@ get_property (GObject *source_object,
return NULL;
}
+ if (g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS))
+ {
+ g_error_free (error);
+ return NULL;
+ }
+
if (error)
{
g_warning ("%s", error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]