Fix for calendar bug 333706

Harry Lu <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <1141718346.15484.23.camel@silvermedal>
Hi,
	Please review the attached patch for:
http://bugzilla.gnome.org/show_bug.cgi?id=333706

	Thanks!
		Harry

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
alarm333706.diff (text/x-patch, 1.3 KB)
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.3011
diff -u -p -r1.3011 ChangeLog
--- ChangeLog	6 Mar 2006 15:58:53 -0000	1.3011
+++ ChangeLog	7 Mar 2006 07:49:57 -0000
@@ -1,3 +1,10 @@
+2006-03-07  Harry Lu  <[email protected]>
+
+	Fix for 333706
+
+	* gui/dialogs/alarm-dialog.c: (alarm_to_dalarm_widgets): call
+	set_text only when description.value is not NULL.
+
 2006-03-06  Veerapuram Varadhan  <[email protected]>
 
 	**Fixes #321832
Index: gui/dialogs/alarm-dialog.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/alarm-dialog.c,v
retrieving revision 1.15
diff -u -p -r1.15 alarm-dialog.c
--- gui/dialogs/alarm-dialog.c	9 Feb 2006 15:04:56 -0000	1.15
+++ gui/dialogs/alarm-dialog.c	7 Mar 2006 07:49:58 -0000
@@ -362,7 +362,7 @@ alarm_to_dalarm_widgets (Dialog *dialog,
 
 	e_cal_component_alarm_get_description (alarm, &description);
 
-	if (!description.value) {
+	if (description.value) {
 		e_dialog_toggle_set (dialog->dalarm_message, TRUE);
 		text_buffer = gtk_text_view_get_buffer (dialog->dalarm_description);
 		gtk_text_buffer_set_text (text_buffer, description.value, -1);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.