[gtk+/wip/baedert/drawing: 64/71] image: Add private _get_definition
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 64/71] image: Add private _get_definition
- Date: Fri, 16 Jun 2017 14:59:32 +0000 (UTC)
commit 95abc31c274e3d057b5264dc421d854aebf5ebaf
Author: Timm Bäder <mail baedert org>
Date: Fri Jun 16 11:19:44 2017 +0200
image: Add private _get_definition
gtk/gtkimage.c | 6 ++++++
gtk/gtkimageprivate.h | 3 +++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index d61e0bd..e831fb9 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -1441,6 +1441,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 210d1f3..0424fcd 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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]