diff options
author | Chris Toshok <toshok@ximian.com> | 2001-06-09 05:36:58 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-06-09 05:36:58 +0800 |
commit | 01b6f4ee32b0aeb16699af276e47618c1f776378 (patch) | |
tree | f3da0b1a14a5f161349b74a6a5b770a04649c355 /addressbook/gui/widgets/e-addressbook-util.h | |
parent | d09d4962997e9056652815aab81f49311a6a59a8 (diff) | |
download | gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar.gz gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar.bz2 gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar.lz gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar.xz gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar.zst gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.zip |
remove the gtk_widget_show call... (e_contact_editor_show): and put it
2001-06-08 Chris Toshok <toshok@ximian.com>
* contact-editor/e-contact-editor.c (e_contact_editor_new): remove
the gtk_widget_show call...
(e_contact_editor_show): and put it here.
* contact-editor/e-contact-editor.h: add prototype for
e_contact_editor_show.
* gui/widgets/e-minicard.c (e_minicard_event): call
e_addressbook_show_contact_editor.
(card_modified_cb): call e_addressbook_error_dialog if status !=
SUCCESS.
* gui/widgets/e-minicard-view.c (e_minicard_view_event): call
e_addressbook_show_contact_editor. also, use card_modified_cb as
the commit_card callback.
* gui/widgets/e-addressbook-view.c (table_double_click): clean
this area up alot, call e_addressbook_show_contact_editor.
(card_deleted_cb): call e_addressbook_error_dialog.
* gui/widgets/e-addressbook-table-adapter.c
(card_modified_cb): new function, call e_addressbook_error_dialog
if the status != SUCCESS.
(addressbook_set_value_at): use card_modified_cb as the callback
for e_book_commit_card.
* gui/widgets/Makefile.am (libeminicard_a_SOURCES): add
e-addressbook-util.[ch].
* gui/component/addressbook.c (new_contact_cb): use
e_addressbook_show_contact_editor here.
svn path=/trunk/; revision=10164
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-util.h')
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-util.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-util.h b/addressbook/gui/widgets/e-addressbook-util.h new file mode 100644 index 0000000000..f40a1b825a --- /dev/null +++ b/addressbook/gui/widgets/e-addressbook-util.h @@ -0,0 +1,41 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* e-addressbook-util.h + * Copyright (C) 2001 Ximian, Inc. + * Author: Chris Toshok <toshok@ximian.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __E_ADDRESSBOOK_UTIL_H__ +#define __E_ADDRESSBOOK_UTIL_H__ + +#include "addressbook/backend/ebook/e-book.h" +#include "addressbook/contact-editor/e-contact-editor.h" + +#ifdef __cplusplus +extern "C" { +#pragma } +#endif /* __cplusplus */ + +void e_addressbook_error_dialog (const gchar *msg, + EBookStatus status); +EContactEditor* e_addressbook_show_contact_editor (EBook *book, ECard *card, + gboolean editable); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __E_ADDRESSBOOK_UTIL_H__ */ |