[gnome-contacts: 3/8] Add ListBox.select_child method
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts: 3/8] Add ListBox.select_child method
- Date: Tue, 15 May 2012 12:30:36 +0000 (UTC)
commit 09c770f5148782e5538f6988273309ff63d74272
Author: Alexander Larsson <alexl redhat com>
Date: Tue May 15 14:10:28 2012 +0200
Add ListBox.select_child method
src/listbox/egg-list-box.vala | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/listbox/egg-list-box.vala b/src/listbox/egg-list-box.vala
index 505b871..d0db9dd 100644
--- a/src/listbox/egg-list-box.vala
+++ b/src/listbox/egg-list-box.vala
@@ -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) {
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]