[file-roller] properties dialog: allow to open the archive's folder
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] properties dialog: allow to open the archive's folder
- Date: Sat, 11 Aug 2012 11:24:18 +0000 (UTC)
commit 9a37eb44a8ec5d0a20ea78c9a44c7c9e50bb508f
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Aug 10 15:42:30 2012 +0200
properties dialog: allow to open the archive's folder
src/dlg-prop.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/dlg-prop.c b/src/dlg-prop.c
index 3d4c1aa..41f2161 100644
--- a/src/dlg-prop.c
+++ b/src/dlg-prop.c
@@ -52,6 +52,8 @@ dlg_prop (FrWindow *window)
GtkWidget *ok_button;
GtkWidget *label;
GFile *parent;
+ char *uri;
+ char *markup;
char *s;
goffset size, uncompressed_size;
char *utf8_name;
@@ -75,9 +77,14 @@ dlg_prop (FrWindow *window)
label = _gtk_builder_get_widget (data->builder, "p_path_label");
parent = g_file_get_parent (fr_window_get_archive_file (window));
+ uri = g_file_get_uri (parent);
utf8_name = g_file_get_parse_name (parent);
- gtk_label_set_text (GTK_LABEL (label), utf8_name);
+ markup = g_strdup_printf ("<a href=\"%s\">%s</a>", uri, utf8_name);
+ gtk_label_set_markup (GTK_LABEL (label), markup);
+
+ g_free (markup);
g_free (utf8_name);
+ g_free (uri);
g_object_unref (parent);
/**/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]