summaryrefslogtreecommitdiff
path: root/libcaribou/level-model.vala
diff options
context:
space:
mode:
authorEitan Isaacson <eitan@monotonous.org>2011-06-02 11:08:49 -0700
committerEitan Isaacson <eitan@monotonous.org>2011-06-02 11:08:49 -0700
commit843bb24cc3383ff11d76f81f956ef2cfe7ce13cb (patch)
treee6a939b465b9a12f70212cbc396d33dc289e0eb6 /libcaribou/level-model.vala
parent33f0c869983b390ae4ba53c60f6cb17389c6739d (diff)
downloadcaribou-843bb24cc3383ff11d76f81f956ef2cfe7ce13cb.tar.gz
Revert "libcaribou: Use GLib.List instead of arrays"
gjs learned to cope with arrays. Let's not introduce GLists, Vala hates them. This reverts commit 33f0c869983b390ae4ba53c60f6cb17389c6739d.
Diffstat (limited to 'libcaribou/level-model.vala')
-rw-r--r--libcaribou/level-model.vala9
1 files changed, 5 insertions, 4 deletions
diff --git a/libcaribou/level-model.vala b/libcaribou/level-model.vala
index 6c041d8..0d209d3 100644
--- a/libcaribou/level-model.vala
+++ b/libcaribou/level-model.vala
@@ -30,8 +30,8 @@ namespace Caribou {
row.add_key (colnum, key);
}
- public List<RowModel> get_rows () {
- return (List<RowModel>) get_children ();
+ public RowModel[] get_rows () {
+ return (RowModel[]) rows.to_array ();
}
private void on_key_activated (KeyModel key) {
@@ -49,8 +49,9 @@ namespace Caribou {
return (IScannableItem[]) rows.to_array ();
}
- public List<IKeyboardObject> get_children () {
- return (List<IKeyboardObject>) collection_to_object_list (rows);
+ public IKeyboardObject[] get_children () {
+ return (IKeyboardObject[]) get_rows ();
}
+
}
}