[gnome-contacts] Fix set type for email in new contact dialog



commit a384b1ccc1f9a4a7dd75d75431495ce5c28f32d7
Author: Fernando Fernandez <fernando softwareperonista com ar>
Date:   Sun Jan 26 23:53:36 2014 -0300

    Fix set type for email in new contact dialog
    
    Use TypeSet.email for email entry_combo.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722318

 src/contacts-new-contact-dialog.vala |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-new-contact-dialog.vala b/src/contacts-new-contact-dialog.vala
index c660843..fcb6689 100644
--- a/src/contacts-new-contact-dialog.vala
+++ b/src/contacts-new-contact-dialog.vala
@@ -98,7 +98,7 @@ public class Contacts.NewContactDialog : Dialog {
     email_entries = new Gee.ArrayList<Entry>();
     email_combos = new Gee.ArrayList<TypeCombo>();
 
-    pack_entry_combo (email_entries, email_combos, TypeSet.general, ref y);
+    pack_entry_combo (email_entries, email_combos, TypeSet.email, ref y);
 
     pack_spacing (12, ref y);
 
@@ -176,7 +176,11 @@ public class Contacts.NewContactDialog : Dialog {
     combos.add (combo);
     grid.attach (combo, 2, row, 1, 1);
 
-    combo.set_to ("HOME");
+    if ( type_set == TypeSet.email ) {
+       combo.set_to ("PERSONAL");
+    } else {
+       combo.set_to ("HOME");
+    }
 
     row++;
   }


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