From bc162e949ed126225cc371ddded34451a93a6bfd Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 13 Apr 2000 08:44:32 +0000 Subject: 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 --- addressbook/contact-editor/e-contact-editor.c | 13 +++++++++++++ addressbook/gui/contact-editor/e-contact-editor.c | 13 +++++++++++++ 2 files changed, 26 insertions(+) (limited to 'addressbook') 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); -- cgit v1.2.3