aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/contact-list-editor/e-contact-list-model.h
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-06-26 05:51:17 +0800
committerChris Toshok <toshok@src.gnome.org>2001-06-26 05:51:17 +0800
commit9a1c55ede5e6aad25d0053b097dab47a66b479d1 (patch)
tree019f1b0c0b08dd5c8ae5240fe77559fdd47040c7 /addressbook/gui/contact-list-editor/e-contact-list-model.h
parent0296d70c6e207fa4c6acc14f6a0541b14028b64e (diff)
downloadgsoc2013-evolution-9a1c55ede5e6aad25d0053b097dab47a66b479d1.tar
gsoc2013-evolution-9a1c55ede5e6aad25d0053b097dab47a66b479d1.tar.gz
gsoc2013-evolution-9a1c55ede5e6aad25d0053b097dab47a66b479d1.tar.bz2
gsoc2013-evolution-9a1c55ede5e6aad25d0053b097dab47a66b479d1.tar.lz
gsoc2013-evolution-9a1c55ede5e6aad25d0053b097dab47a66b479d1.tar.xz
gsoc2013-evolution-9a1c55ede5e6aad25d0053b097dab47a66b479d1.tar.zst
gsoc2013-evolution-9a1c55ede5e6aad25d0053b097dab47a66b479d1.zip
change layout slightly, the icon no longer pushes everything to the left,
2001-06-25 Chris Toshok <toshok@ximian.com> * gui/contact-list-editor/contact-list-editor.glade: change layout slightly, the icon no longer pushes everything to the left, and make the buttons on the right smaller and more in line with the other widgets. * gui/contact-list-editor/e-contact-list-model.c (contact_list_value_at): return the SimpleAndString->string instead of querying the ecardsimple. (e_contact_list_model_init): initially allocate 10 of each type (email and simple). (e_contact_list_model_add_email): realloc if need be. (e_contact_list_model_add_card): same, and initialize the string displayed to be "[Name] [<email>]". (e_contact_list_model_remove_row): change for SimpleAndString. (contact_list_model_destroy): free our 2 arrays. * gui/contact-list-editor/e-contact-list-model.h: add alloc counts and the SimpleAndString struct. * gui/contact-list-editor/e-contact-list-editor.c: Helix Code => Ximian. (e_contact_list_editor_init): hook up d&d destination signals, and un-#if 0 the delete_event signal. (table_drag_motion_cb): new function. (table_drag_drop_cb): new function. (table_drag_data_received_cb): new function. (file_close_cb): new function. (verbs) uncomment the close verb. (close_dialog): new function. (app_delete_event_cb): new function. * gui/contact-list-editor/e-contact-list-editor.h: Helix Code => Ximian. svn path=/trunk/; revision=10494
Diffstat (limited to 'addressbook/gui/contact-list-editor/e-contact-list-model.h')
-rw-r--r--addressbook/gui/contact-list-editor/e-contact-list-model.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/addressbook/gui/contact-list-editor/e-contact-list-model.h b/addressbook/gui/contact-list-editor/e-contact-list-model.h
index da9be77b49..8665245501 100644
--- a/addressbook/gui/contact-list-editor/e-contact-list-model.h
+++ b/addressbook/gui/contact-list-editor/e-contact-list-model.h
@@ -16,13 +16,20 @@
typedef struct _EContactListModel EContactListModel;
typedef struct _EContactListModelClass EContactListModelClass;
+typedef struct {
+ ECardSimple *simple;
+ char *string;
+} SimpleAndString;
+
struct _EContactListModel {
ETableModel parent;
- ECardSimple **simples;
+ SimpleAndString **simples;
int simple_count;
+ int simple_alloc;
char **emails;
int email_count;
+ int email_alloc;
};