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