summaryrefslogtreecommitdiff
path: root/src/eom-image-save-info.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-26 11:43:49 +0200
committerinfirit <[email protected]>2014-07-26 12:17:20 +0200
commitd056914e3d49734d740c227eda08a9a3711c9ae3 (patch)
tree2082f4858d50fe287e9c037ee2d5251679b0cae9 /src/eom-image-save-info.c
parent99d1fc5f4d134d93c25702fd5ba12e10b874aa71 (diff)
downloadeom-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.c')
-rw-r--r--src/eom-image-save-info.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/eom-image-save-info.c b/src/eom-image-save-info.c
index d368a61..d7a70e1 100644
--- a/src/eom-image-save-info.c
+++ b/src/eom-image-save-info.c
@@ -79,12 +79,9 @@ get_save_file_type_by_file (GFile *file)
}
EomImageSaveInfo*
-eom_image_save_info_from_image (gpointer data)
+eom_image_save_info_new_from_image (EomImage *image)
{
EomImageSaveInfo *info = NULL;
- EomImage *image;
-
- image = EOM_IMAGE (data);
g_return_val_if_fail (EOM_IS_IMAGE (image), NULL);
@@ -104,7 +101,7 @@ eom_image_save_info_from_image (gpointer data)
}
EomImageSaveInfo*
-eom_image_save_info_from_uri (const char *txt_uri, GdkPixbufFormat *format)
+eom_image_save_info_new_from_uri (const char *txt_uri, GdkPixbufFormat *format)
{
GFile *file;
EomImageSaveInfo *info;
@@ -113,7 +110,7 @@ eom_image_save_info_from_uri (const char *txt_uri, GdkPixbufFormat *format)
file = g_file_new_for_uri (txt_uri);
- info = eom_image_save_info_from_file (file, format);
+ info = eom_image_save_info_new_from_file (file, format);
g_object_unref (file);
@@ -121,7 +118,7 @@ eom_image_save_info_from_uri (const char *txt_uri, GdkPixbufFormat *format)
}
EomImageSaveInfo*
-eom_image_save_info_from_file (GFile *file, GdkPixbufFormat *format)
+eom_image_save_info_new_from_file (GFile *file, GdkPixbufFormat *format)
{
EomImageSaveInfo *info;