[gtk+] Continue the deprecation of GtkIconSet



commit 4d86472b927d5b72d794f584e6a6108bb78b71d3
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Fri Jul 5 15:42:31 2013 +0200

    Continue the deprecation of GtkIconSet
    
    Deprecate gtk_icon_set_render_icon_surface() and gtk_image_get_icon_set(),
    which take parameters of the deprecated GtkIconSet.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=703616

 gtk/gtkiconfactory.c  |    2 ++
 gtk/gtkiconhelper.c   |    2 ++
 gtk/gtkimage.c        |    2 ++
 gtk/gtkimage.h        |    2 +-
 gtk/gtkstylecontext.h |    2 +-
 5 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkiconfactory.c b/gtk/gtkiconfactory.c
index c952830..ca54ad1 100644
--- a/gtk/gtkiconfactory.c
+++ b/gtk/gtkiconfactory.c
@@ -1597,6 +1597,8 @@ gtk_icon_set_render_icon_pixbuf (GtkIconSet        *icon_set,
  * Return value: (transfer full): a #cairo_surface_t to be displayed
  *
  * Since: 3.10
+ *
+ * Deprecated: 3.10: Use #GtkIconTheme instead.
  */
 cairo_surface_t *
 gtk_icon_set_render_icon_surface  (GtkIconSet      *icon_set,
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index c1af789..a159f06 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -601,10 +601,12 @@ ensure_surface_for_icon_set (GtkIconHelper *self,
 
   scale = get_scale_factor (self, context);
 
+  G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
   self->priv->rendered_surface =
     gtk_icon_set_render_icon_surface (icon_set, context, 
                                      self->priv->icon_size,
                                      scale, self->priv->window);
+  G_GNUC_END_IGNORE_DEPRECATIONS;
 
   if (self->priv->rendered_surface)
     get_surface_size (self, context, self->priv->rendered_surface, 
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 0fd4ce0..8b25a06 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -1285,6 +1285,8 @@ gtk_image_get_stock  (GtkImage        *image,
  * Gets the icon set and size being displayed by the #GtkImage.
  * The storage type of the image must be %GTK_IMAGE_EMPTY or
  * %GTK_IMAGE_ICON_SET (see gtk_image_get_storage_type()).
+ *
+ * Deprecated: 3.10: Use gtk_image_get_icon_name() instead.
  **/
 void
 gtk_image_get_icon_set  (GtkImage        *image,
diff --git a/gtk/gtkimage.h b/gtk/gtkimage.h
index a7fede0..18e26e2 100644
--- a/gtk/gtkimage.h
+++ b/gtk/gtkimage.h
@@ -182,7 +182,7 @@ GDK_DEPRECATED_IN_3_10_FOR(gtk_image_get_icon_name)
 void       gtk_image_get_stock    (GtkImage         *image,
                                    gchar           **stock_id,
                                    GtkIconSize      *size);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_10_FOR(gtk_image_get_icon_name)
 void       gtk_image_get_icon_set (GtkImage         *image,
                                    GtkIconSet      **icon_set,
                                    GtkIconSize      *size);
diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h
index 6b9dfd3..be8a0dc 100644
--- a/gtk/gtkstylecontext.h
+++ b/gtk/gtkstylecontext.h
@@ -885,7 +885,7 @@ GDK_DEPRECATED_IN_3_10
 GdkPixbuf  * gtk_icon_set_render_icon_pixbuf   (GtkIconSet      *icon_set,
                                                 GtkStyleContext *context,
                                                 GtkIconSize      size);
-GDK_AVAILABLE_IN_3_10
+GDK_DEPRECATED_IN_3_10
 cairo_surface_t  *
 gtk_icon_set_render_icon_surface               (GtkIconSet      *icon_set,
                                                GtkStyleContext *context,


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