summaryrefslogtreecommitdiff
path: root/src/eom-image.c
diff options
context:
space:
mode:
authorDebarshi Ray <[email protected]>2016-04-07 10:14:19 +0200
committerraveit65 <[email protected]>2018-08-24 08:36:14 +0200
commite1488971ed44e26257d7014760aa251393351473 (patch)
tree8a74a75972be5014576de8c31856b3272c33b068 /src/eom-image.c
parente3cb374d82809e26582d5b60374baef4474d5773 (diff)
downloadeom-e1488971ed44e26257d7014760aa251393351473.tar.bz2
eom-e1488971ed44e26257d7014760aa251393351473.tar.xz
Reduce the number of g_file_query_info calls at start-up
https://bugzilla.gnome.org/show_bug.cgi?id=764139 origin commit: https://gitlab.gnome.org/GNOME/eog/commit/65e61ccc
Diffstat (limited to 'src/eom-image.c')
-rw-r--r--src/eom-image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eom-image.c b/src/eom-image.c
index 85d4f9a..1cd2690 100644
--- a/src/eom-image.c
+++ b/src/eom-image.c
@@ -315,13 +315,14 @@ eom_image_init (EomImage *img)
}
EomImage *
-eom_image_new_file (GFile *file)
+eom_image_new_file (GFile *file, const gchar *caption)
{
EomImage *img;
img = EOM_IMAGE (g_object_new (EOM_TYPE_IMAGE, NULL));
img->priv->file = g_object_ref (file);
+ img->priv->caption = g_strdup (caption);
return img;
}