[gnome-contacts/wip/sorted] Test child selection and activation signals
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/wip/sorted] Test child selection and activation signals
- Date: Fri, 11 May 2012 14:50:55 +0000 (UTC)
commit 3076139b41152f56ad10594b29bf3220162e75a9
Author: Alexander Larsson <alexl redhat com>
Date: Fri May 11 14:29:06 2012 +0200
Test child selection and activation signals
src/test-sorted.vala | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/test-sorted.vala b/src/test-sorted.vala
index 4dded3b..5294585 100644
--- a/src/test-sorted.vala
+++ b/src/test-sorted.vala
@@ -82,6 +82,14 @@ main (string[] args) {
var sorted = new Sorted();
hbox.add (sorted);
+ sorted.child_activated.connect ( (child) => {
+ print ("activated %p\n", child);
+ });
+
+ sorted.child_selected.connect ( (child) => {
+ print ("selected %p\n", child);
+ });
+
var l = new Label ("blah4");
l.set_data ("sort_id", 4);
sorted.add (l);
@@ -109,7 +117,7 @@ main (string[] args) {
button.set_hexpand (false);
button.set_halign (Align.START);
sorted.add (button);
-
+
var vbox = new Box(Orientation.VERTICAL, 0);
hbox.add (vbox);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]