Fix #678: The image overlay should show the full image path, not just the filename
authorDima Kogan <>
Sun, 9 Jun 2019 09:51:57 +0000 (10:51 +0100)
committerColin Clark <colin.clark@cclark.uk>
Sun, 9 Jun 2019 09:51:57 +0000 (10:51 +0100)
https://github.com/BestImageViewer/geeqie/issues/678
Additional parameter path in OSD

doc/docbook/GuideOptionsOSD.xml
src/image-overlay.c

index c90203c..042cd17 100644 (file)
             <entry>name</entry>\r
             <entry>Filename of the picture</entry>\r
           </row>\r
+          <row>\r
+            <entry>path</entry>\r
+            <entry>Full path, including filename, of the picture</entry>\r
+          </row>\r
           <row>\r
             <entry>collection</entry>\r
             <entry>Name of the collection</entry>\r
index e94d752..6116b5a 100644 (file)
@@ -307,6 +307,7 @@ static GdkPixbuf *image_osd_info_render(OverlayStateData *osd)
                osd_template_insert(vars, "number", g_strdup_printf("%d", n), OSDT_NO_DUP);
                osd_template_insert(vars, "total", g_strdup_printf("%d", t), OSDT_NO_DUP);
                osd_template_insert(vars, "name", (gchar *) name, OSDT_NONE);
+               osd_template_insert(vars, "path", (gchar *) image_get_path(imd), OSDT_NONE);
                osd_template_insert(vars, "date", imd->image_fd ? ((gchar *) text_from_time(imd->image_fd->date)) : "", OSDT_NONE);
                osd_template_insert(vars, "size", imd->image_fd ? (text_from_size_abrev(imd->image_fd->size)) : g_strdup(""), OSDT_FREE);
                osd_template_insert(vars, "zoom", image_zoom_get_as_text(imd), OSDT_FREE);