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:
11216eb
)
systemadm: display dependencies sorted
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Thu, 3 Mar 2011 00:30:08 +0000
(
01:30
+0100)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Mon, 19 Sep 2011 23:06:28 +0000
(
01:06
+0200)
src/systemadm.vala
patch
|
blob
|
history
diff --git
a/src/systemadm.vala
b/src/systemadm.vala
index c893da01da1fbc56f765fd70abff7f20c2a5666b..088ba26be9fda31981107e73444fd228312f221f 100644
(file)
--- a/
src/systemadm.vala
+++ b/
src/systemadm.vala
@@
-458,6
+458,10
@@
public class MainWindow : Window {
}
public string make_dependency_string(string? prefix, string word, string[] dependencies) {
+ Gee.Collection<unowned string> sorted = new Gee.TreeSet<string>();
+ foreach (string i in dependencies)
+ sorted.add(i);
+
bool first = true;
string r;
@@
-466,7
+470,7
@@
public class MainWindow : Window {
else
r = prefix;
- foreach (string i in
dependencies
) {
+ foreach (string i in
sorted
) {
if (r != "")
r += first ? "\n" : ",";