aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-04-08 23:33:01 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-04-08 23:33:01 +0800
commit448685bd5dee4b2ac08e1139b2ca43b98f2e97cf (patch)
treeead2f390a690cbaefe8bf5a1e990dfb924420a98 /addressbook
parent72797decc12602b181f69dba7c54df7a0d1b9326 (diff)
downloadgsoc2013-evolution-448685bd5dee4b2ac08e1139b2ca43b98f2e97cf.tar
gsoc2013-evolution-448685bd5dee4b2ac08e1139b2ca43b98f2e97cf.tar.gz
gsoc2013-evolution-448685bd5dee4b2ac08e1139b2ca43b98f2e97cf.tar.bz2
gsoc2013-evolution-448685bd5dee4b2ac08e1139b2ca43b98f2e97cf.tar.lz
gsoc2013-evolution-448685bd5dee4b2ac08e1139b2ca43b98f2e97cf.tar.xz
gsoc2013-evolution-448685bd5dee4b2ac08e1139b2ca43b98f2e97cf.tar.zst
gsoc2013-evolution-448685bd5dee4b2ac08e1139b2ca43b98f2e97cf.zip
Forgot to commit some bits.
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c9
-rw-r--r--addressbook/gui/contact-editor/e-contact-quick-add.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index 38490aee72..3194eec943 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -3461,6 +3461,15 @@ expand_phone_toggle (EContactEditor *ce)
}
static void
+expand_mail_toggle (EContactEditor *ce)
+{
+ GtkWidget *mail;
+
+ mail = e_builder_get_widget (ce->builder, "entry-email-4");
+ expand_mail (ce, !gtk_widget_get_visible (mail));
+}
+
+static void
e_contact_editor_init (EContactEditor *e_contact_editor)
{
GtkBuilder *builder;
diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c
index 0242d20c02..0feced4ca0 100644
--- a/addressbook/gui/contact-editor/e-contact-quick-add.c
+++ b/addressbook/gui/contact-editor/e-contact-quick-add.c
@@ -608,7 +608,7 @@ e_contact_quick_add_email (const gchar *email, EContactQuickAddCallback cb, gpoi
name = g_strndup (email, lt - email);
addr = g_strndup (lt + 1, gt - lt - 1);
} else {
- addr = email;
+ addr = g_strdup (email);
}
e_contact_quick_add (name, addr, cb, closure);