[gedit/wip/swilmet/tepl-step3: 8/11] Utils: deprecate str_middle_truncate()



commit 710987bd9586babacc15a5ed33059fdd8e151723
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Nov 5 07:47:34 2019 +0100

    Utils: deprecate str_middle_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 e97d3a8dc..58adac0f3 100644
--- a/gedit/gedit-utils.c
+++ b/gedit/gedit-utils.c
@@ -215,6 +215,14 @@ gedit_warning (GtkWindow *parent, const gchar *format, ...)
        gtk_widget_show (dialog);
 }
 
+/**
+ * gedit_utils_str_middle_truncate:
+ * @string:
+ * @truncate_length:
+ *
+ * Returns:
+ * Deprecated: 3.36: Use tepl_utils_str_middle_truncate() instead.
+ */
 gchar *
 gedit_utils_str_middle_truncate (const gchar *string,
                                 guint        truncate_length)
diff --git a/gedit/gedit-utils.h b/gedit/gedit-utils.h
index 14230c75f..ab8456f99 100644
--- a/gedit/gedit-utils.h
+++ b/gedit/gedit-utils.h
@@ -51,6 +51,7 @@ void                       gedit_utils_menu_position_under_widget             (G
 gboolean                   gedit_utils_menu_position_under_tree_view          (GtkTreeView     *tree_view,
                                                                                GdkRectangle    *rect);
 
+G_DEPRECATED_FOR (tepl_utils_str_middle_truncate)
 gchar                     *gedit_utils_str_middle_truncate                    (const gchar     *string,
                                                                                guint            
truncate_length);
 G_DEPRECATED_FOR (tepl_utils_str_end_truncate)


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