diff options
author | infirit <[email protected]> | 2014-07-26 11:43:49 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-07-26 12:17:20 +0200 |
commit | d056914e3d49734d740c227eda08a9a3711c9ae3 (patch) | |
tree | 2082f4858d50fe287e9c037ee2d5251679b0cae9 /src/eom-image-save-info.h | |
parent | 99d1fc5f4d134d93c25702fd5ba12e10b874aa71 (diff) | |
download | eom-d056914e3d49734d740c227eda08a9a3711c9ae3.tar.bz2 eom-d056914e3d49734d740c227eda08a9a3711c9ae3.tar.xz |
Improve the API consistency in EomImageSaveInfo
This will make things better for introspection
Based on eog commit ae39227b82978abf2b69baff0e46d8bba8d3474e
From Claudio Saavedra <[email protected]>
Diffstat (limited to 'src/eom-image-save-info.h')
-rw-r--r-- | src/eom-image-save-info.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/eom-image-save-info.h b/src/eom-image-save-info.h index 8a3c36f..41a564b 100644 --- a/src/eom-image-save-info.h +++ b/src/eom-image-save-info.h @@ -7,7 +7,10 @@ G_BEGIN_DECLS -struct EomImage; +#ifndef __EOM_IMAGE_DCLR__ +#define __EOM_IMAGE_DECLR__ +typedef struct _EomImage EomImage; +#endif #define EOM_TYPE_IMAGE_SAVE_INFO (eom_image_save_info_get_type ()) #define EOM_IMAGE_SAVE_INFO(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EOM_TYPE_IMAGE_SAVE_INFO, EomImageSaveInfo)) @@ -39,15 +42,15 @@ struct _EomImageSaveInfoClass { #define EOM_FILE_FORMAT_JPEG "jpeg" -GType eom_image_save_info_get_type (void) G_GNUC_CONST; +GType eom_image_save_info_get_type (void) G_GNUC_CONST; -EomImageSaveInfo *eom_image_save_info_from_image (gpointer data); +EomImageSaveInfo *eom_image_save_info_new_from_image (EomImage *image); -EomImageSaveInfo *eom_image_save_info_from_uri (const char *uri, - GdkPixbufFormat *format); +EomImageSaveInfo *eom_image_save_info_new_from_uri (const char *uri, + GdkPixbufFormat *format); -EomImageSaveInfo *eom_image_save_info_from_file (GFile *file, - GdkPixbufFormat *format); +EomImageSaveInfo *eom_image_save_info_new_from_file (GFile *file, + GdkPixbufFormat *format); G_END_DECLS |