From 718d677e68d52df0fef00f151e94a53c6d114100 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 26 Jul 2002 19:04:03 +0000 Subject: Don't set up the ContactNew and ContactNewList verbs. (update_command_state): Don't set the sensitivity of /commands/ContactNew and /commands/ContactNewList anymore. (new_contact_cb): Removed. (new_contact_list_cb): Removed. svn path=/trunk/; revision=17614 --- addressbook/ChangeLog | 9 +++++++ addressbook/gui/component/addressbook.c | 48 --------------------------------- 2 files changed, 9 insertions(+), 48 deletions(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index baf196f504..9ec7dfdb57 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,12 @@ +2002-07-26 Ettore Perazzoli + + * gui/component/addressbook.c: Don't set up the ContactNew and + ContactNewList verbs. + (update_command_state): Don't set the sensitivity of + /commands/ContactNew and /commands/ContactNewList anymore. + (new_contact_cb): Removed. + (new_contact_list_cb): Removed. + 2002-07-24 Peter Williams * conduit/Makefile.am (libeaddress_conduit_la_LIBADD): Change diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index 8c585917d4..83b4f294ae 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -72,40 +72,6 @@ typedef struct { static void addressbook_view_ref (AddressbookView *); static void addressbook_view_unref (AddressbookView *); -static void -new_contact_cb (BonoboUIComponent *uih, void *user_data, const char *path) -{ - EBook *book; - AddressbookView *view = (AddressbookView *) user_data; - - if (view->view) { - gtk_object_get(GTK_OBJECT(view->view), - "book", &book, - NULL); - - g_assert (E_IS_BOOK (book)); - - e_addressbook_show_contact_editor (book, e_card_new(""), TRUE, e_addressbook_view_can_create(view->view)); - } -} - -static void -new_contact_list_cb (BonoboUIComponent *uih, void *user_data, const char *path) -{ - EBook *book; - AddressbookView *view = (AddressbookView *) user_data; - - if (view->view) { - 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 save_contact_cb (BonoboUIComponent *uih, void *user_data, const char *path) { @@ -246,17 +212,6 @@ update_command_state (EAddressbookView *eav, AddressbookView *view) uic = bonobo_control_get_ui_component (view->control); if (bonobo_ui_component_get_container (uic) != CORBA_OBJECT_NIL) { - - /* New Contact */ - bonobo_ui_component_set_prop (uic, - "/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); - bonobo_ui_component_set_prop (uic, "/commands/ContactsSaveAsVCard", "sensitive", @@ -343,8 +298,6 @@ static BonoboUIVerb verbs [] = { BONOBO_UI_UNSAFE_VERB ("ContactsView", view_contact_cb), BONOBO_UI_UNSAFE_VERB ("ToolSearch", search_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 ("ContactStop", stop_loading_cb), @@ -363,7 +316,6 @@ static BonoboUIVerb verbs [] = { }; static EPixmap pixmaps [] = { - E_PIXMAP ("/menu/File/New/NewFirstItem/ContactNew", "evolution-contacts-mini.png"), E_PIXMAP ("/menu/File/FileOps/ContactsSaveAsVCard", "save-as-16.png"), E_PIXMAP ("/menu/File/Print/ContactsPrint", "print.xpm"), E_PIXMAP ("/menu/File/Print/ContactsPrintPreview", "print-preview.xpm"), -- cgit v1.2.3