diff options
author | Eitan Isaacson <eitan@monotonous.org> | 2011-06-02 10:45:14 -0700 |
---|---|---|
committer | Eitan Isaacson <eitan@monotonous.org> | 2011-06-02 11:03:12 -0700 |
commit | 33f0c869983b390ae4ba53c60f6cb17389c6739d (patch) | |
tree | 658e6fa3b086ef88c5a932fab393b2f5d3a11c40 /libcaribou/row-model.vala | |
parent | 8bd157c10cb64f3cdc9ac225998e3d3eee5b1ee2 (diff) | |
download | caribou-33f0c869983b390ae4ba53c60f6cb17389c6739d.tar.gz |
libcaribou: Use GLib.List instead of arrays
Diffstat (limited to 'libcaribou/row-model.vala')
-rw-r--r-- | libcaribou/row-model.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcaribou/row-model.vala b/libcaribou/row-model.vala index 7aac08e..4020fe3 100644 --- a/libcaribou/row-model.vala +++ b/libcaribou/row-model.vala @@ -27,8 +27,8 @@ namespace Caribou { column.add_key (key); } - public ColumnModel[] get_columns () { - return (ColumnModel[]) columns.to_array (); + public List<ColumnModel> get_columns () { + return (List<ColumnModel>) get_children (); } public override IScannableItem[] get_scan_children () { @@ -38,8 +38,8 @@ namespace Caribou { return (IScannableItem[]) columns.to_array (); } - public IKeyboardObject[] get_children () { - return (IKeyboardObject[]) get_columns (); + public List<IKeyboardObject> get_children () { + return (List<IKeyboardObject>) collection_to_object_list (columns); } } } |