diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-07-09 18:42:20 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-07-09 18:42:20 +0800 |
commit | abd6ce3b53f239441f5a655a362d057e16622b62 (patch) | |
tree | 5ba8625433f5ad981de03e71e8e1c8668423de3f /addressbook/gui/component/select-names/e-select-names-model.c | |
parent | 4bd225790a301c68d7a5df24617f071881d705b9 (diff) | |
download | gsoc2013-evolution-abd6ce3b53f239441f5a655a362d057e16622b62.tar gsoc2013-evolution-abd6ce3b53f239441f5a655a362d057e16622b62.tar.gz gsoc2013-evolution-abd6ce3b53f239441f5a655a362d057e16622b62.tar.bz2 gsoc2013-evolution-abd6ce3b53f239441f5a655a362d057e16622b62.tar.lz gsoc2013-evolution-abd6ce3b53f239441f5a655a362d057e16622b62.tar.xz gsoc2013-evolution-abd6ce3b53f239441f5a655a362d057e16622b62.tar.zst gsoc2013-evolution-abd6ce3b53f239441f5a655a362d057e16622b62.zip |
Removed unused do_nothing_cb function.
2000-07-09 Christopher James Lahey <clahey@helixcode.com>
* gui/component/addressbook.c: Removed unused do_nothing_cb
function.
* gui/component/select-names/e-select-names-manager.c,
gui/component/select-names/e-select-names-manager.h: Made the OK
and Cancel buttons in the ESelectNames dialog we create work
properly.
* gui/component/select-names/e-select-names-model.c,
gui/component/select-names/e-select-names-model.h: Added
e_select_names_model_duplicate.
* gui/component/select-names/e-select-names-text-model.c: Made the
text be set correctly if there's already data in the source when
the text model is created.
* gui/component/select-names/e-select-names.c,
gui/component/select-names/e-select-names.h: Removed handling of
the buttons (the user of this dialog will have to handle them.)
Added e_select_names_get_source. Fixed some typos.
svn path=/trunk/; revision=4007
Diffstat (limited to 'addressbook/gui/component/select-names/e-select-names-model.c')
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-model.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names-model.c b/addressbook/gui/component/select-names/e-select-names-model.c index 94fb3d980a..fcf945259a 100644 --- a/addressbook/gui/component/select-names/e-select-names-model.c +++ b/addressbook/gui/component/select-names/e-select-names-model.c @@ -81,6 +81,22 @@ e_select_names_model_new (void) return model; } +/** + * e_select_names_model_new: + * @VCard: a string in vCard format + * + * Returns: a new #ESelectNamesModel that wraps the @VCard. + */ +ESelectNamesModel * +e_select_names_model_duplicate (ESelectNamesModel *old) +{ + ESelectNamesModel *model = E_SELECT_NAMES_MODEL(gtk_type_new(e_select_names_model_get_type())); + model->data = e_list_duplicate(old->data); + model->id = g_strdup(old->id); + model->title = g_strdup(old->title); + return model; +} + static void e_select_names_model_class_init (ESelectNamesModelClass *klass) { |