From f745553229591ed3f620761b91e7ed447d1800fa Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 6 Oct 2004 03:22:22 +0000 Subject: convert to using EABPopup. (sources): remove dead code. 2004-10-01 Not Zed * gui/widgets/e-addressbook-view.c (do_popup_menu): convert to using EABPopup. (sources): remove dead code. (has_email_address_1, get_has_email_address): removed now redundant code. (save_as, send_as, send_to, print, copy, paste, cut, delete) (copy_to_folder, move_to_folder, new_card, new_list): new api. (free_popup_info): dead. (print_envelope): not pining. (get_contact_list): take a popup target instead, don't ref. (get_contact_list_1): not required no more. (contact_and_book_free): same. (delete): call eab_view_delete_selection. (eab_view_delete_selection): do the actual delete here. * gui/widgets/eab-popup.c (eab_popup_target_new_select): implement. 2004-10-01 Not Zed * gui/widgets/eab-popup.[ch]: addressbook popup driver. * gui/component/addressbook-view.c (delete_addressbook_cb): use e-error for the message prompt. don't bother keeping it around, it can never be re-sensitised anyway. (book_removed): no longer destroy the original dialogue. * addressbook-errors.xml: add ask-delete for deleting addressbooks. * gui/component/addressbook-view.c (addressbook_view_init): connect to popup_event rather than fill_popup_menu now. (fill_popup_menu_callback): renamed to popup_event_callback, changed to use epopup. (add_popup_menu_item): remove, no longer needed. svn path=/trunk/; revision=27466 --- addressbook/addressbook-errors.xml.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'addressbook/addressbook-errors.xml.h') diff --git a/addressbook/addressbook-errors.xml.h b/addressbook/addressbook-errors.xml.h index 15b0cd5423..fee57879d4 100644 --- a/addressbook/addressbook-errors.xml.h +++ b/addressbook/addressbook-errors.xml.h @@ -18,6 +18,10 @@ char *s = N_("Could not get schema information for LDAP server."); char *s = N_("LDAP server did not respond with valid schema information."); /* addressbook:remove-addressbook primary */ char *s = N_("Could not remove addressbook."); +/* addressbook:ask-delete-addressbook primary */ +char *s = N_("Delete address book '{0}'?"); +/* addressbook:ask-delete-addressbook secondary */ +char *s = N_("This address book will be removed permanently."); /* addressbook:edit-categories primary */ char *s = N_("Category editor not available."); /* addressbook:generic-error primary */ -- cgit v1.2.3