[libsocialweb] photobucket: implemented Collections.GetCreatableTypes()
- From: Eitan Isaacson <eitani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsocialweb] photobucket: implemented Collections.GetCreatableTypes()
- Date: Tue, 15 Mar 2011 23:11:10 +0000 (UTC)
commit a1b6599f58eb3308d100ab0a972f51b4fc33dae0
Author: Eitan Isaacson <eitan isaacson collabora co uk>
Date: Sat Mar 5 18:22:43 2011 -0800
photobucket: implemented Collections.GetCreatableTypes()
services/photobucket/photobucket.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/services/photobucket/photobucket.c b/services/photobucket/photobucket.c
index b55c5a1..6ac45f4 100644
--- a/services/photobucket/photobucket.c
+++ b/services/photobucket/photobucket.c
@@ -758,6 +758,22 @@ _photobucket_collections_get_details (SwCollectionsIface *self,
}
static void
+_photobucket_collections_get_creatable_types (SwCollectionsIface *self,
+ DBusGMethodInvocation *context)
+{
+ GArray *creatable_types = g_array_sized_new (TRUE, TRUE,
+ sizeof (guint), 1);
+ guint v = PHOTO | VIDEO | COLLECTION;
+
+ 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)
{
@@ -771,6 +787,8 @@ collections_iface_init (gpointer g_iface,
sw_collections_iface_implement_get_details (klass,
_photobucket_collections_get_details);
+ sw_collections_iface_implement_get_creatable_types (klass,
+ _photobucket_collections_get_creatable_types);
}
/* Photo Upload Interface */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]