(split) Add ListBox.select_child method

This commit is contained in:
Alexander Larsson 2012-05-15 14:10:28 +02:00
parent 744851ea2d
commit 35e07a8fc3

View file

@ -59,6 +59,13 @@ public class Egg.ListBox : Container {
return null;
}
public void select_child (Widget? child) {
unowned ChildInfo? info = null;
if (child != null)
info = child_hash.get (child);
update_selected (info);
}
public virtual signal void child_selected (Widget? child) {
}