[gnome-contacts/new-design] Add helper to create entry + type combo
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/new-design] Add helper to create entry + type combo
- Date: Thu, 15 Dec 2011 09:38:36 +0000 (UTC)
commit 3dd56d0ef6d6f1c2c0f29ad78c3a3aa533c994f6
Author: Alexander Larsson <alexl redhat com>
Date: Tue Dec 13 22:28:27 2011 +0100
Add helper to create entry + type combo
src/contacts-contact-pane.vala | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 3aebcf9..20b6aab 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -518,7 +518,27 @@ public class Contacts.FieldRow : Contacts.Row {
grid.add (l);
pack (grid);
+ }
+
+ public void pack_entry_detail_combo (string text, AbstractFieldDetails detail, TypeSet type_set, out Entry entry, out TypeCombo combo) {
+ var grid = new Grid ();
+ grid.set_column_spacing (16);
+
+ entry = new Entry ();
+ entry.set_text (text);
+ entry.set_hexpand (true);
+ entry.set_halign (Align.FILL);
+ grid.add (entry);
+ combo = new TypeCombo (type_set);
+ combo.set_hexpand (false);
+ combo.set_halign (Align.END);
+ combo.set_active (detail);
+
+ grid.set_halign (Align.FILL);
+ grid.add (combo);
+
+ pack (grid);
}
public Entry pack_entry (string s) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]