[gedit/wip/swilmet/tepl-step3: 6/11] Utils: deprecate str_end_truncate()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/swilmet/tepl-step3: 6/11] Utils: deprecate str_end_truncate()
- Date: Fri, 8 Nov 2019 17:09:23 +0000 (UTC)
commit 533de408a31be75272b42e4e06b495ee023a0b7d
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]