chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a3c159a
)
systemadm: filter on swaps, paths, and timers too.
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Mon, 28 Feb 2011 09:35:23 +0000
(10:35 +0100)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Mon, 19 Sep 2011 23:06:01 +0000
(
01:06
+0200)
src/systemadm.vala
patch
|
blob
|
history
diff --git
a/src/systemadm.vala
b/src/systemadm.vala
index e78fd7c4d40362597ebfd841546f93fc072099e4..6126eca22164e452e1cbb9d2832f66a95cb9dbd0 100644
(file)
--- 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);
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("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("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);
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:
case 0:
return true;
case 1:
- return id.has_suffix(".
service
");
+ return id.has_suffix(".
target
");
case 2:
case 2:
- return id.has_suffix(".s
ocket
");
+ return id.has_suffix(".s
ervice
");
case 3:
return id.has_suffix(".device");
case 4:
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:
case 5:
return id.has_suffix(".automount");
case 6:
- return id.has_suffix(".
target
");
+ return id.has_suffix(".
swap
");
case 7:
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);
return id.has_suffix(".snapshot");
default:
assert(false);