aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-08-05 08:57:13 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-08-05 08:57:55 +0200
commitca51c9413b38ee4b65af7e95d5c81aecbda5aa2c (patch)
tree39c822b14910685c75f5d94d43a73b86f7576f88
parent857917aa925f48ad1d7ed4be6f263f3402eb5178 (diff)
downloadfiv-ca51c9413b38ee4b65af7e95d5c81aecbda5aa2c.tar.gz
fiv-ca51c9413b38ee4b65af7e95d5c81aecbda5aa2c.tar.xz
fiv-ca51c9413b38ee4b65af7e95d5c81aecbda5aa2c.zip
Show parse names in Information dialog subtitles
-rw-r--r--fiv-view.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fiv-view.c b/fiv-view.c
index d7fa796..283f0b0 100644
--- a/fiv-view.c
+++ b/fiv-view.c
@@ -1408,7 +1408,14 @@ info(FivView *self)
gtk_window_set_default_size(GTK_WINDOW(dialog), 600, 800);
gtk_widget_show_all(dialog);
+ // Mostly for URIs with no local path--we pipe these into ExifTool.
GFile *file = g_file_new_for_uri(self->uri);
+ gchar *parse_name = g_file_get_parse_name(file);
+ gtk_header_bar_set_subtitle(
+ GTK_HEADER_BAR(gtk_dialog_get_header_bar(GTK_DIALOG(dialog))),
+ parse_name);
+ g_free(parse_name);
+
gchar *path = g_file_get_path(file);
if (path) {
info_spawn(dialog, path, NULL);