summaryrefslogtreecommitdiff
path: root/libcaribou/group-model.vala
diff options
context:
space:
mode:
authorEitan Isaacson <eitan@monotonous.org>2011-06-02 10:45:14 -0700
committerEitan Isaacson <eitan@monotonous.org>2011-06-02 11:03:12 -0700
commit33f0c869983b390ae4ba53c60f6cb17389c6739d (patch)
tree658e6fa3b086ef88c5a932fab393b2f5d3a11c40 /libcaribou/group-model.vala
parent8bd157c10cb64f3cdc9ac225998e3d3eee5b1ee2 (diff)
downloadcaribou-33f0c869983b390ae4ba53c60f6cb17389c6739d.tar.gz
libcaribou: Use GLib.List instead of arrays
Diffstat (limited to 'libcaribou/group-model.vala')
-rw-r--r--libcaribou/group-model.vala10
1 files changed, 5 insertions, 5 deletions
diff --git a/libcaribou/group-model.vala b/libcaribou/group-model.vala
index 6b578d4..5c20fd4 100644
--- a/libcaribou/group-model.vala
+++ b/libcaribou/group-model.vala
@@ -33,8 +33,8 @@ namespace Caribou {
}
}
- public string[] get_levels () {
- return (string[]) levels.keys.to_array ();
+ public List<string> get_levels () {
+ return (List<string>) collection_to_string_list (levels.keys);
}
public LevelModel get_level (string level_name) {
@@ -48,9 +48,9 @@ namespace Caribou {
active_level = new_level;
}
- public IKeyboardObject[] get_children () {
- return (IKeyboardObject[]) levels.values.to_array ();
+ public List<IKeyboardObject> get_children () {
+ return (List<IKeyboardObject>)
+ collection_to_object_list (levels.values);
}
-
}
} \ No newline at end of file