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



commit 7b3256f45bfa484066f2451419a2f8165b43179c
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Nov 4 21:13:05 2016 +0100

    GutterRendererPixbuf: remove the deprecated API

 docs/reference/gtksourceview-4.0-sections.txt |    2 -
 gtksourceview/gtksourcegutterrendererpixbuf.c |   66 -------------------------
 gtksourceview/gtksourcegutterrendererpixbuf.h |    7 ---
 3 files changed, 0 insertions(+), 75 deletions(-)
---
diff --git a/docs/reference/gtksourceview-4.0-sections.txt b/docs/reference/gtksourceview-4.0-sections.txt
index 8e0d277..4aeb42d 100644
--- a/docs/reference/gtksourceview-4.0-sections.txt
+++ b/docs/reference/gtksourceview-4.0-sections.txt
@@ -436,8 +436,6 @@ GtkSourceGutterRendererPixbuf
 gtk_source_gutter_renderer_pixbuf_new
 gtk_source_gutter_renderer_pixbuf_set_pixbuf
 gtk_source_gutter_renderer_pixbuf_get_pixbuf
-gtk_source_gutter_renderer_pixbuf_set_stock_id
-gtk_source_gutter_renderer_pixbuf_get_stock_id
 gtk_source_gutter_renderer_pixbuf_set_gicon
 gtk_source_gutter_renderer_pixbuf_get_gicon
 gtk_source_gutter_renderer_pixbuf_set_icon_name
diff --git a/gtksourceview/gtksourcegutterrendererpixbuf.c b/gtksourceview/gtksourcegutterrendererpixbuf.c
index 668eff4..e8bc186 100644
--- a/gtksourceview/gtksourcegutterrendererpixbuf.c
+++ b/gtksourceview/gtksourcegutterrendererpixbuf.c
@@ -48,7 +48,6 @@ enum
 {
        PROP_0,
        PROP_PIXBUF,
-       PROP_STOCK_ID,
        PROP_ICON_NAME,
        PROP_GICON,
 };
@@ -208,18 +207,6 @@ set_pixbuf (GtkSourceGutterRendererPixbuf *renderer,
 }
 
 static void
-set_stock_id (GtkSourceGutterRendererPixbuf *renderer,
-              const gchar                   *stock_id)
-{
-       gtk_source_pixbuf_helper_set_stock_id (renderer->priv->helper,
-                                              stock_id);
-
-       g_object_notify (G_OBJECT (renderer), "stock-id");
-
-       gtk_source_gutter_renderer_queue_draw (GTK_SOURCE_GUTTER_RENDERER (renderer));
-}
-
-static void
 set_gicon (GtkSourceGutterRendererPixbuf *renderer,
            GIcon                         *icon)
 {
@@ -259,9 +246,6 @@ gtk_source_gutter_renderer_pixbuf_set_property (GObject      *object,
                case PROP_PIXBUF:
                        set_pixbuf (renderer, g_value_get_object (value));
                        break;
-               case PROP_STOCK_ID:
-                       set_stock_id (renderer, g_value_get_string (value));
-                       break;
                case PROP_ICON_NAME:
                        set_icon_name (renderer, g_value_get_string (value));
                        break;
@@ -290,10 +274,6 @@ gtk_source_gutter_renderer_pixbuf_get_property (GObject    *object,
                        g_value_set_object (value,
                                            gtk_source_pixbuf_helper_get_pixbuf (renderer->priv->helper));
                        break;
-               case PROP_STOCK_ID:
-                       g_value_set_string (value,
-                                           gtk_source_pixbuf_helper_get_stock_id (renderer->priv->helper));
-                       break;
                case PROP_ICON_NAME:
                        g_value_set_string (value,
                                            gtk_source_pixbuf_helper_get_icon_name (renderer->priv->helper));
@@ -329,21 +309,6 @@ gtk_source_gutter_renderer_pixbuf_class_init (GtkSourceGutterRendererPixbufClass
                                                              GDK_TYPE_PIXBUF,
                                                              G_PARAM_READWRITE));
 
-       /**
-        * GtkSourceGutterRendererPixbuf:stock-id:
-        *
-        * The stock id.
-        *
-        * Deprecated: 3.10: Don't use this property.
-        */
-       g_object_class_install_property (object_class,
-                                        PROP_STOCK_ID,
-                                        g_param_spec_string ("stock-id",
-                                                             "Stock Id",
-                                                             "The stock id",
-                                                             NULL,
-                                                             G_PARAM_READWRITE | G_PARAM_DEPRECATED));
-
        g_object_class_install_property (object_class,
                                         PROP_ICON_NAME,
                                         g_param_spec_string ("icon-name",
@@ -417,37 +382,6 @@ gtk_source_gutter_renderer_pixbuf_get_pixbuf (GtkSourceGutterRendererPixbuf *ren
 }
 
 /**
- * gtk_source_gutter_renderer_pixbuf_set_stock_id:
- * @renderer: a #GtkSourceGutterRendererPixbuf
- * @stock_id: (nullable): the stock id
- *
- * Deprecated: 3.10: Don't use this function.
- */
-void
-gtk_source_gutter_renderer_pixbuf_set_stock_id (GtkSourceGutterRendererPixbuf *renderer,
-                                                const gchar                   *stock_id)
-{
-       g_return_if_fail (GTK_SOURCE_IS_GUTTER_RENDERER_PIXBUF_CLASS (renderer));
-
-       set_stock_id (renderer, stock_id);
-}
-
-/**
- * gtk_source_gutter_renderer_pixbuf_get_stock_id:
- * @renderer: a #GtkSourceGutterRendererPixbuf
- *
- * Returns: the stock id.
- * Deprecated: 3.10: Don't use this function.
- */
-const gchar *
-gtk_source_gutter_renderer_pixbuf_get_stock_id (GtkSourceGutterRendererPixbuf *renderer)
-{
-       g_return_val_if_fail (GTK_SOURCE_IS_GUTTER_RENDERER_PIXBUF (renderer), NULL);
-
-       return gtk_source_pixbuf_helper_get_stock_id (renderer->priv->helper);
-}
-
-/**
  * gtk_source_gutter_renderer_pixbuf_set_gicon:
  * @renderer: a #GtkSourceGutterRendererPixbuf
  * @icon: (nullable): the icon, or %NULL.
diff --git a/gtksourceview/gtksourcegutterrendererpixbuf.h b/gtksourceview/gtksourcegutterrendererpixbuf.h
index 174c818..805cd96 100644
--- a/gtksourceview/gtksourcegutterrendererpixbuf.h
+++ b/gtksourceview/gtksourcegutterrendererpixbuf.h
@@ -77,13 +77,6 @@ void         gtk_source_gutter_renderer_pixbuf_set_pixbuf       (GtkSourceGutter
 GTK_SOURCE_AVAILABLE_IN_ALL
 GdkPixbuf   *gtk_source_gutter_renderer_pixbuf_get_pixbuf       (GtkSourceGutterRendererPixbuf *renderer);
 
-GTK_SOURCE_DEPRECATED_IN_3_10
-void         gtk_source_gutter_renderer_pixbuf_set_stock_id     (GtkSourceGutterRendererPixbuf *renderer,
-                                                                 const gchar                   *stock_id);
-
-GTK_SOURCE_DEPRECATED_IN_3_10
-const gchar *gtk_source_gutter_renderer_pixbuf_get_stock_id     (GtkSourceGutterRendererPixbuf *renderer);
-
 GTK_SOURCE_AVAILABLE_IN_ALL
 void         gtk_source_gutter_renderer_pixbuf_set_gicon        (GtkSourceGutterRendererPixbuf *renderer,
                                                                  GIcon                         *icon);


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