[devhelp] DhLink: deprecate dh_link_get_page_name()



commit a7f7b7a808614c0059208642da5ff0a98bf584f6
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Apr 28 20:00:24 2017 +0200

    DhLink: deprecate dh_link_get_page_name()
    
    Used nowhere, not in Devhelp, not in Anjuta nor gnome-builder.

 src/dh-link.c |    1 +
 src/dh-link.h |    4 +++-
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/dh-link.c b/src/dh-link.c
index c7a785e..3ec85be 100644
--- a/src/dh-link.c
+++ b/src/dh-link.c
@@ -251,6 +251,7 @@ dh_link_get_book_name (DhLink *link)
  * @link: a #DhLink.
  *
  * Returns: the name of the page that the @link is contained in.
+ * Deprecated: this function is used nowhere.
  */
 const gchar *
 dh_link_get_page_name (DhLink *link)
diff --git a/src/dh-link.h b/src/dh-link.h
index 5c1e7f4..56a1e73 100644
--- a/src/dh-link.h
+++ b/src/dh-link.h
@@ -80,7 +80,6 @@ gint         dh_link_compare            (gconstpointer  a,
                                          gconstpointer  b);
 const gchar *dh_link_get_name           (DhLink        *link);
 const gchar *dh_link_get_book_name      (DhLink        *link);
-const gchar *dh_link_get_page_name      (DhLink        *link);
 const gchar *dh_link_get_file_name      (DhLink        *link);
 const gchar *dh_link_get_book_id        (DhLink        *link);
 gchar       *dh_link_get_uri            (DhLink        *link);
@@ -90,6 +89,9 @@ void         dh_link_set_flags          (DhLink        *link,
 DhLinkType   dh_link_get_link_type      (DhLink        *link);
 const gchar *dh_link_get_type_as_string (DhLink        *link);
 
+G_DEPRECATED
+const gchar *dh_link_get_page_name      (DhLink        *link);
+
 G_END_DECLS
 
 #endif /* DH_LINK_H */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]