diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-07-08 00:14:27 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-07-08 00:14:27 +0800 |
commit | 661cc2d0ef7f97a064543032b088d5092c36b4cb (patch) | |
tree | dd22ad7aca692e439e66c55ce56968bff64fa8c9 /addressbook/gui/component/select-names/e-select-names.c | |
parent | a4a1a93648db15b869ee67a19b7aad1873b5f9c7 (diff) | |
download | gsoc2013-evolution-661cc2d0ef7f97a064543032b088d5092c36b4cb.tar gsoc2013-evolution-661cc2d0ef7f97a064543032b088d5092c36b4cb.tar.gz gsoc2013-evolution-661cc2d0ef7f97a064543032b088d5092c36b4cb.tar.bz2 gsoc2013-evolution-661cc2d0ef7f97a064543032b088d5092c36b4cb.tar.lz gsoc2013-evolution-661cc2d0ef7f97a064543032b088d5092c36b4cb.tar.xz gsoc2013-evolution-661cc2d0ef7f97a064543032b088d5092c36b4cb.tar.zst gsoc2013-evolution-661cc2d0ef7f97a064543032b088d5092c36b4cb.zip |
Since ELDAPServer->port is a char *, allocate a string with the number 389
2000-07-07 Christopher James Lahey <clahey@helixcode.com>
* gui/component/addressbook.c (new_server_cb): Since
ELDAPServer->port is a char *, allocate a string with the number
389 contained.
* gui/component/addressbook.c: Make the select names test test the
new code instead of the old way of getting to an ESelectNames
dialog.
* gui/component/select-names/e-select-names-manager.c: Coded
storing the model for each section, creating an entry and
returning it, and for activating the dialog. Wrote a bit of the
get_cards code, but not all of it.
* gui/component/select-names/e-select-names-model.c,
gui/component/select-names/e-select-names-model.h: Coded all of
the code needed to make ESelectNamesTextModel work (it doesn't
yet, but all the code should be there.) Removed
E_SELECT_NAMES_MODEL_DATA_TYPE_SEPARATION_MATERIAL.
* gui/component/select-names/e-select-names-table-model.c,
gui/component/select-names/e-select-names-text-model.c: Changed
these to compensate for removal of
E_SELECT_NAMES_MODEL_DATA_TYPE_SEPARATION_MATERIAL.
* gui/component/select-names/e-select-names-table-model.h,
gui/component/select-names/e-select-names-text-model.h: Fixed some
silly typos.
* gui/component/select-names/e-select-names.c,
gui/component/select-names/e-select-names.h: Added a parameter to
add_section that lets you specify the source ESelectNamesModel.
svn path=/trunk/; revision=3948
Diffstat (limited to 'addressbook/gui/component/select-names/e-select-names.c')
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c index c5791bb9bd..b5e366a953 100644 --- a/addressbook/gui/component/select-names/e-select-names.c +++ b/addressbook/gui/component/select-names/e-select-names.c @@ -28,6 +28,7 @@ #include <addressbook/gui/component/e-addressbook-model.h> #include <addressbook/gui/component/e-cardlist-model.h> #include <addressbook/backend/ebook/e-book.h> +#include "e-select-names-table-model.h" static void e_select_names_init (ESelectNames *card); static void e_select_names_class_init (ESelectNamesClass *klass); @@ -248,7 +249,7 @@ button_clicked(GtkWidget *button, ESelectNamesChild *child) } void -e_select_names_add_section(ESelectNames *e_select_names, char *name, char *id) +e_select_names_add_section(ESelectNames *e_select_names, char *name, char *id, ESelectNamesModel *source) { ESelectNamesChild *child; GtkWidget *button; @@ -288,7 +289,7 @@ e_select_names_add_section(ESelectNames *e_select_names, char *name, char *id) GTK_FILL, GTK_FILL, 0, 0); - model = e_cardlist_model_new(); + model = e_select_names_table_model_new(source); header = e_table_header_new (); cell_left_just = e_cell_text_new (model, NULL, GTK_JUSTIFY_LEFT); e_table_header_add_column (header, e_table_col_new (0, "Full Name", 1.0, 20, cell_left_just, |