title: Deprecate method that return newly allocated `const gchar*`
authorThibault Saunier <tsaunier@igalia.com>
Mon, 8 Apr 2019 20:23:18 +0000 (16:23 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Mon, 15 Apr 2019 21:11:48 +0000 (17:11 -0400)
This is just plain broken 190643508f14a64e36f085a69de819505e79dadb
but we can't do anything about it.

ges/ges-title-source.c
tests/check/ges/titles.c

index be4671e..f67115b 100644 (file)
@@ -450,7 +450,10 @@ ges_title_source_set_ypos (GESTitleSource * self, gdouble position)
  *
  * Get the text currently set on the @source.
  *
- * Returns: (transfer none): The text currently set on the @source.
+ * Returns: (transfer full): The text currently set on the @source.
+ * 
+ * Deprecated: 1.16: Use ges_timeline_element_get_child_property instead
+ * (this actually returns a newly allocated string)
  */
 const gchar *
 ges_title_source_get_text (GESTitleSource * source)
@@ -469,8 +472,11 @@ ges_title_source_get_text (GESTitleSource * source)
  *
  * Get the pango font description used by @source.
  *
- * Returns: (transfer none): The pango font description used by this
+ * Returns: (transfer full): The pango font description used by this
  * @source.
+ * 
+ * Deprecated: 1.16: Use ges_timeline_element_get_child_property instead
+ * (this actually returns a newly allocated string)
  */
 const gchar *
 ges_title_source_get_font_desc (GESTitleSource * source)
index 42a374b..b9bf4a6 100644 (file)
@@ -148,19 +148,12 @@ GST_START_TEST (test_title_source_in_layer)
   track_element =
       ges_clip_find_track_element (GES_CLIP (source), v, GES_TYPE_TITLE_SOURCE);
 
-  /* Check the text is still the same */
-  assert_equals_string (ges_title_source_get_text (GES_TITLE_SOURCE
-          (track_element)), "some text");
-
   /* test the font-desc property */
   g_object_set (source, "font-desc", (gchar *) "sans 72", NULL);
   g_object_get (source, "font-desc", &text, NULL);
   assert_equals_string ("sans 72", text);
   g_free (text);
 
-  assert_equals_string ("sans 72",
-      ges_title_source_get_font_desc (GES_TITLE_SOURCE (track_element)));
-
   /* test halign and valign */
   g_object_set (source, "halignment", (gint)
       GES_TEXT_HALIGN_LEFT, "valignment", (gint) GES_TEXT_VALIGN_TOP, NULL);