diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-04-15 08:14:42 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-04-15 08:14:42 +0800 |
commit | 82e77d6d8e73f418ae75d975324dbfa59218c4cd (patch) | |
tree | 260698e8c301d03f914c8f755abceb6c5cb7530b /addressbook/contact-editor | |
parent | b8681b4d2546a139781f8f6aea05c0fd29343f30 (diff) | |
download | gsoc2013-evolution-82e77d6d8e73f418ae75d975324dbfa59218c4cd.tar gsoc2013-evolution-82e77d6d8e73f418ae75d975324dbfa59218c4cd.tar.gz gsoc2013-evolution-82e77d6d8e73f418ae75d975324dbfa59218c4cd.tar.bz2 gsoc2013-evolution-82e77d6d8e73f418ae75d975324dbfa59218c4cd.tar.lz gsoc2013-evolution-82e77d6d8e73f418ae75d975324dbfa59218c4cd.tar.xz gsoc2013-evolution-82e77d6d8e73f418ae75d975324dbfa59218c4cd.tar.zst gsoc2013-evolution-82e77d6d8e73f418ae75d975324dbfa59218c4cd.zip |
Added a note field.
2000-04-14 Christopher James Lahey <clahey@helixcode.com>
* addressbook/backend/ebook/e-card.c,
addressbook/backend/ebook/e-card.h,
addressbook/backend/pas/pas-backend-file.c,
addressbook/backend/pas/pas-backend-ldap.c,
addressbook/contact-editor/e-contact-editor.c: Added a note field.
From shell/ChangeLog:
2000-04-14 Christopher James Lahey <clahey@helixcode.com>
* e-shell-view.c: Made the left pane of the shell view not
autoresize.
svn path=/trunk/; revision=2444
Diffstat (limited to 'addressbook/contact-editor')
-rw-r--r-- | addressbook/contact-editor/e-contact-editor.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/addressbook/contact-editor/e-contact-editor.c b/addressbook/contact-editor/e-contact-editor.c index 2e0d2219a5..5461fe3993 100644 --- a/addressbook/contact-editor/e-contact-editor.c +++ b/addressbook/contact-editor/e-contact-editor.c @@ -584,6 +584,7 @@ fill_in_info(EContactEditor *editor) ECardList *email_list; char *title; char *url; + char *note; const ECardDeliveryAddress *address; const ECardPhone *phone; GtkEditable *editable; @@ -599,6 +600,7 @@ fill_in_info(EContactEditor *editor) "email", &email_list, "url", &url, "title", &title, + "note", ¬e, NULL); position = 0; @@ -645,6 +647,12 @@ fill_in_info(EContactEditor *editor) 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, "text-comments")); + gtk_editable_delete_text(editable, 0, -1); + if (note) + gtk_editable_insert_text(editable, note, strlen(note), &position); } } @@ -660,6 +668,7 @@ extract_info(EContactEditor *editor) ECardList *email_list; char *url; char *title; + char *note; const ECardDeliveryAddress *address; const ECardPhone *phone; ECardDeliveryAddress *address_copy; @@ -760,5 +769,13 @@ extract_info(EContactEditor *editor) NULL); g_free(title); + editable = GTK_EDITABLE(glade_xml_get_widget(editor->gui, "text-comments")); + note = gtk_editable_get_chars(editable, 0, -1); + if (note && *note) + gtk_object_set(GTK_OBJECT(card), + "note", note, + NULL); + g_free(note); + } } |