]> Pileus Git - ~andy/gtk/commitdiff
Add gtk_widget_render_icon_pixbuf() prototype to gtkwidget.h
authorCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 8 Dec 2010 15:46:57 +0000 (16:46 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 8 Dec 2010 15:46:57 +0000 (16:46 +0100)
And move gtk_widget_render_icon() to deprecation guards block

gtk/gtkwidget.h

index 2a079ea0b6baef22a0dcf3a28eaa130803326183..5e240086f01e25ea0e37497a3a714fa31e236bbc 100644 (file)
@@ -831,6 +831,10 @@ void            gtk_widget_class_path         (GtkWidget *widget,
                                            gchar    **path,
                                            gchar    **path_reversed);
 
+GdkPixbuf    *gtk_widget_render_icon          (GtkWidget   *widget,
+                                               const gchar *stock_id,
+                                               GtkIconSize  size,
+                                               const gchar *detail);
 #endif  /* GTK_DISABLE_DEPRECATED */
 
 PangoContext *gtk_widget_create_pango_context (GtkWidget   *widget);
@@ -838,10 +842,9 @@ PangoContext *gtk_widget_get_pango_context    (GtkWidget   *widget);
 PangoLayout  *gtk_widget_create_pango_layout  (GtkWidget   *widget,
                                               const gchar *text);
 
-GdkPixbuf    *gtk_widget_render_icon          (GtkWidget   *widget,
+GdkPixbuf    *gtk_widget_render_icon_pixbuf   (GtkWidget   *widget,
                                                const gchar *stock_id,
-                                               GtkIconSize  size,
-                                               const gchar *detail);
+                                               GtkIconSize  size);
 
 /* handle composite names for GTK_COMPOSITE_CHILD widgets,
  * the returned name is newly allocated.