aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/contact-editor
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-04-15 08:14:42 +0800
committerChris Lahey <clahey@src.gnome.org>2000-04-15 08:14:42 +0800
commit82e77d6d8e73f418ae75d975324dbfa59218c4cd (patch)
tree260698e8c301d03f914c8f755abceb6c5cb7530b /addressbook/gui/contact-editor
parentb8681b4d2546a139781f8f6aea05c0fd29343f30 (diff)
downloadgsoc2013-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/gui/contact-editor')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index 2e0d2219a5..5461fe3993 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/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", &note,
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);
+
}
}