diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-07-27 03:04:03 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-07-27 03:04:03 +0800 |
commit | 718d677e68d52df0fef00f151e94a53c6d114100 (patch) | |
tree | 912eaf530ec4583c0fa0e9fc11474d1c6bef541e /addressbook | |
parent | 03ee7ece508a7d118d94ad8c62532ca673729fda (diff) | |
download | gsoc2013-evolution-718d677e68d52df0fef00f151e94a53c6d114100.tar gsoc2013-evolution-718d677e68d52df0fef00f151e94a53c6d114100.tar.gz gsoc2013-evolution-718d677e68d52df0fef00f151e94a53c6d114100.tar.bz2 gsoc2013-evolution-718d677e68d52df0fef00f151e94a53c6d114100.tar.lz gsoc2013-evolution-718d677e68d52df0fef00f151e94a53c6d114100.tar.xz gsoc2013-evolution-718d677e68d52df0fef00f151e94a53c6d114100.tar.zst gsoc2013-evolution-718d677e68d52df0fef00f151e94a53c6d114100.zip |
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
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 9 | ||||
-rw-r--r-- | 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 <ettore@ximian.com> + + * 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 <peterw@ximian.com> * 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 @@ -73,40 +73,6 @@ 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) { AddressbookView *view = (AddressbookView *) user_data; @@ -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"), |