X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkimage.h;h=023f20c5a428b946153562e2157ef92701ca8300;hb=b2340254109d8599244c875fe7bc5e234f64da08;hp=bdd74e7058b52acfc9907bc440d6159670cb2e52;hpb=287d91e5f994d059232731133870ba9e95c8e418;p=~andy%2Fgtk diff --git a/gtk/gtkimage.h b/gtk/gtkimage.h index bdd74e705..023f20c5a 100644 --- a/gtk/gtkimage.h +++ b/gtk/gtkimage.h @@ -12,9 +12,7 @@ * 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 . */ /* @@ -24,14 +22,14 @@ * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ -#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) -#error "Only can be included directly." -#endif - #ifndef __GTK_IMAGE_H__ #define __GTK_IMAGE_H__ +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + #include #include @@ -111,6 +109,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 +124,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, @@ -154,9 +155,9 @@ void gtk_image_get_icon_set (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);