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