summaryrefslogtreecommitdiff
path: root/libcaribou/level-model.vala
diff options
context:
space:
mode:
authorEitan Isaacson <eitan@monotonous.org>2011-05-31 12:09:24 -0700
committerEitan Isaacson <eitan@monotonous.org>2011-06-01 12:47:01 -0700
commit6ce0faf5d814a8b791427ac20aaa8b87a46c77eb (patch)
tree131f127ccd4635f052f257d4b4677ea68a835b00 /libcaribou/level-model.vala
parent22ed36c74597159cf4866abee35bb898127dea5a (diff)
downloadcaribou-6ce0faf5d814a8b791427ac20aaa8b87a46c77eb.tar.gz
Added IKeyboardObject interface, and have all model classes implement it.
Diffstat (limited to 'libcaribou/level-model.vala')
-rw-r--r--libcaribou/level-model.vala7
1 files changed, 6 insertions, 1 deletions
diff --git a/libcaribou/level-model.vala b/libcaribou/level-model.vala
index 65db469..127e5d9 100644
--- a/libcaribou/level-model.vala
+++ b/libcaribou/level-model.vala
@@ -1,7 +1,7 @@
using GLib;
namespace Caribou {
- public class LevelModel : ScannableGroup {
+ public class LevelModel : ScannableGroup, IKeyboardObject {
public signal void level_toggled (string new_level);
public string mode { get; private set; default = ""; }
@@ -60,5 +60,10 @@ namespace Caribou {
else
return (IScannableItem[]) rows.to_array ();
}
+
+ public IKeyboardObject[] get_children () {
+ return (IKeyboardObject[]) get_rows ();
+ }
+
}
}