aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2006-01-19 11:56:55 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2006-01-19 11:56:55 +0800
commitdcd4a636c24dd95517ac65310dd881529938ccfb (patch)
tree7495b3084dbdf59c62261c33bd74cccb40b81aa6 /calendar/gui
parent0d86641b0fa28a5950444c962abc0f5a830e7fc8 (diff)
downloadgsoc2013-evolution-dcd4a636c24dd95517ac65310dd881529938ccfb.tar
gsoc2013-evolution-dcd4a636c24dd95517ac65310dd881529938ccfb.tar.gz
gsoc2013-evolution-dcd4a636c24dd95517ac65310dd881529938ccfb.tar.bz2
gsoc2013-evolution-dcd4a636c24dd95517ac65310dd881529938ccfb.tar.lz
gsoc2013-evolution-dcd4a636c24dd95517ac65310dd881529938ccfb.tar.xz
gsoc2013-evolution-dcd4a636c24dd95517ac65310dd881529938ccfb.tar.zst
gsoc2013-evolution-dcd4a636c24dd95517ac65310dd881529938ccfb.zip
fixes #327293
svn path=/trunk/; revision=31236
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/event-editor.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/event-editor.c b/calendar/gui/dialogs/event-editor.c
index 91faa0cdd3..75b2b56bac 100644
--- a/calendar/gui/dialogs/event-editor.c
+++ b/calendar/gui/dialogs/event-editor.c
@@ -514,6 +514,16 @@ event_editor_init (EventEditor *ee)
comp_editor_set_help_section (COMP_EDITOR (ee), "usage-calendar-apts");
}
+/* Handler for the delete event. It hides the window without destroying it.
+ Connected to the recur dialog and Free busy dialog */
+static gboolean
+window_delete_event (GtkWidget *widget, GdkEvent *event, gpointer user_data)
+{
+ gtk_widget_hide (widget);
+
+ return TRUE;
+}
+
EventEditor *
event_editor_construct (EventEditor *ee, ECal *client)
{
@@ -537,6 +547,7 @@ event_editor_construct (EventEditor *ee, ECal *client)
"gtk-close", GTK_RESPONSE_CLOSE,
NULL);
g_signal_connect (priv->recur_window, "response", G_CALLBACK (gtk_widget_hide), NULL);
+ g_signal_connect ((GtkWidget *) priv->recur_window, "delete-event", G_CALLBACK(window_delete_event), NULL);
priv->recur_page = recurrence_page_new ();
g_object_ref (priv->recur_page);
gtk_object_sink (GTK_OBJECT (priv->recur_page));
@@ -564,6 +575,7 @@ event_editor_construct (EventEditor *ee, ECal *client)
gtk_widget_hide (priv->sched_window);
g_signal_connect (priv->sched_window, "response", G_CALLBACK(gtk_widget_hide), NULL);
+ g_signal_connect ((GtkWidget *) priv->sched_window, "delete-event", G_CALLBACK(window_delete_event), NULL);
comp_editor_append_page (COMP_EDITOR (ee), COMP_EDITOR_PAGE (priv->sched_page), NULL, FALSE);
} else
bonobo_ui_component_set_prop (editor->uic, "/commands/ActionFreeBusy", "hidden", "1", NULL);