[gedit] Utils: deprecate str_end_truncate()



commit 76b1a9cb7c8db69f5dd8bf48bbf05cad980c94d2
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Nov 5 07:09:51 2019 +0100

    Utils: deprecate str_end_truncate()

 gedit/gedit-utils.c | 8 ++++++++
 gedit/gedit-utils.h | 1 +
 2 files changed, 9 insertions(+)
---
diff --git a/gedit/gedit-utils.c b/gedit/gedit-utils.c
index 6e1f2bf25..e97d3a8dc 100644
--- a/gedit/gedit-utils.c
+++ b/gedit/gedit-utils.c
@@ -222,6 +222,14 @@ gedit_utils_str_middle_truncate (const gchar *string,
        return tepl_utils_str_middle_truncate (string, truncate_length);
 }
 
+/**
+ * gedit_utils_str_end_truncate:
+ * @string:
+ * @truncate_length:
+ *
+ * Returns:
+ * Deprecated: 3.36: Use tepl_utils_str_end_truncate() instead.
+ */
 gchar *
 gedit_utils_str_end_truncate (const gchar *string,
                              guint        truncate_length)
diff --git a/gedit/gedit-utils.h b/gedit/gedit-utils.h
index 5d992f1c1..14230c75f 100644
--- a/gedit/gedit-utils.h
+++ b/gedit/gedit-utils.h
@@ -53,6 +53,7 @@ gboolean                   gedit_utils_menu_position_under_tree_view          (G
 
 gchar                     *gedit_utils_str_middle_truncate                    (const gchar     *string,
                                                                                guint            
truncate_length);
+G_DEPRECATED_FOR (tepl_utils_str_end_truncate)
 gchar                     *gedit_utils_str_end_truncate                       (const gchar     *string,
                                                                                guint            
truncate_length);
 void                       gedit_utils_set_atk_name_description               (GtkWidget       *widget,


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