diff options
author | Chris Toshok <toshok@ximian.com> | 2001-06-25 09:09:43 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-06-25 09:09:43 +0800 |
commit | 8cb68557aebb62334f68beeea60cf3bbf5930f9e (patch) | |
tree | bc27d2cd32645cddfd8631f6d6cc602ab29eea4e /addressbook/gui/component | |
parent | dcf2e1a4acef258ff7473425cbd8d119294e41c0 (diff) | |
download | gsoc2013-evolution-8cb68557aebb62334f68beeea60cf3bbf5930f9e.tar gsoc2013-evolution-8cb68557aebb62334f68beeea60cf3bbf5930f9e.tar.gz gsoc2013-evolution-8cb68557aebb62334f68beeea60cf3bbf5930f9e.tar.bz2 gsoc2013-evolution-8cb68557aebb62334f68beeea60cf3bbf5930f9e.tar.lz gsoc2013-evolution-8cb68557aebb62334f68beeea60cf3bbf5930f9e.tar.xz gsoc2013-evolution-8cb68557aebb62334f68beeea60cf3bbf5930f9e.tar.zst gsoc2013-evolution-8cb68557aebb62334f68beeea60cf3bbf5930f9e.zip |
correct path to libecontacteditor.a. (minicard_widget_test_LDADD): same.
2001-06-24 Chris Toshok <toshok@ximian.com>
* gui/widgets/Makefile.am (minicard_test_LDADD): correct path to
libecontacteditor.a.
(minicard_widget_test_LDADD): same.
(INCLUDES): same, for the includes.
* gui/widgets/e-minicard.h: correct e-contact-editor.h path.
* gui/widgets/e-addressbook-util.h: correct path to
e-contact-editor.h, and add e-contact-list-editor.h. Add
prototype for e_addressbook_show_contact_list_editor.
* gui/widgets/e-addressbook-util.c: remove #include
"e-contact-editor.h" (our header includes it.)
(added_cb): rename card_added_cb to this, and make it so it can be
reused in both the list and card cases. remove the g_print too.
(modified_cb): same for modified case.
(deleted_cb): same for deleted case.
(editor_closed_cb): change first arg to GtkObject* so we can reuse
this for both list and card.
(e_addressbook_show_contact_editor): use added_cb, modified_cb,
deleted_cb, and pass FALSE as user_data.
(e_addressbook_show_contact_list_editor): new function, same as
above but creating a contact-list-editor, and pass TRUE as
user_data.
* gui/component/e-address-popup.c: correct path to contact-editor.
* gui/component/e-address-widget.c: same.
* gui/component/select-names/e-select-names-popup.c: same.
* gui/component/select-names/e-select-names-text-model.c: same.
* gui/component/addressbook.c (new_contact_list_cb): new function.
(update_command_state): update ContactNewList command.
(verbs): remove ViewAll from the toolbar from the verb list. Add
ContactNewList.
(pixmaps): same for pixmaps.
* gui/component/Makefile.am (evolution_addressbook_LDADD): new
path for contact-editor.
(INCLUDES): same.
* gui/contact-list-editor/e-contact-list-model.h:
* gui/contact-list-editor/e-contact-list-model.c:
* gui/contact-list-editor/e-contact-list-editor.h:
* gui/contact-list-editor/e-contact-list-editor.c:
* gui/contact-list-editor/Makefile.am: Initial contact-list editor
commit.
* gui/Makefile.am (SUBDIRS): add contact-editor.
* Makefile.am: (SUBDIRS): remove contact-editor.
svn path=/trunk/; revision=10463
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r-- | addressbook/gui/component/Makefile.am | 42 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook.c | 38 | ||||
-rw-r--r-- | addressbook/gui/component/e-address-popup.c | 4 | ||||
-rw-r--r-- | addressbook/gui/component/e-address-widget.c | 2 | ||||
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-popup.c | 4 | ||||
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-text-model.c | 2 |
6 files changed, 49 insertions, 43 deletions
diff --git a/addressbook/gui/component/Makefile.am b/addressbook/gui/component/Makefile.am index 6f38d86436..d58c768328 100644 --- a/addressbook/gui/component/Makefile.am +++ b/addressbook/gui/component/Makefile.am @@ -1,24 +1,25 @@ SUBDIRS = select-names -INCLUDES = \ - -DG_LOG_DOMAIN=\"evolution-addressbook\" \ - $(EXTRA_GNOME_CFLAGS) \ - $(GNOME_INCLUDEDIR) \ - -I$(top_srcdir) \ - -I$(top_builddir) \ - -I$(top_srcdir)/shell \ - -I$(top_builddir)/shell \ - -I$(top_srcdir)/widgets/misc \ - -I$(top_srcdir)/addressbook/gui/minicard \ - -I$(top_srcdir)/addressbook/gui/widgets \ - -I$(top_srcdir)/addressbook/contact-editor \ - -I$(top_srcdir)/addressbook/backend \ - -I$(top_builddir)/addressbook/backend \ - $(BONOBO_HTML_GNOME_CFLAGS) \ - -DEVOLUTION_DATADIR=\""$(datadir)"\" \ - -DEVOLUTION_GLADEDIR=\""$(gladedir)"\" \ - -DEVOLUTION_ICONSDIR=\""$(iconsdir)"\" \ - -DEVOLUTION_LOCALEDIR=\""$(localedir)"\" \ +INCLUDES = \ + -DG_LOG_DOMAIN=\"evolution-addressbook\" \ + $(EXTRA_GNOME_CFLAGS) \ + $(GNOME_INCLUDEDIR) \ + -I$(top_srcdir) \ + -I$(top_builddir) \ + -I$(top_srcdir)/shell \ + -I$(top_builddir)/shell \ + -I$(top_srcdir)/widgets/misc \ + -I$(top_srcdir)/addressbook/gui/contact-editor \ + -I$(top_srcdir)/addressbook/gui/contact-list-editor \ + -I$(top_srcdir)/addressbook/gui/minicard \ + -I$(top_srcdir)/addressbook/gui/widgets \ + -I$(top_srcdir)/addressbook/backend \ + -I$(top_builddir)/addressbook/backend \ + $(BONOBO_HTML_GNOME_CFLAGS) \ + -DEVOLUTION_DATADIR=\""$(datadir)"\" \ + -DEVOLUTION_GLADEDIR=\""$(gladedir)"\" \ + -DEVOLUTION_ICONSDIR=\""$(iconsdir)"\" \ + -DEVOLUTION_LOCALEDIR=\""$(localedir)"\" \ -DCAMEL_PROVIDERDIR=\""$(providerdir)"\" bin_PROGRAMS = \ @@ -49,7 +50,8 @@ evolution_addressbook_LDADD = \ $(top_builddir)/addressbook/gui/widgets/libeminicard.a \ $(top_builddir)/addressbook/backend/ebook/libebook.la \ $(top_builddir)/e-util/ename/libename.la \ - $(top_builddir)/addressbook/contact-editor/libecontacteditor.a \ + $(top_builddir)/addressbook/gui/contact-list-editor/libecontactlisteditor.a \ + $(top_builddir)/addressbook/gui/contact-editor/libecontacteditor.a \ $(top_builddir)/libversit/libversit.la \ $(top_builddir)/widgets/misc/libemiscwidgets.a \ $(top_builddir)/addressbook/printing/libecontactprint.a \ diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index 2936855d57..bd51a3515e 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -68,6 +68,21 @@ new_contact_cb (BonoboUIComponent *uih, void *user_data, const char *path) } static void +new_contact_list_cb (BonoboUIComponent *uih, void *user_data, const char *path) +{ + EBook *book; + AddressbookView *view = (AddressbookView *) user_data; + + gtk_object_get(GTK_OBJECT(view->view), + "book", &book, + NULL); + + g_assert (E_IS_BOOK (book)); + + e_addressbook_show_contact_list_editor (book, e_card_new(""), TRUE, e_addressbook_view_can_create(view->view)); +} + +static void config_cb (BonoboUIComponent *uih, void *user_data, const char *path) { addressbook_config (NULL /* XXX */); @@ -102,13 +117,6 @@ print_cb (BonoboUIComponent *uih, void *user_data, const char *path) } static void -show_all_contacts_cb (BonoboUIComponent *uih, void *user_data, const char *path) -{ - AddressbookView *view = (AddressbookView *) user_data; - e_addressbook_view_show_all(view->view); -} - -static void stop_loading_cb (BonoboUIComponent *uih, void *user_data, const char *path) { AddressbookView *view = (AddressbookView *) user_data; @@ -153,6 +161,10 @@ update_command_state (EAddressbookView *eav, AddressbookView *view) "/commands/ContactNew", "sensitive", e_addressbook_view_can_create (view->view) ? "1" : "0", NULL); + bonobo_ui_component_set_prop (uic, + "/commands/ContactNewList", + "sensitive", + e_addressbook_view_can_create (view->view) ? "1" : "0", NULL); /* Print Contact */ bonobo_ui_component_set_prop (uic, @@ -184,14 +196,6 @@ update_command_state (EAddressbookView *eav, AddressbookView *view) e_addressbook_view_can_select_all (view->view) ? "1" : "0", NULL); - /* View All Contacts */ -#if 0 - /* this is always enabled */ - bonobo_ui_component_set_prop (uic, - "/Toolbar/ContactViewAll", - "sensitive", "1", NULL); -#endif - /* Stop */ bonobo_ui_component_set_prop (uic, "/commands/ContactStop", @@ -212,8 +216,8 @@ BonoboUIVerb verbs [] = { BONOBO_UI_UNSAFE_VERB ("AddressbookConfig", config_cb), BONOBO_UI_UNSAFE_VERB ("ContactNew", new_contact_cb), + BONOBO_UI_UNSAFE_VERB ("ContactNewList", new_contact_list_cb), BONOBO_UI_UNSAFE_VERB ("ContactDelete", delete_contact_cb), - BONOBO_UI_UNSAFE_VERB ("ContactViewAll", show_all_contacts_cb), BONOBO_UI_UNSAFE_VERB ("ContactStop", stop_loading_cb), BONOBO_UI_UNSAFE_VERB ("ContactsCut", cut_contacts_cb), @@ -230,8 +234,8 @@ static EPixmap pixmaps [] = { E_PIXMAP ("/menu/File/Print/ContactsPrintPreview", "print-preview.xpm"), E_PIXMAP ("/menu/Tools/Component/AddressbookConfig", "configure_16_addressbook.xpm"), - E_PIXMAP ("/Toolbar/ContactViewAll", "all_contacts.xpm"), E_PIXMAP ("/Toolbar/ContactNew", "new_contact.xpm"), + E_PIXMAP ("/Toolbar/ContactNewList", "all_contacts.xpm"), E_PIXMAP_END }; diff --git a/addressbook/gui/component/e-address-popup.c b/addressbook/gui/component/e-address-popup.c index 0d01e3f162..cedaf84a5f 100644 --- a/addressbook/gui/component/e-address-popup.c +++ b/addressbook/gui/component/e-address-popup.c @@ -34,8 +34,8 @@ #include <gal/widgets/e-unicode.h> #include <addressbook/backend/ebook/e-book.h> #include <addressbook/backend/ebook/e-book-util.h> -#include <addressbook/contact-editor/e-contact-editor.h> -#include <addressbook/contact-editor/e-contact-quick-add.h> +#include <addressbook/gui/contact-editor/e-contact-editor.h> +#include <addressbook/gui/contact-editor/e-contact-quick-add.h> #include <addressbook/gui/widgets/e-minicard-widget.h> #include <addressbook/gui/widgets/e-addressbook-util.h> static GtkObjectClass *parent_class; diff --git a/addressbook/gui/component/e-address-widget.c b/addressbook/gui/component/e-address-widget.c index f69ce5c58d..2f81c70b36 100644 --- a/addressbook/gui/component/e-address-widget.c +++ b/addressbook/gui/component/e-address-widget.c @@ -30,7 +30,7 @@ #include <bonobo/bonobo-control.h> #include <bonobo/bonobo-property-bag.h> #include <bonobo/bonobo-generic-factory.h> -#include <addressbook/contact-editor/e-contact-quick-add.h> +#include <addressbook/gui/contact-editor/e-contact-quick-add.h> #include "e-address-widget.h" static void e_address_widget_class_init (EAddressWidgetClass *klass); diff --git a/addressbook/gui/component/select-names/e-select-names-popup.c b/addressbook/gui/component/select-names/e-select-names-popup.c index 03dadf2d80..fb05ff686a 100644 --- a/addressbook/gui/component/select-names/e-select-names-popup.c +++ b/addressbook/gui/component/select-names/e-select-names-popup.c @@ -39,8 +39,8 @@ #include <libgnomeui/gnome-popup-menu.h> #include <addressbook/backend/ebook/e-book-util.h> -#include <addressbook/contact-editor/e-contact-editor.h> -#include <addressbook/contact-editor/e-contact-quick-add.h> +#include <addressbook/gui/contact-editor/e-contact-editor.h> +#include <addressbook/gui/contact-editor/e-contact-quick-add.h> #include "e-addressbook-util.h" #include "e-select-names-popup.h" diff --git a/addressbook/gui/component/select-names/e-select-names-text-model.c b/addressbook/gui/component/select-names/e-select-names-text-model.c index c9d1d1177f..7c87c887f5 100644 --- a/addressbook/gui/component/select-names/e-select-names-text-model.c +++ b/addressbook/gui/component/select-names/e-select-names-text-model.c @@ -16,7 +16,7 @@ #include <gal/e-text/e-text-model-repos.h> -#include <addressbook/contact-editor/e-contact-editor.h> +#include <addressbook/gui/contact-editor/e-contact-editor.h> #include "e-select-names-text-model.h" #include "e-addressbook-util.h" |