[evolution-patches] Fix for the bug #315860 [calendar]



Hi,
   Have attached the fix for the bug. The fix closes the alarm dialog
irrespective of appointment selection in the dialog.


thanks, Chenthill.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2833
diff -u -p -r1.2833 ChangeLog
--- ChangeLog	21 Oct 2005 10:02:34 -0000	1.2833
+++ ChangeLog	27 Oct 2005 22:24:25 -0000
@@ -1,3 +1,10 @@
+2005-10-28  Chenthill Palanisamy  <pchenthill novell com>
+
+	Fixes #315860
+	* gui/alarm-notify/alarm-notify-dialog.c: 
+	(dialog_response_cb): Close the dialog
+	irrespective of the appointment selection.
+
 2005-10-21  Mubeen Jukaku  <jmubeen novell com>
 
 	Sankar Committting for Mubeen
Index: gui/alarm-notify/alarm-notify-dialog.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/alarm-notify/alarm-notify-dialog.c,v
retrieving revision 1.36
diff -u -p -r1.36 alarm-notify-dialog.c
--- gui/alarm-notify/alarm-notify-dialog.c	30 Sep 2005 14:39:40 -0000	1.36
+++ gui/alarm-notify/alarm-notify-dialog.c	27 Oct 2005 22:24:27 -0000
@@ -129,12 +129,13 @@ dialog_response_cb (GtkDialog *dialog, g
 	if (gtk_tree_selection_get_selected (selection, &model, &iter))
 		gtk_tree_model_get (model, &iter, ALARM_FUNCINFO_COLUMN, &funcinfo, -1);	
 
-	g_return_if_fail (funcinfo);
-
 	switch (response_id) {
 	case GTK_RESPONSE_CLOSE:
+		gtk_widget_destroy (GTK_WIDGET (dialog));
+		break;
 	case GTK_RESPONSE_DELETE_EVENT:
-		(* funcinfo->func) (ALARM_NOTIFY_CLOSE, -1, funcinfo->func_data);
+		if (funcinfo)
+			(* funcinfo->func) (ALARM_NOTIFY_CLOSE, -1, funcinfo->func_data);
 		break;
 	}
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]