diff options
author | Christopher James Lahey <clahey@ximian.com> | 2002-01-18 23:37:09 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2002-01-18 23:37:09 +0800 |
commit | a30eed771c00ccde2cd7a32c3f0a28057f247f84 (patch) | |
tree | 8349ad2f4b5f13af1cc188ee7d9771374a17d5cf /addressbook/gui/component | |
parent | 9380c68a1a8f6232a1faa0c169eee6b6c4ae889f (diff) | |
download | gsoc2013-evolution-a30eed771c00ccde2cd7a32c3f0a28057f247f84.tar.gz gsoc2013-evolution-a30eed771c00ccde2cd7a32c3f0a28057f247f84.tar.zst gsoc2013-evolution-a30eed771c00ccde2cd7a32c3f0a28057f247f84.zip |
From addressbook/ChangeLog:
2002-01-18 Christopher James Lahey <clahey@ximian.com>
* gui/component/addressbook.c (view_contact_cb): New verb to open
a bunch of cards.
* gui/widgets/e-addressbook-reflow-adapter.c (open_card): Call
e_addressbook_show_multiple_cards instead of doing this ourselves.
* gui/widgets/e-addressbook-util.c,
gui/widgets/e-addressbook-util.h
(e_addressbook_show_multiple_cards): Added this function to show a
bunch of cards, including a dialog if lots of windows are going to
appear.
* gui/widgets/e-addressbook-view.c (e_addressbook_view_view,
e_addressbook_view_can_view): e_addressbook_view_view calls
e_addressbook_show_multiple_cards on the appropriate list of
cards.
From ui/ChangeLog:
2002-01-18 Christopher James Lahey <clahey@ximian.com>
* evolution-addressbook.xml: Added File->Open which calls the
ContactsView command.
svn path=/trunk/; revision=15355
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r-- | addressbook/gui/component/addressbook.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index 38d44727ed..93c3bdf246 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -115,6 +115,14 @@ save_contact_cb (BonoboUIComponent *uih, void *user_data, const char *path) } static void +view_contact_cb (BonoboUIComponent *uih, void *user_data, const char *path) +{ + AddressbookView *view = (AddressbookView *) user_data; + if (view->view) + e_addressbook_view_view(view->view); +} + +static void config_cb (BonoboUIComponent *uih, void *user_data, const char *path) { addressbook_config (NULL /* XXX */); @@ -243,6 +251,10 @@ update_command_state (EAddressbookView *eav, AddressbookView *view) "/commands/ContactsSaveAsVCard", "sensitive", e_addressbook_view_can_save_as (view->view) ? "1" : "0", NULL); + bonobo_ui_component_set_prop (uic, + "/commands/ContactsView", + "sensitive", + e_addressbook_view_can_view (view->view) ? "1" : "0", NULL); /* Print Contact */ bonobo_ui_component_set_prop (uic, @@ -311,6 +323,7 @@ static BonoboUIVerb verbs [] = { BONOBO_UI_UNSAFE_VERB ("ContactsPrint", print_cb), BONOBO_UI_UNSAFE_VERB ("ContactsPrintPreview", print_preview_cb), BONOBO_UI_UNSAFE_VERB ("ContactsSaveAsVCard", save_contact_cb), + BONOBO_UI_UNSAFE_VERB ("ContactsView", view_contact_cb), BONOBO_UI_UNSAFE_VERB ("ToolSearch", search_cb), BONOBO_UI_UNSAFE_VERB ("AddressbookConfig", config_cb), |