summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-20 02:31:57 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-20 02:31:57 +0200
commit07ded1e8ba9c47f02d2590f1a8e8aedbfe4a5bff (patch)
tree524ec65c932bbe127af08e8f1fae29773b533375
parent0d26c91071adb33a3c25f075dcbacb85e1469d53 (diff)
systemadm: make fragment path a clickable link
-rw-r--r--src/systemadm.vala7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/systemadm.vala b/src/systemadm.vala
index bd0062a069..3f1cf9e113 100644
--- a/src/systemadm.vala
+++ b/src/systemadm.vala
@@ -217,6 +217,8 @@ public class MainWindow : Window {
unit_dependency_label.set_selectable(false);
unit_dependency_label.activate_link += on_activate_link;
+ unit_fragment_path_label.set_track_visited_links(false);
+
Table unit_table = new Table(8, 6, false);
unit_table.set_row_spacings(6);
unit_table.set_border_width(0);
@@ -500,7 +502,10 @@ public class MainWindow : Window {
unit_load_state_label.set_text_or_na(unit.load_state);
unit_active_state_label.set_text_or_na(unit.active_state);
unit_sub_state_label.set_text_or_na(unit.sub_state);
- unit_fragment_path_label.set_text_or_na(unit.fragment_path);
+ if (unit.fragment_path != null)
+ unit_fragment_path_label.set_markup_or_na("<a href=\"file://" + unit.fragment_path +"\">" + unit.fragment_path + "</a>" );
+ else
+ unit_fragment_path_label.set_markup_or_na(null);
uint64 t = unit.active_enter_timestamp;
if (t > 0) {