From 4997c455f49a6cc14142b0e4687ccf4d4b89ec20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 26 Dec 2015 09:43:11 +0100 Subject: [PATCH] ges: Fix various g-i warnings --- ges/ges-asset.c | 2 +- ges/ges-extractable.c | 2 +- ges/ges-project.c | 2 +- ges/ges-project.h | 2 +- ges/ges-timeline-element.c | 6 +++--- ges/ges-timeline.c | 2 +- ges/ges-track-element.c | 7 +++---- 7 files changed, 11 insertions(+), 12 deletions(-) diff --git a/ges/ges-asset.c b/ges/ges-asset.c index 3d24617..fb1c596 100644 --- a/ges/ges-asset.c +++ b/ges/ges-asset.c @@ -756,7 +756,7 @@ ges_asset_set_proxy (GESAsset * asset, GESAsset * proxy) * ges_asset_list_proxies: * @asset: The #GESAsset to get proxies from * - * Returns: The list of proxies @asset has. Note that the default asset to be + * Returns: (element-type GESAsset) (transfer none): The list of proxies @asset has. Note that the default asset to be * used is always the first in that list. */ GList * diff --git a/ges/ges-extractable.c b/ges/ges-extractable.c index 788376c..dad10a0 100644 --- a/ges/ges-extractable.c +++ b/ges/ges-extractable.c @@ -136,7 +136,7 @@ ges_extractable_set_asset (GESExtractable * self, GESAsset * asset) * ges_extractable_get_id: * @self: The #GESExtractable * - * Returns: (transfer full) The #id of the associated #GESAsset, free with #g_free + * Returns: (transfer full): The #id of the associated #GESAsset, free with #g_free */ gchar * ges_extractable_get_id (GESExtractable * self) diff --git a/ges/ges-project.c b/ges/ges-project.c index 15025f6..0a6f49f 100644 --- a/ges/ges-project.c +++ b/ges/ges-project.c @@ -732,7 +732,7 @@ ges_project_create_asset (GESProject * project, const gchar * id, * "asset-added" signal to get the asset when it finally gets added to * @project * - * Returns: The newly created #GESAsset + * Returns: (transfer full): The newly created #GESAsset */ GESAsset * ges_project_create_asset_sync (GESProject * project, const gchar * id, diff --git a/ges/ges-project.h b/ges/ges-project.h index acd0386..e23c991 100644 --- a/ges/ges-project.h +++ b/ges/ges-project.h @@ -89,7 +89,7 @@ gboolean ges_project_save (GESProject * project, gboolean ges_project_load (GESProject * project, GESTimeline * timeline, GError **error); -GESProject * ges_project_new (const gchar *id); +GESProject * ges_project_new (const gchar *uri); gchar * ges_project_get_uri (GESProject *project); GESAsset * ges_project_get_asset (GESProject * project, const gchar *id, diff --git a/ges/ges-timeline-element.c b/ges/ges-timeline-element.c index 721243a..271540d 100644 --- a/ges/ges-timeline-element.c +++ b/ges/ges-timeline-element.c @@ -1263,7 +1263,7 @@ ges_timeline_element_add_child_property (GESTimelineElement * self, } /** - * ges_track_element_get_child_property_by_pspec: + * ges_timeline_element_get_child_property_by_pspec: * @self: a #GESTrackElement * @pspec: The #GParamSpec that specifies the property you want to get * @value: (out): return location for the value @@ -1366,7 +1366,7 @@ not_found: /** * ges_timeline_element_get_child_property: -* @object: The origin #GESTimelineElement +* @self: The origin #GESTimelineElement * @property_name: The name of the property * @value: (out): return location for the property value, it will * be initialized if it is initialized with 0 @@ -1421,7 +1421,7 @@ not_found: * proper GParamSpec in case various GstElement-s contain the same property * name. If you don't do so, you will get the first element found, having * this property and the and the corresponding GParamSpec. - * @element: (out) (allow-none) (transfer full): pointer to a #GstElement that + * @child: (out) (allow-none) (transfer full): pointer to a #GstElement that * takes the real object to set property on * @pspec: (out) (allow-none) (transfer full): pointer to take the #GParamSpec * describing the property diff --git a/ges/ges-timeline.c b/ges/ges-timeline.c index 8eabdbd..1c805b4 100644 --- a/ges/ges-timeline.c +++ b/ges/ges-timeline.c @@ -3579,7 +3579,7 @@ ges_timeline_is_empty (GESTimeline * timeline) * * Retrieve the layer with @priority as a priority * - * Returns: A #GESLayer or %NULL if no layer with @priority was found + * Returns: (transfer full): A #GESLayer or %NULL if no layer with @priority was found * * Since 1.6 */ diff --git a/ges/ges-track-element.c b/ges/ges-track-element.c index 7dd2e2d..16f5f07 100644 --- a/ges/ges-track-element.c +++ b/ges/ges-track-element.c @@ -264,7 +264,7 @@ ges_track_element_class_init (GESTrackElementClass * klass) G_TYPE_NONE, 1, GST_TYPE_CONTROL_BINDING); /** - * GESTrackElement::control-binding-added: + * GESTrackElement::control-binding-removed: * @track_element: a #GESTrackElement * @control_binding: the #GstControlBinding that has been added * @@ -272,7 +272,7 @@ ges_track_element_class_init (GESTrackElementClass * klass) * is added for a child property of @track_element */ ges_track_element_signals[CONTROL_BINDING_REMOVED] = - g_signal_new ("control-binding-removed", G_TYPE_FROM_CLASS (klass), + g_signal_new ("control-binding-reomved", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, 0, NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 1, GST_TYPE_CONTROL_BINDING); @@ -1477,7 +1477,6 @@ ges_track_element_edit (GESTrackElement * object, * ges_track_element_remove_control_binding: * @object: the #GESTrackElement on which to set a control binding * @property_name: The name of the property to control. - * @binding_type: The type of binding to create. Only "direct" is available for now. * * Removes a #GstControlBinding from @object. * @@ -1523,7 +1522,7 @@ ges_track_element_remove_control_binding (GESTrackElement * object, /** * ges_track_element_set_control_source: * @object: the #GESTrackElement on which to set a control binding - * @source: (element-type GstControlSource): the #GstControlSource to set on the binding. + * @source: the #GstControlSource to set on the binding. * @property_name: The name of the property to control. * @binding_type: The type of binding to create. Only "direct" is available for now. * -- 2.7.4