[evolution-patches] fix for the bug #327293 [calendar]
- From: chen <pchenthill novell com>
- To: patches <evolution-patches gnome org>
- Subject: [evolution-patches] fix for the bug #327293 [calendar]
- Date: Wed, 18 Jan 2006 12:08:01 +0530
Hi,
Have attached the fix for the bug. Just hide the window in the delete
event.
thanks, Chenthill.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2945
diff -u -p -u -p -r1.2945 ChangeLog
--- ChangeLog 16 Jan 2006 16:22:33 -0000 1.2945
+++ ChangeLog 18 Jan 2006 06:22:38 -0000
@@ -1,3 +1,10 @@
+2006-01-18 Chenthill Palanisamy <pchenthill novell com>
+
+ Fixes #327293
+ * gui/dialogs/event-editor.c: (window_delete_event),
+ (event_editor_construct): handle delete event to just
+ hide the window.
+
2006-01-16 Johnny Jacob <johnnyjacob gmail com>
* gui/dialogs/event-page.c (edit_button_cb): Added.
Index: gui/dialogs/event-editor.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/event-editor.c,v
retrieving revision 1.74
diff -u -p -u -p -r1.74 event-editor.c
--- gui/dialogs/event-editor.c 26 Nov 2005 02:31:51 -0000 1.74
+++ gui/dialogs/event-editor.c 18 Jan 2006 06:22:38 -0000
@@ -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,
"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,
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]