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-12-15 14:31:20 +0100
commit98a063e9394753a280993e76c909c38e3f0838dc (patch)
tree4e3e634ed74042dd75a2f23042969743d151717a /src/eom-image.c
parent0d1a90aa582176009a9b7b21eef8c6585db70a0a (diff)
downloadeom-98a063e9394753a280993e76c909c38e3f0838dc.tar.bz2
eom-98a063e9394753a280993e76c909c38e3f0838dc.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 c17bd71..987396d 100644
--- a/src/eom-image.c
+++ b/src/eom-image.c
@@ -321,13 +321,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;
}