[gnome-contacts/new-design] Add Field.set_edit_mode (row) vfunc
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/new-design] Add Field.set_edit_mode (row) vfunc
- Date: Thu, 15 Dec 2011 09:37:10 +0000 (UTC)
commit a5ba5123763f9b1457cadd6a44acee026a64bce6
Author: Alexander Larsson <alexl redhat com>
Date: Mon Dec 12 22:05:36 2011 +0100
Add Field.set_edit_mode (row) vfunc
src/contacts-contact-pane.vala | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index f7d462a..de92f09 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -421,13 +421,12 @@ public class Contacts.FieldRow : Contacts.Row {
base (group);
clickable = new Clickable (this);
- clickable.clicked.connect (() => {
- print ("clicked!\n");
- });
-
+ clickable.clicked.connect ( () => { this.clicked (); } );
start = 0;
}
+ public signal void clicked ();
+
public override void realize () {
base.realize ();
clickable.realize_for (event_window);
@@ -557,8 +556,16 @@ public class Contacts.PersonaSheet : Grid {
public FieldRow new_row () {
var row = new FieldRow (sheet.pane.row_group);
this.add (row);
+
+ row.clicked.connect( () => {
+ this.set_edit_mode (row);
+ });
+
return row;
}
+
+ public virtual void set_edit_mode (FieldRow row) {
+ }
}
class LinkField : Field {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]