[gnome-contacts: 1/29] add get_child_at_y () public method
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts: 1/29] add get_child_at_y () public method
- Date: Thu, 16 Aug 2012 18:39:27 +0000 (UTC)
commit 360e782ad9d88c38b2ef66bb82e02baa9c7f63e6
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Jun 4 13:49:05 2012 +0200
add get_child_at_y () public method
egg-list-box.vala | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/egg-list-box.vala b/egg-list-box.vala
index c7f03ba..d786163 100644
--- a/egg-list-box.vala
+++ b/egg-list-box.vala
@@ -69,6 +69,15 @@ public class Egg.ListBox : Container {
return null;
}
+ public unowned Widget? get_child_at_y (int y){
+ unowned ChildInfo? child = find_child_at_y (y);
+
+ if (child == null)
+ return null;
+
+ return child.widget;
+ }
+
public void select_child (Widget? child) {
unowned ChildInfo? info = null;
if (child != null)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]