evolution r37324 - branches/gnome-2-24/widgets/misc



Author: mcrha
Date: Wed Feb 25 10:44:19 2009
New Revision: 37324
URL: http://svn.gnome.org/viewvc/evolution?rev=37324&view=rev

Log:
2009-02-25  Milan Crha  <mcrha redhat com>

	** Fix for bug #559027

	* e-dateedit.c: (on_date_entry_focus_out):
	Do not set date for 'None' value.



Modified:
   branches/gnome-2-24/widgets/misc/ChangeLog
   branches/gnome-2-24/widgets/misc/e-dateedit.c

Modified: branches/gnome-2-24/widgets/misc/e-dateedit.c
==============================================================================
--- branches/gnome-2-24/widgets/misc/e-dateedit.c	(original)
+++ branches/gnome-2-24/widgets/misc/e-dateedit.c	Wed Feb 25 10:44:19 2009
@@ -1639,9 +1639,11 @@
 		e_date_edit_set_date (dedit,tmp_tm.tm_year,tmp_tm.tm_mon,tmp_tm.tm_mday);
 		gtk_widget_grab_focus (GTK_WIDGET (entry));
 		return FALSE;
-	} else {
-		e_date_edit_get_date (dedit,&tmp_tm.tm_year,&tmp_tm.tm_mon,&tmp_tm.tm_mday);
+	} else if (e_date_edit_get_date (dedit,&tmp_tm.tm_year,&tmp_tm.tm_mon,&tmp_tm.tm_mday)) {
 		e_date_edit_set_date (dedit,tmp_tm.tm_year,tmp_tm.tm_mon,tmp_tm.tm_mday);
+	} else {
+		dedit->priv->date_set_to_none = TRUE;
+		e_date_edit_update_date_entry (dedit);
 	}
 	return FALSE;
 }



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