[gnome-contacts/new-design] Allow activation of FieldRows



commit 955f1ee8d225453b0d971ec824394b1304bbeb04
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Dec 14 01:06:33 2011 +0100

    Allow activation of FieldRows

 src/contacts-contact-pane.vala |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 0b3c61f..03fdfa2 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -425,6 +425,9 @@ public class Contacts.FieldRow : Contacts.Row {
     clickable.set_focus_on_click (true);
     clickable.clicked.connect ( () => { this.clicked (); } );
     start = 0;
+
+    /* This should really be in class construct, but that doesn't seem to work... */
+    activate_signal = GLib.Signal.lookup ("activate-row", typeof (FieldRow));
   }
 
   public void reset () {
@@ -433,6 +436,11 @@ public class Contacts.FieldRow : Contacts.Row {
 
   public signal void clicked ();
 
+  [CCode (action_signal = true)]
+  public virtual signal void activate_row () {
+    clickable.activate ();
+  }
+
   public override void realize () {
     base.realize ();
     clickable.realize_for (event_window);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]