diff options
author | Alexander Larsson <alexl@redhat.com> | 2012-01-12 22:11:41 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2012-01-16 14:19:18 +0100 |
commit | 622b78c0004fd0431c19745f395c7758813bb7a3 (patch) | |
tree | 2443fed0d8a7b67e4a3121a3bec2fc5bacb84406 /gtk/gtkimage.h | |
parent | 1a36414da73fadb52aa2f2c1628e553329a5aeef (diff) | |
download | gtk+-622b78c0004fd0431c19745f395c7758813bb7a3.tar.gz |
Add GtkImage constructors from resources
Atm you can't read back the resource path like
you can with filenames. Maybe we should add that.
Diffstat (limited to 'gtk/gtkimage.h')
-rw-r--r-- | gtk/gtkimage.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkimage.h b/gtk/gtkimage.h index ec8d243f94..e3b9714802 100644 --- a/gtk/gtkimage.h +++ b/gtk/gtkimage.h @@ -111,6 +111,7 @@ GType gtk_image_get_type (void) G_GNUC_CONST; GtkWidget* gtk_image_new (void); GtkWidget* gtk_image_new_from_file (const gchar *filename); +GtkWidget* gtk_image_new_from_resource (const gchar *resource_path); GtkWidget* gtk_image_new_from_pixbuf (GdkPixbuf *pixbuf); GtkWidget* gtk_image_new_from_stock (const gchar *stock_id, GtkIconSize size); @@ -125,6 +126,8 @@ GtkWidget* gtk_image_new_from_gicon (GIcon *icon, void gtk_image_clear (GtkImage *image); void gtk_image_set_from_file (GtkImage *image, const gchar *filename); +void gtk_image_set_from_resource (GtkImage *image, + const gchar *resource_path); void gtk_image_set_from_pixbuf (GtkImage *image, GdkPixbuf *pixbuf); void gtk_image_set_from_stock (GtkImage *image, |