* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
-#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
-#error "Only <gtk/gtk.h> can be included directly."
-#endif
-
#ifndef __GTK_IMAGE_H__
#define __GTK_IMAGE_H__
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
#include <gio/gio.h>
#include <gtk/gtkmisc.h>
typedef struct _GtkImagePrivate GtkImagePrivate;
typedef struct _GtkImageClass GtkImageClass;
-typedef struct _GtkImagePixbufData GtkImagePixbufData;
-typedef struct _GtkImageStockData GtkImageStockData;
-typedef struct _GtkImageIconSetData GtkImageIconSetData;
-typedef struct _GtkImageAnimationData GtkImageAnimationData;
-typedef struct _GtkImageIconNameData GtkImageIconNameData;
-typedef struct _GtkImageGIconData GtkImageGIconData;
-
-struct _GtkImagePixbufData
-{
- GdkPixbuf *pixbuf;
-};
-
-struct _GtkImageStockData
-{
- gchar *stock_id;
-};
-
-struct _GtkImageIconSetData
-{
- GtkIconSet *icon_set;
-};
-
-struct _GtkImageAnimationData
-{
- GdkPixbufAnimation *anim;
- GdkPixbufAnimationIter *iter;
- guint frame_timeout;
-};
-
-struct _GtkImageIconNameData
-{
- gchar *icon_name;
- GdkPixbuf *pixbuf;
- guint theme_change_id;
-};
-
-struct _GtkImageGIconData
-{
- GIcon *icon;
- GdkPixbuf *pixbuf;
- guint theme_change_id;
-};
-
/**
* GtkImageType:
* @GTK_IMAGE_EMPTY: there is no image displayed by the widget
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);
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,
GtkIconSet **icon_set,
GtkIconSize *size);
GdkPixbufAnimation* gtk_image_get_animation (GtkImage *image);
-void gtk_image_get_icon_name (GtkImage *image,
- G_CONST_RETURN gchar **icon_name,
- GtkIconSize *size);
+void gtk_image_get_icon_name (GtkImage *image,
+ const gchar **icon_name,
+ GtkIconSize *size);
void gtk_image_get_gicon (GtkImage *image,
GIcon **gicon,
GtkIconSize *size);