summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-12-22 14:09:36 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-12-22 15:03:15 -0500
commit5f330418aeae2bc622bbd57a4e41cb738a5c896f (patch)
treec52c05060fa8142678aa7337d02223c2815c7ee1
parenta5a50915554f6a595bd2769f5cd5e8602a2b703b (diff)
downloadgtk+-5f330418aeae2bc622bbd57a4e41cb738a5c896f.tar.gz
Add some docs to GtkBuiltinIcon
-rw-r--r--gtk/gtkbuiltinicon.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gtk/gtkbuiltinicon.c b/gtk/gtkbuiltinicon.c
index a6974e6e13..1abf04d466 100644
--- a/gtk/gtkbuiltinicon.c
+++ b/gtk/gtkbuiltinicon.c
@@ -25,6 +25,24 @@
#include "gtkcssnumbervalueprivate.h"
#include "gtkrendericonprivate.h"
+/* GtkBuiltinIcon is a gadget implementation that is meant to replace
+ * all calls to gtk_render_ functions to render arrows, expanders, checks
+ * radios, handles, separators, etc. See the GtkCssImageBuiltinType
+ * enumeration for the full set of builtin icons that this gadget can
+ * render.
+ *
+ * Use gtk_builtin_icon_set_image to set which of the builtin icons
+ * is rendered.
+ *
+ * Use gtk_builtin_icon_set_default_size to set a non-zero default
+ * size for the icon. If you need to support a legacy size style property,
+ * use gtk_builtin_icon_set_default_size_property.
+ *
+ * Themes can override the acutal image that is used with the
+ * -gtk-icon-source property. If it is not specified, a builtin
+ * fallback is used.
+ */
+
typedef struct _GtkBuiltinIconPrivate GtkBuiltinIconPrivate;
struct _GtkBuiltinIconPrivate {
GtkCssImageBuiltinType image_type;