r14818 - gnucash/trunk/src/engine - Use the glib-compat.h file for backward compatible function names.

David Hampton hampton at cvs.gnucash.org
Thu Sep 7 12:14:28 EDT 2006


Author: hampton
Date: 2006-09-07 12:14:27 -0400 (Thu, 07 Sep 2006)
New Revision: 14818
Trac: http://svn.gnucash.org/trac/changeset/14818

Modified:
   gnucash/trunk/src/engine/gnc-budget.c
Log:
Use the glib-compat.h file for backward compatible function names.


Modified: gnucash/trunk/src/engine/gnc-budget.c
===================================================================
--- gnucash/trunk/src/engine/gnc-budget.c	2006-09-07 15:52:47 UTC (rev 14817)
+++ gnucash/trunk/src/engine/gnc-budget.c	2006-09-07 16:14:27 UTC (rev 14818)
@@ -29,6 +29,8 @@
 #include <time.h>
 #include "qof.h"
 
+#include "glib-compat.h"
+
 #include "Account.h"
 #include "Group.h"
 
@@ -100,12 +102,7 @@
     budget = g_new0(GncBudget, 1);
     qof_instance_init (&budget->inst, GNC_ID_BUDGET, book);
 
-#ifdef HAVE_GLIB29
     g_date_set_time_t(&date, time(NULL));
-#else
-    /* Deprecated since glib-2.10; use g_date_set_time_t instead. */
-    g_date_set_time(&date, time(NULL));
-#endif
     g_date_subtract_days(&date, g_date_get_day(&date)-1);
     recurrenceSet(&budget->recurrence, 1, PERIOD_MONTH, &date);
 



More information about the gnucash-changes mailing list