[gedit] Utils: deprecate str_middle_truncate()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Utils: deprecate str_middle_truncate()
- Date: Mon, 11 Nov 2019 03:00:57 +0000 (UTC)
commit 657ce9f7a77fc2e9f95e57d58e6b6b43682b931c
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]