aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook-component.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-05-17 02:48:59 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-05-17 02:48:59 +0800
commit073927075b22b5a2988e299e91d2ccb7ec58c1c8 (patch)
treebca81ff15073987dcff9ddf5cf19377a22a05ba4 /addressbook/gui/component/addressbook-component.c
parent3a868a57bb55512cf7315b3178d9557d6350be32 (diff)
downloadgsoc2013-evolution-073927075b22b5a2988e299e91d2ccb7ec58c1c8.tar
gsoc2013-evolution-073927075b22b5a2988e299e91d2ccb7ec58c1c8.tar.gz
gsoc2013-evolution-073927075b22b5a2988e299e91d2ccb7ec58c1c8.tar.bz2
gsoc2013-evolution-073927075b22b5a2988e299e91d2ccb7ec58c1c8.tar.lz
gsoc2013-evolution-073927075b22b5a2988e299e91d2ccb7ec58c1c8.tar.xz
gsoc2013-evolution-073927075b22b5a2988e299e91d2ccb7ec58c1c8.tar.zst
gsoc2013-evolution-073927075b22b5a2988e299e91d2ccb7ec58c1c8.zip
New, quit handler for the EvolutionShellComponent. (add_creatable_item):
* gui/component/addressbook-component.c (request_quit): New, quit handler for the EvolutionShellComponent. (add_creatable_item): Set it up. * gui/contact-editor/e-contact-list-editor.c (e_contact_list_editor_request_close_all): New. (e_contact_list_editor_new): Put the contact editor in a static list and gtk_object_weakref() it. (contact_list_editor_destroy_notify): New, GtkDestroyNotify function for the contact editors. * gui/contact-editor/e-contact-editor.c (e_contact_editor_request_close_all): New. (e_contact_editor_new): Put the contact editor in a static list and gtk_object_weakref() it. (contact_editor_destroy_notify): New, GtkDestroyNotify function for the contact editors. svn path=/trunk/; revision=16934
Diffstat (limited to 'addressbook/gui/component/addressbook-component.c')
-rw-r--r--addressbook/gui/component/addressbook-component.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c
index 2979d211eb..54940faeab 100644
--- a/addressbook/gui/component/addressbook-component.c
+++ b/addressbook/gui/component/addressbook-component.c
@@ -505,6 +505,20 @@ destination_folder_handle_drop (EvolutionShellComponentDndDestinationFolder *fol
}
+/* Quitting. */
+
+static gboolean
+request_quit (EvolutionShellComponent *shell_component,
+ void *data)
+{
+ if (! e_contact_editor_request_close_all ()
+ || ! e_contact_list_editor_request_close_all ())
+ return FALSE;
+ else
+ return TRUE;
+}
+
+
/* The factory function. */
static void
@@ -549,7 +563,8 @@ create_component (void)
remove_folder, xfer_folder,
NULL,
get_dnd_selection,
- NULL, NULL);
+ request_quit,
+ NULL);
destination_interface = evolution_shell_component_dnd_destination_folder_new (destination_folder_handle_motion,
destination_folder_handle_drop,