diff options
author | Eitan Isaacson <eitan@monotonous.org> | 2011-06-02 11:08:49 -0700 |
---|---|---|
committer | Eitan Isaacson <eitan@monotonous.org> | 2011-06-02 11:08:49 -0700 |
commit | 843bb24cc3383ff11d76f81f956ef2cfe7ce13cb (patch) | |
tree | e6a939b465b9a12f70212cbc396d33dc289e0eb6 /libcaribou/group-model.vala | |
parent | 33f0c869983b390ae4ba53c60f6cb17389c6739d (diff) | |
download | caribou-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/group-model.vala')
-rw-r--r-- | libcaribou/group-model.vala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libcaribou/group-model.vala b/libcaribou/group-model.vala index 5c20fd4..6b578d4 100644 --- a/libcaribou/group-model.vala +++ b/libcaribou/group-model.vala @@ -33,8 +33,8 @@ namespace Caribou { } } - public List<string> get_levels () { - return (List<string>) collection_to_string_list (levels.keys); + public string[] get_levels () { + return (string[]) levels.keys.to_array (); } public LevelModel get_level (string level_name) { @@ -48,9 +48,9 @@ namespace Caribou { active_level = new_level; } - public List<IKeyboardObject> get_children () { - return (List<IKeyboardObject>) - collection_to_object_list (levels.values); + public IKeyboardObject[] get_children () { + return (IKeyboardObject[]) levels.values.to_array (); } + } }
\ No newline at end of file |