aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/contact-editor/e-contact-editor.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-04-17 05:06:02 +0800
committerChris Lahey <clahey@src.gnome.org>2000-04-17 05:06:02 +0800
commitfc360f0fdfb7536aaa2bb7e7de6b0b67202f8641 (patch)
treed5a80b4954007f152372e87de801e4f180e53573 /addressbook/contact-editor/e-contact-editor.c
parent50c22a17f03ccdff5cd2363db96c7fd9f08abdb2 (diff)
downloadgsoc2013-evolution-fc360f0fdfb7536aaa2bb7e7de6b0b67202f8641.tar.gz
gsoc2013-evolution-fc360f0fdfb7536aaa2bb7e7de6b0b67202f8641.tar.zst
gsoc2013-evolution-fc360f0fdfb7536aaa2bb7e7de6b0b67202f8641.zip
Added orginizational unit, nickname, and internet free-busy fields.
2000-04-16 Christopher James Lahey <clahey@helixcode.com> * addressbook/backend/ebook/e-card.c, addressbook/backend/ebook/e-card.h, addressbook/backend/ebook/test-card.c, addressbook/backend/pas/pas-backend-file.c, addressbook/contact-editor/e-contact-editor.c: Added orginizational unit, nickname, and internet free-busy fields. * addressbook/contact-editor/contact-editor.glade: Renamed some incorrectly named fields. svn path=/trunk/; revision=2464
Diffstat (limited to 'addressbook/contact-editor/e-contact-editor.c')
-rw-r--r--addressbook/contact-editor/e-contact-editor.c51
1 files changed, 51 insertions, 0 deletions
diff --git a/addressbook/contact-editor/e-contact-editor.c b/addressbook/contact-editor/e-contact-editor.c
index 74f7e06345..2bb76cebe1 100644
--- a/addressbook/contact-editor/e-contact-editor.c
+++ b/addressbook/contact-editor/e-contact-editor.c
@@ -584,8 +584,11 @@ fill_in_info(EContactEditor *editor)
ECardList *email_list;
char *title;
char *org;
+ char *org_unit;
char *url;
char *role;
+ char *nickname;
+ char *fburl;
char *note;
const ECardDeliveryAddress *address;
const ECardPhone *phone;
@@ -603,8 +606,11 @@ fill_in_info(EContactEditor *editor)
"email", &email_list,
"url", &url,
"org", &org,
+ "org_unit", &org_unit,
"title", &title,
"role", &role,
+ "nickname", &nickname,
+ "fburl", &fburl,
"note", &note,
"birth_date", &bday,
NULL);
@@ -655,12 +661,30 @@ fill_in_info(EContactEditor *editor)
gtk_editable_insert_text(editable, org, strlen(org), &position);
position = 0;
+ editable = GTK_EDITABLE(glade_xml_get_widget(editor->gui, "entry-department"));
+ gtk_editable_delete_text(editable, 0, -1);
+ if (org_unit)
+ gtk_editable_insert_text(editable, org_unit, strlen(org_unit), &position);
+
+ position = 0;
editable = GTK_EDITABLE(glade_xml_get_widget(editor->gui, "entry-jobtitle"));
gtk_editable_delete_text(editable, 0, -1);
if (title)
gtk_editable_insert_text(editable, title, strlen(title), &position);
position = 0;
+ editable = GTK_EDITABLE(glade_xml_get_widget(editor->gui, "entry-nickname"));
+ gtk_editable_delete_text(editable, 0, -1);
+ if (nickname)
+ gtk_editable_insert_text(editable, nickname, strlen(nickname), &position);
+
+ position = 0;
+ editable = GTK_EDITABLE(glade_xml_get_widget(editor->gui, "entry-fburl"));
+ gtk_editable_delete_text(editable, 0, -1);
+ if (fburl)
+ gtk_editable_insert_text(editable, fburl, strlen(fburl), &position);
+
+ position = 0;
editable = GTK_EDITABLE(glade_xml_get_widget(editor->gui, "entry-profession"));
gtk_editable_delete_text(editable, 0, -1);
if (role)
@@ -698,8 +722,11 @@ extract_info(EContactEditor *editor)
ECardList *email_list;
char *url;
char *org;
+ char *org_unit;
char *title;
char *role;
+ char *nickname;
+ char *fburl;
char *note;
const ECardDeliveryAddress *address;
const ECardPhone *phone;
@@ -805,6 +832,14 @@ extract_info(EContactEditor *editor)
NULL);
g_free(org);
+ editable = GTK_EDITABLE(glade_xml_get_widget(editor->gui, "entry-department"));
+ org_unit = gtk_editable_get_chars(editable, 0, -1);
+ if (org_unit && *org_unit)
+ gtk_object_set(GTK_OBJECT(card),
+ "org_unit", org_unit,
+ NULL);
+ g_free(org_unit);
+
editable = GTK_EDITABLE(glade_xml_get_widget(editor->gui, "entry-jobtitle"));
title = gtk_editable_get_chars(editable, 0, -1);
if (title && *title)
@@ -821,6 +856,22 @@ extract_info(EContactEditor *editor)
NULL);
g_free(role);
+ editable = GTK_EDITABLE(glade_xml_get_widget(editor->gui, "entry-nickname"));
+ nickname = gtk_editable_get_chars(editable, 0, -1);
+ if (nickname && *nickname)
+ gtk_object_set(GTK_OBJECT(card),
+ "nickname", nickname,
+ NULL);
+ g_free(nickname);
+
+ editable = GTK_EDITABLE(glade_xml_get_widget(editor->gui, "entry-fburl"));
+ fburl = gtk_editable_get_chars(editable, 0, -1);
+ if (fburl && *fburl)
+ gtk_object_set(GTK_OBJECT(card),
+ "fburl", fburl,
+ NULL);
+ g_free(fburl);
+
editable = GTK_EDITABLE(glade_xml_get_widget(editor->gui, "text-comments"));
note = gtk_editable_get_chars(editable, 0, -1);
if (note && *note)