[libsocialweb] smugmug: implemented Collections.GetCreatableTypes()
- From: Eitan Isaacson <eitani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsocialweb] smugmug: implemented Collections.GetCreatableTypes()
- Date: Tue, 15 Mar 2011 23:11:20 +0000 (UTC)
commit 027b7738473b0be356e8fccdc121abd36b2ca67e
Author: Eitan Isaacson <eitan isaacson collabora co uk>
Date: Tue Mar 15 16:07:04 2011 -0700
smugmug: implemented Collections.GetCreatableTypes()
services/smugmug/smugmug.c | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/services/smugmug/smugmug.c b/services/smugmug/smugmug.c
index d80b9c2..6649ff1 100644
--- a/services/smugmug/smugmug.c
+++ b/services/smugmug/smugmug.c
@@ -738,6 +738,22 @@ _smugmug_collections_get_details (SwCollectionsIface *self,
}
static void
+_smugmug_collections_get_creatable_types (SwCollectionsIface *self,
+ DBusGMethodInvocation *context)
+{
+ GArray *creatable_types = g_array_sized_new (TRUE, TRUE,
+ sizeof (guint), 1);
+ guint v = PHOTO | VIDEO;
+
+ g_array_append_val (creatable_types, v);
+
+ sw_collections_iface_return_from_get_creatable_types (context,
+ creatable_types);
+
+ g_array_free (creatable_types, TRUE);
+}
+
+static void
collections_iface_init (gpointer g_iface,
gpointer iface_data)
{
@@ -751,6 +767,9 @@ collections_iface_init (gpointer g_iface,
sw_collections_iface_implement_get_details (klass,
_smugmug_collections_get_details);
+
+ sw_collections_iface_implement_get_creatable_types (klass,
+ _smugmug_collections_get_creatable_types);
}
/* Photo Upload Interface */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]