From 98a063e9394753a280993e76c909c38e3f0838dc Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Thu, 7 Apr 2016 10:14:19 +0200 Subject: 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 --- src/eom-image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/eom-image.c') 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; } -- cgit v1.2.1