diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/eom-metadata-sidebar.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/eom-metadata-sidebar.c b/src/eom-metadata-sidebar.c index 5c0e33a..ccca3bf 100644 --- a/src/eom-metadata-sidebar.c +++ b/src/eom-metadata-sidebar.c @@ -98,6 +98,7 @@ eom_metadata_sidebar_update_general_section (EomMetadataSidebar *sidebar) EomImage *img = priv->image; GFile *file, *parent_file; GFileInfo *file_info; + gchar *basename, *baseuri; gchar *str; goffset bytes; gint width, height; @@ -142,10 +143,15 @@ eom_metadata_sidebar_update_general_section (EomMetadataSidebar *sidebar) /* file is root directory itself */ parent_file = g_object_ref (file); } - str = g_file_get_basename (parent_file); - str = g_markup_printf_escaped ("<a href=\"%s\">%s</a>", g_file_get_uri (parent_file), str); + basename = g_file_get_basename (parent_file); + baseuri = g_file_get_uri (parent_file); + str = g_markup_printf_escaped ("<a href=\"%s\">%s</a>", + baseuri, + basename); gtk_label_set_markup (GTK_LABEL (priv->folder_label), str); g_free (str); + g_free (baseuri); + g_free (basename); str = g_file_get_path (parent_file); gtk_widget_set_tooltip_text (GTK_WIDGET (priv->folder_label), str); |