aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChris Toshok <toshok@src.gnome.org>2000-04-13 16:44:32 +0800
committerChris Toshok <toshok@src.gnome.org>2000-04-13 16:44:32 +0800
commitbc162e949ed126225cc371ddded34451a93a6bfd (patch)
tree2fd9e29f495df355d10f412f22be17316c5392e5 /addressbook
parent2dc80fd41c989f5dfe83f22bf530ea27557ae54e (diff)
downloadgsoc2013-evolution-bc162e949ed126225cc371ddded34451a93a6bfd.tar
gsoc2013-evolution-bc162e949ed126225cc371ddded34451a93a6bfd.tar.gz
gsoc2013-evolution-bc162e949ed126225cc371ddded34451a93a6bfd.tar.bz2
gsoc2013-evolution-bc162e949ed126225cc371ddded34451a93a6bfd.tar.lz
gsoc2013-evolution-bc162e949ed126225cc371ddded34451a93a6bfd.tar.xz
gsoc2013-evolution-bc162e949ed126225cc371ddded34451a93a6bfd.tar.zst
gsoc2013-evolution-bc162e949ed126225cc371ddded34451a93a6bfd.zip
reflect the title attribute in the contact editor. (extract_info): same.
* addressbook/contact-editor/e-contact-editor.c (fill_in_info): reflect the title attribute in the contact editor. (extract_info): same. svn path=/trunk/; revision=2420
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/contact-editor/e-contact-editor.c13
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c13
2 files changed, 26 insertions, 0 deletions
diff --git a/addressbook/contact-editor/e-contact-editor.c b/addressbook/contact-editor/e-contact-editor.c
index 6f2431d110..ebd3611f2e 100644
--- a/addressbook/contact-editor/e-contact-editor.c
+++ b/addressbook/contact-editor/e-contact-editor.c
@@ -582,6 +582,7 @@ fill_in_info(EContactEditor *editor)
ECardList *address_list;
ECardList *phone_list;
ECardList *email_list;
+ char *title;
char *url;
const ECardDeliveryAddress *address;
const ECardPhone *phone;
@@ -597,6 +598,7 @@ fill_in_info(EContactEditor *editor)
"phone", &phone_list,
"email", &email_list,
"url", &url,
+ "title", &title,
NULL);
position = 0;
@@ -637,6 +639,12 @@ fill_in_info(EContactEditor *editor)
gtk_editable_delete_text(editable, 0, -1);
if (url)
gtk_editable_insert_text(editable, url, strlen(url), &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);
}
}
@@ -650,6 +658,7 @@ extract_info(EContactEditor *editor)
ECardList *phone_list;
ECardList *email_list;
char *url;
+ char *title;
const ECardDeliveryAddress *address;
const ECardPhone *phone;
ECardDeliveryAddress *address_copy;
@@ -722,9 +731,13 @@ extract_info(EContactEditor *editor)
editable = GTK_EDITABLE(glade_xml_get_widget(editor->gui, "entry-web"));
url = gtk_editable_get_chars(editable, 0, -1);
+ editable = GTK_EDITABLE(glade_xml_get_widget(editor->gui, "entry-jobtitle"));
+ title = gtk_editable_get_chars(editable, 0, -1);
+
gtk_object_set(GTK_OBJECT(card),
"full_name", fname,
"url", url,
+ "title", title,
NULL);
g_free(fname);
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index 6f2431d110..ebd3611f2e 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -582,6 +582,7 @@ fill_in_info(EContactEditor *editor)
ECardList *address_list;
ECardList *phone_list;
ECardList *email_list;
+ char *title;
char *url;
const ECardDeliveryAddress *address;
const ECardPhone *phone;
@@ -597,6 +598,7 @@ fill_in_info(EContactEditor *editor)
"phone", &phone_list,
"email", &email_list,
"url", &url,
+ "title", &title,
NULL);
position = 0;
@@ -637,6 +639,12 @@ fill_in_info(EContactEditor *editor)
gtk_editable_delete_text(editable, 0, -1);
if (url)
gtk_editable_insert_text(editable, url, strlen(url), &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);
}
}
@@ -650,6 +658,7 @@ extract_info(EContactEditor *editor)
ECardList *phone_list;
ECardList *email_list;
char *url;
+ char *title;
const ECardDeliveryAddress *address;
const ECardPhone *phone;
ECardDeliveryAddress *address_copy;
@@ -722,9 +731,13 @@ extract_info(EContactEditor *editor)
editable = GTK_EDITABLE(glade_xml_get_widget(editor->gui, "entry-web"));
url = gtk_editable_get_chars(editable, 0, -1);
+ editable = GTK_EDITABLE(glade_xml_get_widget(editor->gui, "entry-jobtitle"));
+ title = gtk_editable_get_chars(editable, 0, -1);
+
gtk_object_set(GTK_OBJECT(card),
"full_name", fname,
"url", url,
+ "title", title,
NULL);
g_free(fname);