[gnome-contacts/new-design] Add Row.get_children_at()
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/new-design] Add Row.get_children_at()
- Date: Thu, 15 Dec 2011 09:37:05 +0000 (UTC)
commit ed914172ee87adf3e6ab637fb6ef58a61a1689b9
Author: Alexander Larsson <alexl redhat com>
Date: Mon Dec 12 21:15:24 2011 +0100
Add Row.get_children_at()
src/contacts-row.vala | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-row.vala b/src/contacts-row.vala
index 1bfd529..d09bb7f 100644
--- a/src/contacts-row.vala
+++ b/src/contacts-row.vala
@@ -359,6 +359,19 @@ public class Contacts.Row : Container {
}
}
+ public Gee.List<Widget> get_children_at (int col, int row) {
+ var l = new Gee.ArrayList<Widget>();
+
+ if (row < n_rows && col < group.n_columns) {
+ Child *child_info = &row_children[col, row];
+ for (int i = 0; child_info.widgets != null && i < child_info.widgets.length; i++) {
+ l.add (child_info.widgets[i]);
+ }
+ }
+
+ return l;
+ }
+
public override void forall_internal (bool include_internals,
Gtk.Callback callback) {
for (int row = 0; row < n_rows; row++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]