[gtksourceview: 7/7] CompletionItem: deprecate old constructors
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview: 7/7] CompletionItem: deprecate old constructors
- Date: Thu, 20 Oct 2016 06:57:50 +0000 (UTC)
commit 4b1cd883924d039e8a3575a4a9fdd7fb0f52bf11
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Oct 20 08:53:56 2016 +0200
CompletionItem: deprecate old constructors
https://bugzilla.gnome.org/show_bug.cgi?id=753649
gtksourceview/gtksourcecompletionitem.c | 4 +++-
gtksourceview/gtksourcecompletionitem.h | 6 +++---
2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletionitem.c b/gtksourceview/gtksourcecompletionitem.c
index 3a7dceb..c8f0be4 100644
--- a/gtksourceview/gtksourcecompletionitem.c
+++ b/gtksourceview/gtksourcecompletionitem.c
@@ -385,6 +385,7 @@ gtk_source_completion_item_init (GtkSourceCompletionItem *item)
* there will be no icon shown and no extra information available.
*
* Returns: a new #GtkSourceCompletionItem.
+ * Deprecated: 3.24: Use gtk_source_completion_item_new2() instead.
*/
GtkSourceCompletionItem *
gtk_source_completion_item_new (const gchar *label,
@@ -412,6 +413,7 @@ gtk_source_completion_item_new (const gchar *label,
* which case there will be no icon shown and no extra information available.
*
* Returns: a new #GtkSourceCompletionItem.
+ * Deprecated: 3.24: Use gtk_source_completion_item_new2() instead.
*/
GtkSourceCompletionItem *
gtk_source_completion_item_new_with_markup (const gchar *markup,
@@ -440,7 +442,7 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
* the stock label will be used.
*
* Returns: a new #GtkSourceCompletionItem.
- * Deprecated: 3.10: Use gtk_source_completion_item_new() instead.
+ * Deprecated: 3.10: Use gtk_source_completion_item_new2() instead.
*/
GtkSourceCompletionItem *
gtk_source_completion_item_new_from_stock (const gchar *label,
diff --git a/gtksourceview/gtksourcecompletionitem.h b/gtksourceview/gtksourcecompletionitem.h
index d4c84d8..0cfbd28 100644
--- a/gtksourceview/gtksourcecompletionitem.h
+++ b/gtksourceview/gtksourcecompletionitem.h
@@ -59,19 +59,19 @@ struct _GtkSourceCompletionItemClass {
GTK_SOURCE_AVAILABLE_IN_ALL
GType gtk_source_completion_item_get_type (void) G_GNUC_CONST;
-GTK_SOURCE_AVAILABLE_IN_ALL
+GTK_SOURCE_DEPRECATED_IN_3_24_FOR (gtk_source_completion_item_new2)
GtkSourceCompletionItem *gtk_source_completion_item_new (const gchar *label,
const gchar *text,
GdkPixbuf *icon,
const gchar *info);
-GTK_SOURCE_AVAILABLE_IN_ALL
+GTK_SOURCE_DEPRECATED_IN_3_24_FOR (gtk_source_completion_item_new2)
GtkSourceCompletionItem *gtk_source_completion_item_new_with_markup (const gchar *markup,
const gchar *text,
GdkPixbuf *icon,
const gchar *info);
-GTK_SOURCE_DEPRECATED_IN_3_10_FOR (gtk_source_completion_item_new)
+GTK_SOURCE_DEPRECATED_IN_3_10_FOR (gtk_source_completion_item_new2)
GtkSourceCompletionItem *gtk_source_completion_item_new_from_stock (const gchar *label,
const gchar *text,
const gchar *stock,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]