[gnome-photos/wip/rishi/collection: 4/14] source: Assert that an online source's ID & name weren't separately set
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/collection: 4/14] source: Assert that an online source's ID & name weren't separately set
- Date: Thu, 11 Jan 2018 18:29:48 +0000 (UTC)
commit 2960944b0bd2a7b157a23a6c158e69e7048966c5
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jan 11 19:05:13 2018 +0100
source: Assert that an online source's ID & name weren't separately set
src/photos-source.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/photos-source.c b/src/photos-source.c
index 8b16afd6..4878b9d9 100644
--- a/src/photos-source.c
+++ b/src/photos-source.c
@@ -208,6 +208,9 @@ photos_source_set_property (GObject *object, guint prop_id, const GValue *value,
if (self->object == NULL)
break;
+ g_return_if_fail (self->id == NULL);
+ g_return_if_fail (self->name == NULL);
+
account = goa_object_peek_account (self->object);
self->id = g_strdup_printf ("gd:goa-account:%s", goa_account_get_id (account));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]