aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-09-26 17:25:02 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-26 18:56:07 +0800
commit824f5db34a3b291bbaf1ce515e1e632b81dda0af (patch)
tree0bf1a597cbd5c021b09730ddc559e3dae6422a10 /addressbook
parent959921759213d931f0bfd0c29ce8274f3fb88f8a (diff)
downloadgsoc2013-evolution-824f5db34a3b291bbaf1ce515e1e632b81dda0af.tar
gsoc2013-evolution-824f5db34a3b291bbaf1ce515e1e632b81dda0af.tar.gz
gsoc2013-evolution-824f5db34a3b291bbaf1ce515e1e632b81dda0af.tar.bz2
gsoc2013-evolution-824f5db34a3b291bbaf1ce515e1e632b81dda0af.tar.lz
gsoc2013-evolution-824f5db34a3b291bbaf1ce515e1e632b81dda0af.tar.xz
gsoc2013-evolution-824f5db34a3b291bbaf1ce515e1e632b81dda0af.tar.zst
gsoc2013-evolution-824f5db34a3b291bbaf1ce515e1e632b81dda0af.zip
Bug #637673 - Make phone fields one row and auto-expand when needed
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index 6ce9524afc..ea696f88b8 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -1327,7 +1327,7 @@ expand_phone (EContactEditor *editor,
gboolean expanded)
{
const gchar *names[] = {
- "entry-phone-2", "combobox-phone-2",
+ "entry-phone-3", "combobox-phone-3",
"entry-phone-4", "combobox-phone-4",
"table-phone-extended", NULL
};
@@ -1401,7 +1401,7 @@ fill_in_phone_record (EContactEditor *editor,
phone_type >= 0 ? phone_type : phones_default[record - 1]);
set_entry_text (editor, GTK_ENTRY (phone_entry), phone ? phone : "");
- if (phone && *phone && record >= 5)
+ if (phone && *phone && record >= 3)
expand_phone (editor, TRUE);
}