diff options
Diffstat (limited to 'time/gnotime/patches/patch-aj')
-rw-r--r-- | time/gnotime/patches/patch-aj | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/time/gnotime/patches/patch-aj b/time/gnotime/patches/patch-aj index ef5e14680eb..358db864e83 100644 --- a/time/gnotime/patches/patch-aj +++ b/time/gnotime/patches/patch-aj @@ -1,8 +1,38 @@ -$NetBSD: patch-aj,v 1.1 2004/11/24 22:35:25 kristerw Exp $ +$NetBSD: patch-aj,v 1.2 2005/03/16 12:48:49 rillig Exp $ ---- src/proj.c.orig Wed Nov 24 22:40:26 2004 -+++ src/proj.c Wed Nov 24 22:41:13 2004 -@@ -2306,10 +2306,10 @@ +--- src/proj.c.orig Sat May 22 16:27:59 2004 ++++ src/proj.c Wed Mar 16 11:12:06 2005 +@@ -1948,8 +1948,6 @@ prj_obj_get_latest (GttProject *prj) + gboolean + gtt_project_obj_register (void) + { +- global_book = qof_book_new(); +- + /* Associate an ASCII name to each getter, as well as the return type */ + static QofParam params[] = { + { GTT_PROJECT_EARLIEST, QOF_TYPE_DATE, (QofAccessFunc)prj_obj_get_earliest, NULL}, +@@ -1957,6 +1955,8 @@ static QofParam params[] = { + { NULL }, + }; + ++ global_book = qof_book_new(); ++ + qof_class_register (GTT_PROJECT_ID, (QofSortFunc)prj_obj_order, params); + return qof_object_register (&prj_object_def); + } +@@ -2290,9 +2290,10 @@ gtt_task_is_first_task (GttTask *tsk) + gboolean + gtt_task_is_last_task (GttTask *tsk) + { ++ GList *last; + if (!tsk || !tsk->parent || !tsk->parent->task_list) return TRUE; + +- GList *last = g_list_last (tsk->parent->task_list); ++ last = g_list_last (tsk->parent->task_list); + if ((GttTask *) last->data == tsk) return TRUE; + return FALSE; + } +@@ -2354,10 +2355,10 @@ time_t gtt_task_get_secs_earliest (GttTask *tsk) { GList *node; @@ -15,7 +45,7 @@ $NetBSD: patch-aj,v 1.1 2004/11/24 22:35:25 kristerw Exp $ for (node=tsk->interval_list; node; node=node->next) { GttInterval * ivl = node->data; -@@ -2322,9 +2322,8 @@ +@@ -2370,9 +2371,8 @@ time_t gtt_task_get_secs_latest (GttTask *tsk) { GList *node; |