From e377ad0d11e1bd9954c6084956494ebbf41b4486 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 28 Feb 2011 10:35:23 +0100 Subject: [PATCH] systemadm: filter on swaps, paths, and timers too. --- src/systemadm.vala | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/systemadm.vala b/src/systemadm.vala index e78fd7c4..6126eca2 100644 --- a/src/systemadm.vala +++ b/src/systemadm.vala @@ -138,13 +138,16 @@ public class MainWindow : Window { type_hbox.pack_start(unit_type_combo_box, false, false, 0); unit_vbox.pack_start(type_hbox, false, false, 0); - unit_type_combo_box.append_text("Show All"); + unit_type_combo_box.append_text("All unit types"); + unit_type_combo_box.append_text("Targets"); unit_type_combo_box.append_text("Services"); - unit_type_combo_box.append_text("Sockets"); unit_type_combo_box.append_text("Devices"); unit_type_combo_box.append_text("Mounts"); unit_type_combo_box.append_text("Automounts"); - unit_type_combo_box.append_text("Targets"); + unit_type_combo_box.append_text("Swaps"); + unit_type_combo_box.append_text("Sockets"); + unit_type_combo_box.append_text("Paths"); + unit_type_combo_box.append_text("Timers"); unit_type_combo_box.append_text("Snapshots"); unit_type_combo_box.set_active(0); // Show All unit_type_combo_box.changed.connect(unit_type_changed); @@ -884,9 +887,9 @@ public class MainWindow : Window { case 0: return true; case 1: - return id.has_suffix(".service"); + return id.has_suffix(".target"); case 2: - return id.has_suffix(".socket"); + return id.has_suffix(".service"); case 3: return id.has_suffix(".device"); case 4: @@ -894,8 +897,14 @@ public class MainWindow : Window { case 5: return id.has_suffix(".automount"); case 6: - return id.has_suffix(".target"); + return id.has_suffix(".swap"); case 7: + return id.has_suffix(".socket"); + case 8: + return id.has_suffix(".path"); + case 9: + return id.has_suffix(".timer"); + case 10: return id.has_suffix(".snapshot"); default: assert(false); -- 2.39.5