From 07ded1e8ba9c47f02d2590f1a8e8aedbfe4a5bff Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 20 May 2010 02:31:57 +0200 Subject: [PATCH] systemadm: make fragment path a clickable link --- src/systemadm.vala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/systemadm.vala b/src/systemadm.vala index bd0062a0..3f1cf9e1 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("" + unit.fragment_path + "" ); + else + unit_fragment_path_label.set_markup_or_na(null); uint64 t = unit.active_enter_timestamp; if (t > 0) { -- 2.39.5