[gtksourceview/wip/gsv-4] CompletionItem: remove the deprecated API



commit be3c6f217e762af07e522d1313ff341fb104f613
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Nov 4 20:53:02 2016 +0100

    CompletionItem: remove the deprecated API

 docs/reference/gtksourceview-4.0-sections.txt |    3 -
 gtksourceview/gtksourcecompletionitem.c       |  118 -------------------------
 gtksourceview/gtksourcecompletionitem.h       |   18 ----
 3 files changed, 0 insertions(+), 139 deletions(-)
---
diff --git a/docs/reference/gtksourceview-4.0-sections.txt b/docs/reference/gtksourceview-4.0-sections.txt
index 98c66e4..e03bcea 100644
--- a/docs/reference/gtksourceview-4.0-sections.txt
+++ b/docs/reference/gtksourceview-4.0-sections.txt
@@ -143,9 +143,6 @@ GtkSourceCompletionInfoClass
 <FILE>completionitem</FILE>
 <TITLE>GtkSourceCompletionItem</TITLE>
 GtkSourceCompletionItem
-gtk_source_completion_item_new
-gtk_source_completion_item_new_with_markup
-gtk_source_completion_item_new_from_stock
 gtk_source_completion_item_new2
 gtk_source_completion_item_set_label
 gtk_source_completion_item_set_markup
diff --git a/gtksourceview/gtksourcecompletionitem.c b/gtksourceview/gtksourcecompletionitem.c
index 2fd8576..7f26a39 100644
--- a/gtksourceview/gtksourcecompletionitem.c
+++ b/gtksourceview/gtksourcecompletionitem.c
@@ -374,124 +374,6 @@ gtk_source_completion_item_init (GtkSourceCompletionItem *item)
 }
 
 /**
- * gtk_source_completion_item_new:
- * @label: The item label.
- * @text: The item text.
- * @icon: (nullable): The item icon.
- * @info: (nullable): The item extra information.
- *
- * Create a new #GtkSourceCompletionItem with label @label, icon @icon and
- * extra information @info. Both @icon and @info can be %NULL in 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 (const gchar *label,
-                               const gchar *text,
-                               GdkPixbuf   *icon,
-                               const gchar *info)
-{
-       return g_object_new (GTK_SOURCE_TYPE_COMPLETION_ITEM,
-                            "label", label,
-                            "text", text,
-                            "icon", icon,
-                            "info", info,
-                            NULL);
-}
-
-/**
- * gtk_source_completion_item_new_with_markup:
- * @markup: The item markup label.
- * @text: The item text.
- * @icon: (nullable): The item icon.
- * @info: (nullable): The item extra information.
- *
- * Create a new #GtkSourceCompletionItem with markup label @markup, icon
- * @icon and extra information @info. Both @icon and @info can be %NULL in
- * 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,
-                                            const gchar *text,
-                                            GdkPixbuf   *icon,
-                                            const gchar *info)
-{
-       return g_object_new (GTK_SOURCE_TYPE_COMPLETION_ITEM,
-                            "markup", markup,
-                            "text", text,
-                            "icon", icon,
-                            "info", info,
-                            NULL);
-}
-
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
-
-/**
- * gtk_source_completion_item_new_from_stock:
- * @label: (nullable): The item label.
- * @text: The item text.
- * @stock: The stock icon.
- * @info: (nullable): The item extra information.
- *
- * Creates a new #GtkSourceCompletionItem from a stock item. If @label is %NULL,
- * the stock label will be used.
- *
- * Returns: a new #GtkSourceCompletionItem.
- * Deprecated: 3.10: Use gtk_source_completion_item_new2() instead.
- */
-GtkSourceCompletionItem *
-gtk_source_completion_item_new_from_stock (const gchar *label,
-                                          const gchar *text,
-                                          const gchar *stock,
-                                          const gchar *info)
-{
-       GtkSourceCompletionItem *item;
-       GdkPixbuf *icon;
-       GtkIconTheme *theme;
-       gint width;
-       gint height;
-       GtkStockItem stock_item;
-
-       if (stock != NULL)
-       {
-               theme = gtk_icon_theme_get_default ();
-
-               gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &width, &height);
-
-               icon = gtk_icon_theme_load_icon (theme,
-                                                stock,
-                                                width,
-                                                GTK_ICON_LOOKUP_USE_BUILTIN,
-                                                NULL);
-
-               if (label == NULL && gtk_stock_lookup (stock, &stock_item))
-               {
-                       label = stock_item.label;
-               }
-       }
-       else
-       {
-               icon = NULL;
-       }
-
-       item = gtk_source_completion_item_new (label, text, icon, info);
-
-       if (icon != NULL)
-       {
-               g_object_unref (icon);
-       }
-
-       return item;
-}
-
-G_GNUC_END_IGNORE_DEPRECATIONS;
-
-/**
  * gtk_source_completion_item_new2:
  *
  * Creates a new #GtkSourceCompletionItem. The desired properties need to be set
diff --git a/gtksourceview/gtksourcecompletionitem.h b/gtksourceview/gtksourcecompletionitem.h
index 0cfbd28..d05efdc 100644
--- a/gtksourceview/gtksourcecompletionitem.h
+++ b/gtksourceview/gtksourcecompletionitem.h
@@ -59,24 +59,6 @@ struct _GtkSourceCompletionItemClass {
 GTK_SOURCE_AVAILABLE_IN_ALL
 GType                   gtk_source_completion_item_get_type            (void) G_GNUC_CONST;
 
-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_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_new2)
-GtkSourceCompletionItem *gtk_source_completion_item_new_from_stock     (const gchar *label,
-                                                                        const gchar *text,
-                                                                        const gchar *stock,
-                                                                        const gchar *info);
-
 GTK_SOURCE_AVAILABLE_IN_3_24
 GtkSourceCompletionItem *gtk_source_completion_item_new2               (void);
 


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