From 088f9fb35d14eee857a335ace7e3f1fd55b3cf79 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Wed, 28 Aug 2002 08:27:20 +0000 Subject: [ fixes #19286 ] confirm deletion of contacts when using the menubar or 2002-08-28 Chris Toshok [ fixes #19286 ] * gui/component/addressbook.c (delete_contact_cb): confirm deletion of contacts when using the menubar or toolbar. svn path=/trunk/; revision=17888 --- addressbook/ChangeLog | 6 ++++++ addressbook/gui/component/addressbook.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index fdb81b51e2..ae664995d0 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2002-08-28 Chris Toshok + + [ fixes #19286 ] + * gui/component/addressbook.c (delete_contact_cb): confirm + deletion of contacts when using the menubar or toolbar. + 2002-08-28 Chris Toshok [ fixes #28897 ] diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index ee761fb755..4a40762a91 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -101,8 +101,10 @@ static void delete_contact_cb (BonoboUIComponent *uih, void *user_data, const char *path) { AddressbookView *view = (AddressbookView *) user_data; - if (view->view) - e_addressbook_view_delete_selection(view->view); + if (view->view) { + if (e_contact_editor_confirm_delete (GTK_WIDGET (view>view))) + e_addressbook_view_delete_selection(view->view); + } } static void -- cgit