diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c index 355359e823..d83510605d 100644 --- a/gtk/gtkimage.c +++ b/gtk/gtkimage.c @@ -1479,6 +1479,12 @@ gtk_image_set_from_definition (GtkImage *image, g_object_thaw_notify (G_OBJECT (image)); } +GtkImageDefinition * +gtk_image_get_definition (GtkImage *image) +{ + return gtk_icon_helper_get_definition (image->priv->icon_helper); +} + /** * gtk_image_clear: * @image: a #GtkImage diff --git a/gtk/gtkimageprivate.h b/gtk/gtkimageprivate.h index 210d1f3a02..0424fcd93a 100644 --- a/gtk/gtkimageprivate.h +++ b/gtk/gtkimageprivate.h @@ -36,6 +36,9 @@ void gtk_image_set_from_definition (GtkImage GtkImageDefinition *def, GtkIconSize size); + +GtkImageDefinition * gtk_image_get_definition (GtkImage *image); + G_END_DECLS #endif /* __GTK_IMAGE_H__ */