mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-31 04:58:58 +00:00
(split) Add ListBox.select_child method
This commit is contained in:
parent
744851ea2d
commit
35e07a8fc3
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue