ges: Little fixes to timeline_object_g(s)et_supprted_formats
authorThibault Saunier <thibault.saunier@collabora.com>
Wed, 7 Dec 2011 23:17:55 +0000 (20:17 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Wed, 11 Jan 2012 14:56:16 +0000 (11:56 -0300)
bindings/python/ges.defs
ges/ges-timeline-object.c

index d397e37..e05e427 100644 (file)
   )
 )
 
-(define-method set_supported_formats
-  (of-object "GESTimelineObject")
-  (c-name "ges_timeline_object_set_supported_formats")
-  (return-type "none")
-  (parameters
-    '("GESTrackType" "supportedformats")
-  )
-)
-
 (define-method set_is_image
   (of-object "GESTimelineFileSource")
   (c-name "ges_timeline_filesource_set_is_image")
 )
 
 (define-method get_supported_formats
-  (of-object "GESTimelineObject")
-  (c-name "ges_timeline_object_get_supported_formats")
-  (return-type "GESTrackType")
-)
-
-(define-method get_supported_formats
   (of-object "GESTimelineFileSource")
   (c-name "ges_timeline_filesource_get_supported_formats")
   (return-type "GESTrackType")
   )
 )
 
+(define-method get_supported_formats
+  (of-object "GESTimelineObject")
+  (c-name "ges_timeline_object_get_supported_formats")
+  (return-type "GESTrackType")
+)
+
+(define-method set_supported_formats
+  (of-object "GESTimelineObject")
+  (c-name "ges_timeline_object_set_supported_formats")
+  (return-type "none")
+  (parameters
+    '("GESTrackType" "supportedformats")
+  )
+)
 
 (define-method objects_set_locked
   (of-object "GESTimelineObject")
index 91ecb98..d23451b 100644 (file)
@@ -1381,6 +1381,43 @@ ges_timeline_object_copy (GESTimelineObject * object, gboolean * deep)
 }
 
 /**
+ * ges_timeline_object_set_supported_formats:
+ * @object: the #GESTimelineObject to set supported formats on
+ * @supportedformats: the #GESTrackType defining formats supported by @object
+ *
+ * Sets the formats supported by the file.
+ *
+ * Since: 0.10.XX
+ */
+void
+ges_timeline_object_set_supported_formats (GESTimelineObject * object,
+    GESTrackType supportedformats)
+{
+  g_return_if_fail (GES_IS_TIMELINE_OBJECT (object));
+
+  object->priv->supportedformats = supportedformats;
+}
+
+/**
+ * ges_timeline_object_get_supported_formats:
+ * @object: the #GESTimelineObject
+ *
+ * Get the formats supported by @object.
+ *
+ * Returns: The formats supported by @object.
+ *
+ * Since: 0.10.XX
+ */
+GESTrackType
+ges_timeline_object_get_supported_formats (GESTimelineObject * object)
+{
+  g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object),
+      GES_TRACK_TYPE_UNKNOWN);
+
+  return object->priv->supportedformats;
+}
+
+/**
  * ges_timeline_object_objects_set_locked:
  * @object: the #GESTimelineObject
  * @locked: whether the #GESTrackObject contained in @object are locked to it.
@@ -1432,38 +1469,6 @@ update_height (GESTimelineObject * object)
   }
 }
 
-/**
- * ges_timeline_object_set_supported_formats:
- * @self: the #GESTimelineObject to set supported formats on
- * @supportedformats: the #GESTrackType defining formats supported by @self
- *
- * Sets the formats supported by the file.
- *
- * Since: 0.10.XX
- */
-void
-ges_timeline_object_set_supported_formats (GESTimelineObject * self,
-    GESTrackType supportedformats)
-{
-  self->priv->supportedformats = supportedformats;
-}
-
-/**
- * ges_timeline_object_get_supported_formats:
- * @self: the #GESTimelineObject
- *
- * Get the formats supported by @self.
- *
- * Returns: The formats supported by @self.
- *
- * Since: 0.10.XX
- */
-GESTrackType
-ges_timeline_object_get_supported_formats (GESTimelineObject * self)
-{
-  return self->priv->supportedformats;
-}
-
 /*
  * PROPERTY NOTIFICATIONS FROM TRACK OBJECTS
  */