summaryrefslogtreecommitdiff
path: root/libcaribou/level-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/level-model.vala
parent8bd157c10cb64f3cdc9ac225998e3d3eee5b1ee2 (diff)
downloadcaribou-33f0c869983b390ae4ba53c60f6cb17389c6739d.tar.gz
libcaribou: Use GLib.List instead of arrays
Diffstat (limited to 'libcaribou/level-model.vala')
-rw-r--r--libcaribou/level-model.vala9
1 files changed, 4 insertions, 5 deletions
diff --git a/libcaribou/level-model.vala b/libcaribou/level-model.vala
index 0d209d3..6c041d8 100644
--- a/libcaribou/level-model.vala
+++ b/libcaribou/level-model.vala
@@ -30,8 +30,8 @@ namespace Caribou {
row.add_key (colnum, key);
}
- public RowModel[] get_rows () {
- return (RowModel[]) rows.to_array ();
+ public List<RowModel> get_rows () {
+ return (List<RowModel>) get_children ();
}
private void on_key_activated (KeyModel key) {
@@ -49,9 +49,8 @@ namespace Caribou {
return (IScannableItem[]) rows.to_array ();
}
- public IKeyboardObject[] get_children () {
- return (IKeyboardObject[]) get_rows ();
+ public List<IKeyboardObject> get_children () {
+ return (List<IKeyboardObject>) collection_to_object_list (rows);
}
-
}
}