[evolution-patches] [Calendar] Make alarm-dialog as modal



Hi
In appointment editor, click alarms. The "Alarms" dialog pops up.
Close the appointment editor. the alarm-dialog is still visible which
is not supposed to happen.

So made the alarm-dialog as modal.

Please review and comment

Thanks
Johnny
Index: calendar/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2899
diff -u -p -r1.2899 ChangeLog
--- calendar/ChangeLog	21 Dec 2005 04:13:33 -0000	1.2899
+++ calendar/ChangeLog	22 Dec 2005 10:56:41 -0000
@@ -1,3 +1,8 @@
+2005-12-21  Johnny Jacob  <johnnyjacob gmail com>
+
+	* gui/dialogs/event-page.c (init_widgets): Set alarm-dialog as
+	modal.
+
 2005-12-20  Chenthill Palanisamy  <pchenthill novell com>
 
 	Fixes #324525
Index: calendar/gui/dialogs/event-page.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/event-page.c,v
retrieving revision 1.95
diff -u -p -r1.95 event-page.c
--- calendar/gui/dialogs/event-page.c	15 Dec 2005 07:46:25 -0000	1.95
+++ calendar/gui/dialogs/event-page.c	22 Dec 2005 10:57:42 -0000
@@ -2771,6 +2771,7 @@ init_widgets (EventPage *epage)
 	/* Alarm dialog */
 	g_signal_connect (GTK_DIALOG (priv->alarm_dialog), "response", G_CALLBACK (gtk_widget_hide), priv->alarm_dialog);
 	gtk_widget_hide (priv->alarm_dialog);
+	gtk_window_set_modal (priv->alarm_dialog, TRUE);
 
 	/* Meeting List View */
 	g_signal_connect (priv->list_view, "attendee_added", G_CALLBACK (attendee_added_cb), epage);	


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