)
)
-(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")
}
/**
+ * 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.
}
}
-/**
- * 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
*/