image: Add private _get_definition

This commit is contained in:
Timm Bäder 2017-06-16 11:19:44 +02:00 committed by Matthias Clasen
parent 25034b6f87
commit 00d720d8a4
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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__ */