View | Details | Raw Unified | Return to bug 130464
Collapse All | Expand All

(-)deskutils/gnotime/Makefile (-11 / +42 lines)
Lines 7-33 Link Here
7
#
7
#
8
8
9
PORTNAME=	gnotime
9
PORTNAME=	gnotime
10
PORTVERSION=	2.2.2
10
PORTVERSION=	2.3.0
11
PORTREVISION=	10
12
CATEGORIES=	deskutils gnome
11
CATEGORIES=	deskutils gnome
13
MASTER_SITES=	SF/gttr
12
MASTER_SITES=	SF/gttr:gttr SF/qof:qof
13
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:gttr \
14
		${QOF_DISTNAME}${EXTRACT_SUFX}:qof
14
15
15
MAINTAINER=	ports@FreeBSD.org
16
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	GnoTime is a time tracker for gnome2
17
COMMENT=	A time tracker for gnome2
17
18
18
LIB_DEPENDS=	guile.19:${PORTSDIR}/lang/guile
19
LIB_DEPENDS=	guile.19:${PORTSDIR}/lang/guile
19
20
20
USE_AUTOTOOLS=	libtool:15
21
USE_GNOME=	gnomehack gnomeprefix gtkhtml3 intlhack libgda3 libgnomeui
21
USE_GNOME=	gnomehack gnomeprefix intlhack gtkhtml3 libgnomeui
22
USE_GETTEXT=	yes
22
USE_GETTEXT=	yes
23
USE_GMAKE=	yes
23
USE_GMAKE=	yes
24
INSTALLS_OMF=	yes
24
USE_AUTOTOOLS=	libtool:15 libltdl:15
25
LIBTOOLFILES=	configure ../${QOF_DISTNAME}/configure
26
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
27
		LIBQOF_CFLAGS="${LIBQOF_CFLAGS}" LIBQOF_LIBS="${LIBQOF_LIBS}"
25
USE_LDCONFIG=	yes
28
USE_LDCONFIG=	yes
26
GNU_CONFIGURE=	yes
29
INSTALLS_OMF=	yes
27
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
28
		LDFLAGS="-L${LOCALBASE}/lib"
29
30
30
MAN1=		gnotime.1
31
MAN1=		gnotime.1 gnotime-remote.1
31
GCONF_SCHEMAS=	gnotime.schemas
32
GCONF_SCHEMAS=	gnotime.schemas
32
33
34
QOF_DISTNAME=	qof-0.7.5
35
QOF_WRKSRC=	${WRKDIR}/${QOF_DISTNAME}
36
37
CPPFLAGS=	-I${LOCALBASE}/include
38
LDFLAGS=	-L${LOCALBASE}/lib
39
LIBQOF_CFLAGS=	-I${QOF_WRKSRC}/qof
40
LIBQOF_LIBS=	-L${QOF_WRKSRC}/qof/.libs -lqof
41
42
post-patch:
43
	@${REINPLACE_CMD} -e \
44
		's|__isleap|qof_date_isleap|g' ${QOF_WRKSRC}/qof/qofdate.c
45
	@${REINPLACE_CMD} -e \
46
		's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|g' \
47
			${QOF_WRKSRC}/Makefile.in
48
49
pre-configure:
50
	@(cd ${QOF_WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
51
		CC="${CC}" CFLAGS="${CFLAGS}" \
52
		CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
53
		./configure --prefix=${PREFIX} --disable-sqlite \
54
		--disable-error-on-warning)
55
	
56
pre-build:
57
	@(cd ${QOF_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
58
		${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
59
60
pre-install:
61
	@(cd ${QOF_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
62
		${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
63
33
.include <bsd.port.mk>
64
.include <bsd.port.mk>
(-)deskutils/gnotime/distinfo (-3 / +6 lines)
Lines 1-3 Link Here
1
MD5 (gnotime-2.2.2.tar.gz) = 8c05509f57a278de03a97fae110de3f5
1
MD5 (gnotime-2.3.0.tar.gz) = dd92b8c8a1f45e33000a3e14f227bcf8
2
SHA256 (gnotime-2.2.2.tar.gz) = c89681d50f13abd626ae2b1ddefcea3ecba0f564ca355f7005de712143fed1aa
2
SHA256 (gnotime-2.3.0.tar.gz) = 556e9bdc7704fa6bebce51581046d6c68b2428cd83e5fffae3f53e5a22906f24
3
SIZE (gnotime-2.2.2.tar.gz) = 1365243
3
SIZE (gnotime-2.3.0.tar.gz) = 1987788
4
MD5 (qof-0.7.5.tar.gz) = 91adad70f0a1da22f5e8c5cfd2b16f22
5
SHA256 (qof-0.7.5.tar.gz) = 39dbb47f59ef33d4754f622c4afcc201862743dbd974172f19be0c19cb53428c
6
SIZE (qof-0.7.5.tar.gz) = 906010
(-)deskutils/gnotime/files/patch-configure (-11 lines)
Lines 1-11 Link Here
1
--- configure.orig	Tue Mar 20 14:01:31 2007
2
+++ configure	Tue Mar 20 14:02:49 2007
3
@@ -24639,7 +24639,7 @@
4
 
5
 
6
 GTKHTMLPRESENT=no
7
-for GTKHTMLVER in 3.8 3.7 3.6 3.5 3.4 3.2 3.1 3.0 ; do
8
+for GTKHTMLVER in 3.14 3.8 3.7 3.6 3.5 3.4 3.2 3.1 3.0 ; do
9
   if $PKG_CONFIG --exists libgtkhtml-$GTKHTMLVER ; then
10
 
11
   succeeded=no
(-)deskutils/gnotime/files/patch-lib::qof::qofgobj.c (-140 lines)
Lines 1-140 Link Here
1
--- lib/qof/qofgobj.c.orig	Mon May 24 19:55:16 2004
2
+++ lib/qof/qofgobj.c	Mon May 24 20:01:38 2004
3
@@ -57,10 +57,11 @@
4
 void 
5
 qof_gobject_shutdown (void)
6
 {
7
+  GSList *n;
8
+
9
   if (!initialized) return;
10
   initialized = FALSE;
11
                                                                                 
12
-  GSList *n;
13
   for (n=paramList; n; n=n->next) g_free(n->data);
14
   g_slist_free (paramList);
15
 
16
@@ -83,11 +84,14 @@
17
 void 
18
 qof_gobject_register_instance (QofBook *book, QofType type, GObject *gob)
19
 {
20
+  QofCollection *coll;
21
+  GSList * instance_list;
22
+
23
   if (!book || !type) return;
24
 
25
-  QofCollection *coll = qof_book_get_collection (book, type);
26
+  coll = qof_book_get_collection (book, type);
27
 
28
-  GSList * instance_list = qof_collection_get_data (coll);
29
+  instance_list = qof_collection_get_data (coll);
30
   instance_list = g_slist_prepend (instance_list, gob);
31
   qof_collection_set_data (coll, instance_list);
32
 }
33
@@ -101,6 +105,8 @@
34
 
35
   GParamSpec *gps = getter->param_userdata;
36
 
37
+  const char * str;
38
+
39
   /* Note that the return type must actually be of type
40
    * getter->param_type but we just follow the hard-coded 
41
    * mapping below ... */
42
@@ -110,37 +116,40 @@
43
     g_value_init (&gval, G_TYPE_STRING);
44
     g_object_get_property (gob, getter->param_name, &gval);
45
 
46
-    const char * str = g_value_get_string (&gval);
47
+    str = g_value_get_string (&gval);
48
     return (gpointer) str;
49
   }
50
   else
51
   if (G_IS_PARAM_SPEC_INT(gps))
52
   {
53
+    int ival;
54
     GValue gval = {G_TYPE_INVALID};
55
     g_value_init (&gval, G_TYPE_INT);
56
     g_object_get_property (gob, getter->param_name, &gval);
57
 
58
-    int ival = g_value_get_int (&gval);
59
+    ival = g_value_get_int (&gval);
60
     return (gpointer) ival;
61
   }
62
   else
63
   if (G_IS_PARAM_SPEC_UINT(gps))
64
   {
65
+    int ival;
66
     GValue gval = {G_TYPE_INVALID};
67
     g_value_init (&gval, G_TYPE_UINT);
68
     g_object_get_property (gob, getter->param_name, &gval);
69
 
70
-    int ival = g_value_get_uint (&gval);
71
+    ival = g_value_get_uint (&gval);
72
     return (gpointer) ival;
73
   }
74
   else
75
   if (G_IS_PARAM_SPEC_BOOLEAN(gps))
76
   {
77
+    int ival;
78
     GValue gval = {G_TYPE_INVALID};
79
     g_value_init (&gval, G_TYPE_BOOLEAN);
80
     g_object_get_property (gob, getter->param_name, &gval);
81
 
82
-    int ival = g_value_get_boolean (&gval);
83
+    ival = g_value_get_boolean (&gval);
84
     return (gpointer) ival;
85
   }
86
 
87
@@ -161,21 +170,23 @@
88
    * mapping below ... */
89
   if (G_IS_PARAM_SPEC_FLOAT(gps))
90
   {
91
+    double fval;
92
     GValue gval = {G_TYPE_INVALID};
93
     g_value_init (&gval, G_TYPE_FLOAT);
94
     g_object_get_property (gob, getter->param_name, &gval);
95
 
96
-    double fval = g_value_get_float (&gval);
97
+    fval = g_value_get_float (&gval);
98
     return fval;
99
   }
100
   else
101
   if (G_IS_PARAM_SPEC_DOUBLE(gps))
102
   {
103
+    double fval;
104
     GValue gval = {G_TYPE_INVALID};
105
     g_value_init (&gval, G_TYPE_DOUBLE);
106
     g_object_get_property (gob, getter->param_name, &gval);
107
 
108
-    double fval = g_value_get_double (&gval);
109
+    fval = g_value_get_double (&gval);
110
     return fval;
111
   } 
112
 
113
@@ -208,13 +219,16 @@
114
   /* Get the GObject properties, convert to QOF properties */
115
   GParamSpec **prop_list;
116
   int n_props;
117
+  int i, j=0;
118
+  QofParam * qof_param_list;
119
+  QofObject *class_def;
120
+
121
   prop_list = g_object_class_list_properties (obclass, &n_props);
122
 
123
-  QofParam * qof_param_list = g_new0 (QofParam, n_props);
124
+  qof_param_list = g_new0 (QofParam, n_props);
125
   paramList = g_slist_prepend (paramList, qof_param_list);
126
 
127
   PINFO ("object %s has %d props", e_type, n_props);
128
-  int i, j=0;
129
   for (i=0; i<n_props; i++)
130
   {
131
     GParamSpec *gparam = prop_list[i];
132
@@ -288,7 +302,7 @@
133
 
134
   /* ------------------------------------------------------ */
135
    /* Now do the class itself */
136
-  QofObject *class_def = g_new0 (QofObject, 1);
137
+  class_def = g_new0 (QofObject, 1);
138
   classList = g_slist_prepend (classList, class_def);
139
 
140
   class_def->interface_version = QOF_OBJECT_VERSION;
(-)deskutils/gnotime/files/patch-lib::qof::qofid.c (-13 lines)
Lines 1-13 Link Here
1
--- lib/qof/qofid.c.orig	Sun May 23 22:57:30 2004
2
+++ lib/qof/qofid.c	Sun Jul  4 23:00:04 2004
3
@@ -182,8 +182,9 @@
4
 static void
5
 qof_collection_remove_entity (QofEntity *ent)
6
 {
7
+  QofCollection *col;
8
   if (!ent) return;
9
-  QofCollection *col = ent->collection;
10
+  col = ent->collection;
11
   if (!col) return;
12
   g_hash_table_remove (col->hash_of_entities, &ent->guid);
13
   ent->collection = NULL;
(-)deskutils/gnotime/files/patch-lib::qof::qofquery-deserial.c (-235 lines)
Lines 1-235 Link Here
1
--- lib/qof/qofquery-deserial.c.orig	Sun May 23 16:57:30 2004
2
+++ lib/qof/qofquery-deserial.c	Wed Jul  7 23:54:09 2004
3
@@ -80,7 +80,7 @@
4
    if (0 == strcmp (TOK, node->name))                        \
5
    {                                                         \
6
       const char *str = GET_TEXT (node);                     \
7
-      gint64 ival = atoll (str);                             \
8
+      gint64 ival = strtoll (str, (char **)NULL, 10);                             \
9
       FN (SELF, ival);                                       \
10
    }                                                         \
11
    else
12
@@ -182,10 +182,11 @@
13
 static QofQueryPredData *                                       \
14
 SUBRNAME (xmlNodePtr root)                                      \
15
 {                                                               \
16
+	QofQueryCompare how = QOF_COMPARE_EQUAL;                     \
17
+	QofQueryPredData *pred;                                      \
18
 	xmlNodePtr xp = root->xmlChildrenNode;                       \
19
 	xmlNodePtr node;                                             \
20
                                                                 \
21
-	QofQueryCompare how = QOF_COMPARE_EQUAL;                     \
22
 	CTYPE val = 0;                                               \
23
                                                                 \
24
 	for (node=xp; node; node = node->next)                       \
25
@@ -197,7 +198,6 @@
26
 		{}                                                        \
27
 	}                                                            \
28
                                                                 \
29
-	QofQueryPredData *pred;                                      \
30
 	pred = PRED (how, val);                                      \
31
 	return pred;                                                 \
32
 }
33
@@ -245,10 +245,11 @@
34
 static QofQueryPredData *
35
 qof_query_pred_kvp_from_xml (xmlNodePtr root)
36
 {
37
+	QofQueryCompare how = QOF_COMPARE_EQUAL;
38
+	QofQueryPredData *pred;
39
 	xmlNodePtr xp = root->xmlChildrenNode;
40
 	xmlNodePtr node;
41
 
42
-	QofQueryCompare how = QOF_COMPARE_EQUAL;
43
 	GSList *path = NULL;
44
 	KvpValue *value = NULL;
45
 
46
@@ -271,7 +272,6 @@
47
 		GET_DATE(&value,    wrap_new_timespec, "qofquery:date");
48
 	}
49
 
50
-	QofQueryPredData *pred;
51
 	pred = qof_query_kvp_predicate (how, path, value);
52
 	g_slist_free (path);
53
 	return pred;
54
@@ -282,9 +282,11 @@
55
 static QofQueryPredData *
56
 qof_query_pred_guid_from_xml (xmlNodePtr root)
57
 {
58
+	QofQueryPredData *pred;
59
+   GList *guid_list = NULL;
60
+   GList *n;
61
 	xmlNodePtr xp = root->xmlChildrenNode;
62
 	xmlNodePtr node;
63
-   GList *guid_list = NULL;
64
 
65
 	QofGuidMatch sm = QOF_GUID_MATCH_ANY;
66
 
67
@@ -313,11 +315,9 @@
68
 		}
69
 	}
70
 
71
-	QofQueryPredData *pred;
72
 	pred = qof_query_guid_predicate (sm, guid_list);
73
 
74
 	/* The predicate made a copy of everything, so free our stuff */
75
-   GList *n;
76
 	for (n=guid_list; n; n=n->next)
77
 	{
78
 		guid_free (n->data);
79
@@ -331,11 +331,12 @@
80
 static QofQueryPredData *
81
 qof_query_pred_char_from_xml (xmlNodePtr root)
82
 {
83
+	QofQueryPredData *pred;
84
+	QofCharMatch sm = QOF_CHAR_MATCH_ANY;
85
+   const char * char_list = NULL;
86
 	xmlNodePtr xp = root->xmlChildrenNode;
87
 	xmlNodePtr node;
88
 
89
-	QofCharMatch sm = QOF_CHAR_MATCH_ANY;
90
-   const char * char_list = NULL;
91
 
92
 	for (node=xp; node; node = node->next)
93
 	{
94
@@ -348,7 +349,6 @@
95
 		{}
96
 	}
97
 
98
-	QofQueryPredData *pred;
99
 	pred = qof_query_char_predicate (sm, char_list);
100
 	return pred;
101
 }
102
@@ -358,11 +358,12 @@
103
 static QofQueryPredData *
104
 qof_query_pred_numeric_from_xml (xmlNodePtr root)
105
 {
106
+	QofQueryCompare how = QOF_COMPARE_EQUAL;
107
+	QofNumericMatch sm = QOF_NUMERIC_MATCH_ANY;
108
+	QofQueryPredData *pred;
109
 	xmlNodePtr xp = root->xmlChildrenNode;
110
 	xmlNodePtr node;
111
 
112
-	QofQueryCompare how = QOF_COMPARE_EQUAL;
113
-	QofNumericMatch sm = QOF_NUMERIC_MATCH_ANY;
114
    gnc_numeric num;
115
 
116
 	for (node=xp; node; node = node->next)
117
@@ -376,7 +377,6 @@
118
 		{}
119
 	}
120
 
121
-	QofQueryPredData *pred;
122
 	pred = qof_query_numeric_predicate (how, sm, num);
123
 	return pred;
124
 }
125
@@ -386,12 +386,13 @@
126
 static QofQueryPredData *
127
 qof_query_pred_date_from_xml (xmlNodePtr root)
128
 {
129
-	xmlNodePtr xp = root->xmlChildrenNode;
130
-	xmlNodePtr node;
131
-
132
 	QofQueryCompare how = QOF_COMPARE_EQUAL;
133
 	QofDateMatch sm = QOF_DATE_MATCH_ROUNDED;
134
 	Timespec date = {0,0};
135
+	QofQueryPredData *pred;
136
+	xmlNodePtr xp = root->xmlChildrenNode;
137
+	xmlNodePtr node;
138
+
139
 
140
 	for (node=xp; node; node = node->next)
141
 	{
142
@@ -404,7 +405,6 @@
143
 		{}
144
 	}
145
 
146
-	QofQueryPredData *pred;
147
 	pred = qof_query_date_predicate (how, sm, date);
148
 	return pred;
149
 }
150
@@ -414,13 +414,14 @@
151
 static QofQueryPredData *
152
 qof_query_pred_string_from_xml (xmlNodePtr root)
153
 {
154
-	xmlNodePtr xp = root->xmlChildrenNode;
155
-	xmlNodePtr node;
156
-
157
 	QofQueryCompare how = QOF_COMPARE_EQUAL;
158
 	QofStringMatch sm = QOF_STRING_MATCH_CASEINSENSITIVE;
159
 	gboolean is_regex = FALSE;
160
 	const char *pstr = NULL;
161
+	QofQueryPredData *pred;
162
+	xmlNodePtr xp = root->xmlChildrenNode;
163
+	xmlNodePtr node;
164
+
165
 
166
 	for (node=xp; node; node = node->next)
167
 	{
168
@@ -434,7 +435,6 @@
169
 		{}
170
 	}
171
 
172
-	QofQueryPredData *pred;
173
 	pred = qof_query_string_predicate (how, pstr, sm , is_regex);
174
 	return pred;
175
 }
176
@@ -444,8 +444,8 @@
177
 static GSList * 
178
 qof_query_param_path_from_xml (xmlNodePtr root)
179
 {
180
-	xmlNodePtr pterms = root->xmlChildrenNode;
181
 	GSList *plist = NULL;
182
+	xmlNodePtr pterms = root->xmlChildrenNode;
183
 	xmlNodePtr node;
184
 	for (node=pterms; node; node = node->next)
185
 	{
186
@@ -465,10 +465,10 @@
187
 static void 
188
 qof_query_term_from_xml (QofQuery *q, xmlNodePtr root)
189
 {
190
-	xmlNodePtr node;
191
-	xmlNodePtr term = root->xmlChildrenNode;
192
 	QofQueryPredData *pred = NULL;
193
 	GSList *path = NULL;
194
+	xmlNodePtr node;
195
+	xmlNodePtr term = root->xmlChildrenNode;
196
 
197
 	for (node=term; node; node = node->next)
198
 	{
199
@@ -476,8 +476,9 @@
200
 		if (0 == strcmp (node->name, "qofquery:invert"))
201
 		{
202
 			QofQuery *qt = qof_query_create();
203
+			QofQuery *qinv;
204
 			qof_query_term_from_xml (qt, node);
205
-			QofQuery *qinv = qof_query_invert (qt);
206
+			qinv = qof_query_invert (qt);
207
 			qof_query_merge_in_place (q, qinv, QOF_QUERY_AND);
208
 			qof_query_destroy (qinv);
209
 			qof_query_destroy (qt);
210
@@ -594,10 +595,14 @@
211
 qof_query_from_xml (xmlNodePtr root)
212
 {
213
 	QofQuery *q;
214
+	xmlChar *version;
215
+	xmlNodePtr qpart;
216
+	xmlNodePtr node;
217
 
218
 	if (!root) return NULL;
219
 
220
-	xmlChar * version = xmlGetProp(root, "version");
221
+	version = xmlGetProp(root, "version");
222
+
223
    if (!root->name || strcmp ("qof:qofquery", root->name))
224
    {
225
 		// XXX something is wrong. warn ... 
226
@@ -606,8 +611,7 @@
227
 
228
 	q = qof_query_create ();
229
 
230
-	xmlNodePtr qpart = root->xmlChildrenNode;
231
-	xmlNodePtr node;
232
+	qpart = root->xmlChildrenNode;
233
 	for (node=qpart; node; node = node->next)
234
 	{
235
 		if (node->type != XML_ELEMENT_NODE) continue;
(-)deskutils/gnotime/files/patch-lib::qof::qofquery-serialize.c (-181 lines)
Lines 1-181 Link Here
1
--- lib/qof/qofquery-serialize.c.orig	Wed Jul  7 23:54:57 2004
2
+++ lib/qof/qofquery-serialize.c	Thu Jul  8 00:02:12 2004
3
@@ -228,9 +228,10 @@
4
 	if (!safe_strcmp (pd->type_name, QOF_TYPE_STRING))
5
 	{
6
 		xmlNodePtr topnode = xmlNewNode (NULL, "qofquery:pred-string");
7
+		query_string_t pdata;
8
 		PUT_HOW ("qofquery:compare", pd->how, LT, LTE, EQUAL, GT, GTE, NEQ);
9
 
10
-		query_string_t pdata = (query_string_t) pd;
11
+		pdata = (query_string_t) pd;
12
 		PUT_MATCH2("qofquery:string-match", pdata->options,
13
                        STRING_MATCH, NORMAL, CASEINSENSITIVE);
14
 		PUT_BOOL ("qofquery:is-regex", pdata->is_regex);
15
@@ -240,9 +241,10 @@
16
 	if (!safe_strcmp (pd->type_name, QOF_TYPE_NUMERIC))
17
 	{
18
 		xmlNodePtr topnode = xmlNewNode (NULL, "qofquery:pred-numeric");
19
+		query_numeric_t pdata;
20
 		PUT_HOW ("qofquery:compare", pd->how, LT, LTE, EQUAL, GT, GTE, NEQ);
21
 
22
-		query_numeric_t pdata = (query_numeric_t) pd;
23
+		pdata = (query_numeric_t) pd;
24
 		PUT_MATCH3("qofquery:numeric-match", pdata->options,
25
 		                 NUMERIC_MATCH, DEBIT, CREDIT, ANY);
26
 		
27
@@ -252,11 +254,12 @@
28
 	if (!safe_strcmp (pd->type_name, QOF_TYPE_KVP))
29
 	{
30
 		xmlNodePtr topnode = xmlNewNode (NULL, "qofquery:pred-kvp");
31
+		query_kvp_t pdata;
32
+		GSList *n;
33
 		PUT_HOW ("qofquery:compare", pd->how, LT, LTE, EQUAL, GT, GTE, NEQ);
34
 
35
-		query_kvp_t pdata = (query_kvp_t) pd;
36
+		pdata = (query_kvp_t) pd;
37
 		
38
-		GSList *n;
39
 		for (n=pdata->path; n; n=n->next)
40
 		{
41
 			PUT_STR ("qofquery:kvp-path", n->data);
42
@@ -267,9 +270,10 @@
43
 	if (!safe_strcmp (pd->type_name, QOF_TYPE_DATE))
44
 	{
45
 		xmlNodePtr topnode = xmlNewNode (NULL, "qofquery:pred-date");
46
+		query_date_t pdata;
47
 		PUT_HOW ("qofquery:compare", pd->how, LT, LTE, EQUAL, GT, GTE, NEQ);
48
 
49
-		query_date_t pdata = (query_date_t) pd;
50
+		pdata = (query_date_t) pd;
51
 		
52
 		PUT_MATCH2("qofquery:date-match", pdata->options,
53
 		                 DATE_MATCH, NORMAL, ROUNDED);
54
@@ -280,18 +284,20 @@
55
 	if (!safe_strcmp (pd->type_name, QOF_TYPE_INT64))
56
 	{
57
 		xmlNodePtr topnode = xmlNewNode (NULL, "qofquery:pred-int64");
58
+		query_int64_t pdata;
59
 		PUT_HOW ("qofquery:compare", pd->how, LT, LTE, EQUAL, GT, GTE, NEQ);
60
 
61
-		query_int64_t pdata = (query_int64_t) pd;
62
+		pdata = (query_int64_t) pd;
63
 		PUT_INT64 ("qofquery:int64", pdata->val);
64
 		return topnode;
65
 	}
66
 	if (!safe_strcmp (pd->type_name, QOF_TYPE_INT32))
67
 	{
68
 		xmlNodePtr topnode = xmlNewNode (NULL, "qofquery:pred-int32");
69
+		query_int32_t pdata;
70
 		PUT_HOW ("qofquery:compare", pd->how, LT, LTE, EQUAL, GT, GTE, NEQ);
71
 
72
-		query_int32_t pdata = (query_int32_t) pd;
73
+		pdata = (query_int32_t) pd;
74
 		
75
 		PUT_INT32 ("qofquery:int32", pdata->val);
76
 		return topnode;
77
@@ -299,9 +305,10 @@
78
 	if (!safe_strcmp (pd->type_name, QOF_TYPE_DOUBLE))
79
 	{
80
 		xmlNodePtr topnode = xmlNewNode (NULL, "qofquery:pred-double");
81
+		query_double_t pdata;
82
 		PUT_HOW ("qofquery:compare", pd->how, LT, LTE, EQUAL, GT, GTE, NEQ);
83
 
84
-		query_double_t pdata = (query_double_t) pd;
85
+		pdata = (query_double_t) pd;
86
 		
87
 		PUT_DBL ("qofquery:double", pdata->val);
88
 		return topnode;
89
@@ -309,9 +316,10 @@
90
 	if (!safe_strcmp (pd->type_name, QOF_TYPE_BOOLEAN))
91
 	{
92
 		xmlNodePtr topnode = xmlNewNode (NULL, "qofquery:pred-boolean");
93
+		query_boolean_t pdata;
94
 		PUT_HOW ("qofquery:compare", pd->how, LT, LTE, EQUAL, GT, GTE, NEQ);
95
 
96
-		query_boolean_t pdata = (query_boolean_t) pd;
97
+		pdata = (query_boolean_t) pd;
98
 		
99
 		PUT_BOOL ("qofquery:boolean", pdata->val);
100
 		return topnode;
101
@@ -386,9 +394,10 @@
102
 	for ( ; n; n=n->next)
103
 	{
104
 		QofQueryTerm *qt = n->data;
105
+		xmlNodePtr t;
106
 		if (!qt) continue;
107
 
108
-		xmlNodePtr t = qof_query_one_term_to_xml (n->data);
109
+		t = qof_query_one_term_to_xml (n->data);
110
 		if (t) xmlAddChild (terms, t);
111
 	}
112
 	return terms;
113
@@ -419,31 +428,37 @@
114
 qof_query_sorts_to_xml (QofQuery *q)
115
 {
116
 	QofQuerySort *s[3];
117
+	xmlNodePtr sortlist;
118
+	int i;
119
 	qof_query_get_sorts (q, &s[0], &s[1], &s[2]);
120
 
121
 	if (NULL == s[0]) return NULL;
122
 
123
-	xmlNodePtr sortlist = xmlNewNode (NULL, "qofquery:sort-list");
124
-	int i;
125
+	sortlist = xmlNewNode (NULL, "qofquery:sort-list");
126
 	for (i=0; i<3; i++)
127
 	{
128
+		GSList *plist;
129
+		xmlNodePtr sort;
130
+		xmlNodePtr topnode;
131
+		gboolean increasing;
132
+		gint opt;
133
+		xmlNodePtr pl;
134
 		if (NULL == s[i]) continue;
135
 
136
-		GSList *plist = qof_query_sort_get_param_path (s[i]);
137
+		plist = qof_query_sort_get_param_path (s[i]);
138
 		if (!plist) continue;
139
 
140
-		xmlNodePtr sort = xmlNewNode (NULL, "qofquery:sort");
141
+		sort = xmlNewNode (NULL, "qofquery:sort");
142
 		xmlAddChild (sortlist, sort);
143
 
144
-		xmlNodePtr topnode = sort;
145
-
146
-		gboolean increasing = qof_query_sort_get_increasing (s[i]);
147
+		topnode = sort;
148
+		increasing = qof_query_sort_get_increasing (s[i]);
149
 		PUT_STR ("qofquery:order", increasing ? "DESCENDING" : "ASCENDING");
150
 
151
-		gint opt = qof_query_sort_get_sort_options (s[i]);
152
+		opt = qof_query_sort_get_sort_options (s[i]);
153
 		PUT_INT32 ("qofquery:options", opt);
154
 
155
-		xmlNodePtr pl = qof_query_param_path_to_xml (plist);
156
+		pl = qof_query_param_path_to_xml (plist);
157
 		if (pl) xmlAddChild (sort, pl);
158
 	}
159
 
160
@@ -456,15 +471,18 @@
161
 do_qof_query_to_xml (QofQuery *q, xmlNodePtr topnode)
162
 {
163
 	QofIdType search_for = qof_query_get_search_for (q);
164
+	xmlNodePtr terms;
165
+	xmlNodePtr sorts;
166
+	gint max_results;
167
 	PUT_STR ("qofquery:search-for", search_for);
168
 
169
-	xmlNodePtr terms = qof_query_terms_to_xml(q);
170
+	terms = qof_query_terms_to_xml(q);
171
 	if (terms) xmlAddChild (topnode, terms);
172
 
173
-	xmlNodePtr sorts = qof_query_sorts_to_xml (q);
174
+	sorts = qof_query_sorts_to_xml (q);
175
 	if (sorts) xmlAddChild (topnode, sorts);
176
 
177
-	gint max_results = qof_query_get_max_results (q);
178
+	max_results = qof_query_get_max_results (q);
179
 	PUT_INT32 ("qofquery:max-results", max_results);
180
 }
181
 
(-)deskutils/gnotime/files/patch-lib::qof::qofquery.c (-17 lines)
Lines 1-17 Link Here
1
--- lib/qof/qofquery.c.orig	Wed Jul  7 22:39:18 2004
2
+++ lib/qof/qofquery.c	Wed Jul  7 22:39:27 2004
3
@@ -1216,13 +1216,13 @@
4
 
5
 void qof_query_set_book (QofQuery *q, QofBook *book)
6
 {
7
+  GSList *slist = NULL;
8
   if (!q || !book) return;
9
 
10
   /* Make sure this book is only in the list once */
11
   if (g_list_index (q->books, book) == -1)
12
     q->books = g_list_prepend (q->books, book);
13
 
14
-  GSList *slist = NULL;
15
   g_slist_prepend (slist, QOF_PARAM_GUID);
16
   g_slist_prepend (slist, QOF_PARAM_BOOK);
17
   qof_query_add_guid_match (q, slist,
(-)deskutils/gnotime/files/patch-lib::qof::qofsql.c (-323 lines)
Lines 1-323 Link Here
1
--- lib/qof/qofsql.c.orig	Sun May 23 16:58:28 2004
2
+++ lib/qof/qofsql.c	Thu Jul  8 00:11:24 2004
3
@@ -133,8 +133,9 @@
4
 	if (('\'' == str[0]) ||
5
 	    ('\"' == str[0]))
6
 	{
7
+		size_t len;
8
 		str ++;
9
-		size_t len = strlen(str);
10
+		len = strlen(str);
11
 		str[len-1] = 0;
12
 	}
13
 	return str;
14
@@ -146,6 +147,15 @@
15
 	char tmpbuff[128];
16
 	GSList *param_list;
17
 	QofQueryPredData *pred_data = NULL;
18
+	sql_field_item * sparam;
19
+	char * qparam_name;
20
+	sql_field_item * svalue;
21
+	char * qvalue_name;
22
+	QofQueryCompare qop;
23
+	char *table_name;
24
+	char *param_name;
25
+	QofType param_type;
26
+	QofQuery *qq;
27
 	
28
 	if (NULL == cond)
29
 	{
30
@@ -161,14 +171,14 @@
31
 		PWARN("missing left paramter");
32
 		return NULL;
33
 	}
34
-	sql_field_item * sparam = cond->d.pair.left->item;
35
+	sparam = cond->d.pair.left->item;
36
 	if (SQL_name != sparam->type)
37
 	{
38
 		PWARN("we support only paramter names at this time (parsed %d)",
39
           sparam->type);
40
 		return NULL;
41
 	}
42
-	char * qparam_name = sparam->d.name->data;
43
+	qparam_name = sparam->d.name->data;
44
 	if (NULL == qparam_name)
45
 	{
46
 		PWARN ("missing paramter name");
47
@@ -183,13 +193,13 @@
48
 		PWARN ("missing right paramter");
49
 		return NULL;
50
 	}
51
-	sql_field_item * svalue = cond->d.pair.right->item;
52
+	svalue = cond->d.pair.right->item;
53
 	if (SQL_name != svalue->type)
54
 	{
55
 		PWARN("we support only simple values (parsed as %d)", svalue->type);
56
 		return NULL;
57
 	}
58
-	char * qvalue_name = svalue->d.name->data;
59
+	qvalue_name = svalue->d.name->data;
60
 	if (NULL == qvalue_name)
61
 	{
62
 		PWARN("missing value");
63
@@ -202,16 +212,18 @@
64
 	 * If it is, look up the value. */
65
 	if (0 == strncasecmp (qvalue_name, "kvp://", 6))
66
 	{
67
+		KvpValue *kv;
68
+		KvpValueType kvt;
69
 		if (NULL == query->kvp_join)
70
 		{
71
 			PWARN ("missing kvp frame");
72
 			return NULL;
73
 		}
74
-		KvpValue *kv = kvp_frame_get_value (query->kvp_join, qvalue_name+5);
75
+		kv = kvp_frame_get_value (query->kvp_join, qvalue_name+5);
76
 		/* If there's no value, its not an error; 
77
 		 * we just don't do this predicate */
78
 		if (!kv) return NULL;  
79
-		KvpValueType kvt = kvp_value_get_type (kv);
80
+		kvt = kvp_value_get_type (kv);
81
 
82
 		tmpbuff[0] = 0x0;
83
 		qvalue_name = tmpbuff;
84
@@ -251,7 +263,6 @@
85
 	param_list = qof_query_build_param_list (qparam_name, NULL);
86
 
87
 	/* Get the where-term comparison operator */
88
-	QofQueryCompare qop;
89
 	switch (cond->op)
90
 	{
91
 		case SQL_eq:    qop = QOF_COMPARE_EQUAL; break;
92
@@ -270,8 +281,6 @@
93
 	/* OK, need to know the type of the thing being matched 
94
 	 * in order to build the correct predicate.  Get the type 
95
 	 * from the object parameters. */
96
-	char *table_name;
97
-	char *param_name;
98
 	get_table_and_param (qparam_name, &table_name, &param_name);
99
 	if (NULL == table_name)
100
 	{
101
@@ -290,7 +299,7 @@
102
 		return NULL;
103
 	}
104
 
105
-	QofType param_type = qof_class_get_parameter_type (table_name, param_name);
106
+	param_type = qof_class_get_parameter_type (table_name, param_name);
107
 	if (!param_type) 
108
 	{
109
 		PWARN ("The parameter \'%s\' on object \'%s\' is not known", 
110
@@ -319,7 +328,7 @@
111
 	}
112
 	else if (!strcmp (param_type, QOF_TYPE_INT64))
113
 	{
114
-		gint64 ival = atoll (qvalue_name);
115
+		gint64 ival = strtoll (qvalue_name, (char **)NULL, 10);
116
 		pred_data = qof_query_int64_predicate (qop, ival);
117
 	}
118
 	else if (!strcmp (param_type, QOF_TYPE_DOUBLE))
119
@@ -337,16 +346,17 @@
120
 		// XXX FIXME: this doesn't handle time strings, only date strings
121
 		// XXX should also see if we need to do a day-compare or time-compare.
122
 		/* work around highly bogus locale setting */
123
+		time_t exact;
124
+		int rc;
125
+		Timespec ts;
126
 		qof_date_format_set(QOF_DATE_FORMAT_US);
127
 
128
-		time_t exact;
129
-		int rc = qof_scan_date_secs (qvalue_name, &exact);
130
+		rc = qof_scan_date_secs (qvalue_name, &exact);
131
 		if (0 == rc) 
132
 		{
133
 			PWARN ("unable to parse date: %s", qvalue_name);
134
 			return NULL;
135
 		}
136
-		Timespec ts;
137
 		ts.tv_sec = exact;
138
 		ts.tv_nsec = 0;
139
 		pred_data = qof_query_date_predicate (qop, QOF_DATE_MATCH_DAY, ts);
140
@@ -367,7 +377,9 @@
141
 	else if (!strcmp (param_type, QOF_TYPE_GUID))
142
 	{
143
 		GUID guid;
144
+		QofGuidMatch gm;
145
 		gboolean rc = string_to_guid (qvalue_name, &guid);
146
+		GList *guid_list;
147
 		if (0 == rc)
148
 		{
149
 			PWARN ("unable to parse guid: %s", qvalue_name);
150
@@ -377,9 +389,9 @@
151
 		// XXX less, than greater than don't make sense,
152
 		// should check for those bad conditions
153
 
154
-		QofGuidMatch gm = QOF_GUID_MATCH_ANY;
155
+		gm = QOF_GUID_MATCH_ANY;
156
 		if (QOF_COMPARE_NEQ == qop) gm = QOF_GUID_MATCH_NONE;
157
-		GList *guid_list = g_list_append (NULL, &guid);
158
+		guid_list = g_list_append (NULL, &guid);
159
 		pred_data = qof_query_guid_predicate (gm, guid_list);
160
 
161
 		g_list_free (guid_list);
162
@@ -390,11 +402,15 @@
163
 		 * /some/path/string:value
164
 		 */
165
 		char *sep = strchr (qvalue_name, ':');
166
+		char * path;
167
+		char * str;
168
+		char * p;
169
+		KvpValue *kval = NULL;
170
+		int len;
171
 		if (!sep) return NULL;
172
 		*sep = 0;
173
-		char * path = qvalue_name;
174
-		char * str = sep +1;
175
-		char * p;
176
+		path = qvalue_name;
177
+		str = sep +1;
178
 		/* If str has only digits, we know its a plain number.
179
 		 * If its numbers and a decimal point, assume a float
180
 		 * If its numbers and a slash, assume numeric
181
@@ -402,8 +418,7 @@
182
 		 * If it looks like an iso date ... 
183
 		 * else assume its a string.
184
 		 */
185
-		KvpValue *kval = NULL;
186
-		int len = strlen (str);
187
+		len = strlen (str);
188
 		if ((32 == len) && (32 == strspn (str, "0123456789abcdef")))
189
 		{
190
 			GUID guid;
191
@@ -413,7 +428,7 @@
192
 		else
193
 		if (len == strspn (str, "0123456789"))
194
 		{
195
-			kval = kvp_value_new_gint64 (atoll(str));
196
+			kval = kvp_value_new_gint64 (strtoll(str, (char **)NULL, 10));
197
 		}
198
 		else
199
 		if ((p=strchr (str, '.')) && 
200
@@ -455,7 +470,7 @@
201
 		return NULL;
202
 	}
203
 
204
-	QofQuery *qq = qof_query_create();
205
+	qq = qof_query_create();
206
 	qof_query_add_term (qq, param_list, pred_data, QOF_QUERY_FIRST_TERM);
207
 	return qq;
208
 }
209
@@ -471,9 +486,10 @@
210
 		{
211
 			QofQuery *qleft = handle_where (query, swear->d.pair.left);
212
 			QofQuery *qright = handle_where (query, swear->d.pair.right);
213
+			QofQueryOp qop;
214
+			QofQuery * qq;
215
 			if (NULL == qleft) return qright;
216
 			if (NULL == qright) return qleft;
217
-			QofQueryOp qop;
218
 			switch (swear->d.pair.op)
219
 			{
220
 				case SQL_and: qop = QOF_QUERY_AND; break;
221
@@ -484,7 +500,7 @@
222
 					qof_query_destroy (qright);
223
 					return NULL;
224
 			}
225
-			QofQuery * qq = qof_query_merge (qleft, qright, qop);
226
+			qq = qof_query_merge (qleft, qright, qop);
227
 			qof_query_destroy (qleft);
228
 			qof_query_destroy (qright);
229
 			return qq;
230
@@ -511,11 +527,11 @@
231
 static void 
232
 handle_sort_order (QofSqlQuery *query, GList *sorder_list)
233
 {
234
-	if (!sorder_list) return;
235
-
236
 	GSList *qsp[3];
237
 	gboolean direction[3];
238
 	int i;
239
+	if (!sorder_list) return;
240
+
241
 
242
 	for (i=0; i<3; i++)
243
 	{
244
@@ -524,14 +540,15 @@
245
 
246
 		if (sorder_list)
247
 		{
248
+			char * qparam_name = NULL;
249
+			GList *n;
250
 			sql_order_field *sorder = sorder_list->data;
251
 
252
 			/* Set the sort direction */
253
 			if (SQL_asc == sorder->order_type) direction[i] = TRUE;
254
 
255
 			/* Find the paramter name */
256
-			char * qparam_name = NULL;
257
-			GList *n = sorder->name;
258
+			n = sorder->name;
259
 			if (n)
260
 			{
261
 				qparam_name = n->data;
262
@@ -559,6 +576,9 @@
263
 void 
264
 qof_sql_query_parse (QofSqlQuery *query, const char *str)
265
 {
266
+	GList *tables;
267
+	sql_select_statement *sss;
268
+	sql_where * swear;
269
 	if (!query) return;
270
 
271
 	/* Delete old query, if any */
272
@@ -590,14 +610,14 @@
273
 	 * user wrote "SELECT * FROM tableA, tableB WHERE ..."
274
 	 * then we don't have a single unique table-name.
275
 	 */
276
-	GList *tables = sql_statement_get_tables (query->parse_result);
277
+	tables = sql_statement_get_tables (query->parse_result);
278
 	if (1 == g_list_length (tables))
279
 	{
280
 		query->single_global_tablename = tables->data;
281
 	}
282
 
283
-	sql_select_statement *sss = query->parse_result->statement;
284
-	sql_where * swear = sss->where;
285
+	sss = query->parse_result->statement;
286
+	swear = sss->where;
287
 	if (swear)
288
 	{
289
 		/* Walk over the where terms, turn them into QOF predicates */
290
@@ -626,6 +646,7 @@
291
 qof_sql_query_run (QofSqlQuery *query, const char *str)
292
 {
293
 	GList *node;
294
+	GList *results;
295
 
296
 	if (!query) return NULL;
297
 
298
@@ -635,7 +656,7 @@
299
 	qof_query_set_book (query->qof_query, query->book);
300
 
301
 	// qof_query_print (query->qof_query);
302
-	GList *results = qof_query_run (query->qof_query);
303
+	results = qof_query_run (query->qof_query);
304
 
305
 	return results;
306
 }
307
@@ -644,6 +665,7 @@
308
 qof_sql_query_rerun (QofSqlQuery *query)
309
 {
310
 	GList *node;
311
+	GList *results;
312
 
313
 	if (!query) return NULL;
314
 
315
@@ -652,7 +674,7 @@
316
 	qof_query_set_book (query->qof_query, query->book);
317
 
318
 	// qof_query_print (query->qof_query);
319
-	GList *results = qof_query_run (query->qof_query);
320
+	results = qof_query_run (query->qof_query);
321
 
322
 	return results;
323
 }
(-)deskutils/gnotime/files/patch-src::export.c (-36 lines)
Lines 1-36 Link Here
1
--- src/export.c.orig	Thu Jul  8 00:14:29 2004
2
+++ src/export.c	Thu Jul  8 00:15:18 2004
3
@@ -124,12 +124,14 @@
4
 export_really (GtkWidget *widget, export_format_t *xp)
5
 {
6
 	gboolean rc;
7
+	GnomeVFSURI *parsed_uri;
8
+	gboolean exists;
9
+	GnomeVFSResult result;
10
 
11
 	xp->uri = gtk_file_selection_get_filename (xp->picker);
12
 
13
-	GnomeVFSURI *parsed_uri;
14
 	parsed_uri = gnome_vfs_uri_new (xp->uri);
15
-	gboolean exists = gnome_vfs_uri_exists (parsed_uri);
16
+	exists = gnome_vfs_uri_exists (parsed_uri);
17
 	if (exists) 
18
 	{
19
 		GtkWidget *w;
20
@@ -144,14 +146,14 @@
21
 		if (0 == gnome_dialog_run (GNOME_DIALOG (w))) goto done;
22
 	}
23
 
24
-	GnomeVFSResult result;
25
 	result = gnome_vfs_create (&xp->handle, xp->uri, GNOME_VFS_OPEN_WRITE,
26
 	                 FALSE, 0644);
27
 	if (GNOME_VFS_OK != result)
28
 	{
29
 		char *s;
30
+		GtkWidget *w;
31
 		s = g_strdup_printf (_("File %s dould not be opened"), xp->uri);
32
-		GtkWidget *w = gnome_error_dialog (s);
33
+		w = gnome_error_dialog (s);
34
 		gnome_dialog_set_parent (GNOME_DIALOG (w), GTK_WINDOW (xp->picker));
35
 		g_free (s);
36
 		goto done;
(-)deskutils/gnotime/files/patch-src::ghtml.c (-63 lines)
Lines 1-63 Link Here
1
--- src/ghtml.c.orig	Sat May 22 09:16:50 2004
2
+++ src/ghtml.c	Thu Jul  8 00:16:27 2004
3
@@ -169,8 +169,9 @@
4
 			type = SCM_CDR (node);
5
 			if (SCM_SYMBOLP(type) || SCM_STRINGP (type))
6
 			{
7
+				char *buff;
8
 				cur_type = GTT_NONE;
9
-				char *buff = SCM_STRING_CHARS (type);
10
+				buff = SCM_STRING_CHARS (type);
11
 
12
 				if ((!strncmp (buff, "gtt-project-ptr",15)) ||
13
 				    (!strncmp (buff, "gtt-project-list",16)))
14
@@ -1271,6 +1272,9 @@
15
 static SCM 
16
 my_catch_handler (void *data, SCM tag, SCM throw_args)
17
 {
18
+	SCM fmt;
19
+	SCM s_str;
20
+
21
 	printf ("Error: GnoTime caught error during scheme parse\n");
22
 	if (SCM_SYMBOLP(tag))
23
 	{
24
@@ -1279,8 +1283,8 @@
25
 	}
26
 	scm_backtrace(); 
27
 
28
-	SCM fmt = scm_makfrom0str ("~S");
29
-	SCM s_str = scm_simple_format (SCM_BOOL_F, fmt, SCM_LIST1(throw_args));
30
+	fmt = scm_makfrom0str ("~S");
31
+	s_str = scm_simple_format (SCM_BOOL_F, fmt, SCM_LIST1(throw_args));
32
 	printf ("\tthrow_args=%s\n", SCM_STRING_CHARS (s_str));
33
 
34
 	return SCM_EOL;
35
@@ -1297,8 +1301,9 @@
36
 	/* no-op for now, just copy it into the window  */
37
 	if (ghtml->write_stream)
38
 	{
39
+		size_t nr;
40
 		(ghtml->write_stream) (ghtml, "<link", 5, ghtml->user_data);
41
-		size_t nr = strlen (str);
42
+		nr = strlen (str);
43
 		(ghtml->write_stream) (ghtml, str, nr, ghtml->user_data);
44
 		(ghtml->write_stream) (ghtml, ">", 1, ghtml->user_data);
45
 	}
46
@@ -1313,6 +1318,8 @@
47
 	GString *template;
48
 	char *start, *end, *scmstart, *comstart, *linkstart;
49
 	size_t nr;
50
+	GnomeVFSResult    result;
51
+	GnomeVFSHandle   *handle;
52
 
53
 	if (!ghtml) return;
54
 	if (prj) ghtml->prj = prj;
55
@@ -1327,8 +1334,6 @@
56
 	}
57
 
58
 	/* Try to get the ghtml file ... */
59
-	GnomeVFSResult    result;
60
-	GnomeVFSHandle   *handle;
61
 	result = gnome_vfs_open (&handle, filepath, GNOME_VFS_OPEN_READ);
62
 	if ((GNOME_VFS_OK != result) && (0==ghtml->open_count))
63
 	{
(-)deskutils/gnotime/files/patch-src::idle-dialog.c (-54 lines)
Lines 1-54 Link Here
1
--- src/idle-dialog.c.orig	Thu Jul  8 00:17:13 2004
2
+++ src/idle-dialog.c	Thu Jul  8 00:18:46 2004
3
@@ -111,12 +111,14 @@
4
 {
5
 	char * p;
6
 	char * ret;
7
+	int ampcnt = 0;
8
+	int len;
9
+	const char *start;
10
 
11
 	p = strchr (str, '&');
12
 	if (!p) return g_strdup (str);
13
 
14
 	/* count number of ampersands */
15
-	int ampcnt = 0;
16
 	while (p)
17
 	{
18
 		ampcnt ++;
19
@@ -124,12 +126,12 @@
20
 	}
21
 	
22
 	/* make room for the escapes */
23
-	int len = strlen(str);
24
+	len = strlen(str);
25
 	ret = g_new0 (char, len+4*ampcnt+1);
26
 	
27
 	/* replace & by &amp; unless its already &amp; */
28
 	p = strchr (str, '&');
29
-	const char *start = str;
30
+	start = str;
31
 	while (p)
32
 	{
33
 		strncat (ret, start, p-start);
34
@@ -158,6 +160,8 @@
35
 	char * msg;
36
 	time_t now = time(0);
37
 	time_t idle_time;
38
+	char *ptitle;
39
+	char *pdesc;
40
 	
41
 	/* Set a value for the thingy under the slider */
42
 	if (3600 > credit)
43
@@ -201,9 +205,9 @@
44
 	/* Update the total elapsed time part of the message */
45
 	idle_time = now - dlg->last_activity;
46
 	
47
-	char *ptitle = util_escape_html_markup (
48
+	ptitle = util_escape_html_markup (
49
 	                            gtt_project_get_title(dlg->prj));
50
-	char *pdesc = util_escape_html_markup (
51
+	pdesc = util_escape_html_markup (
52
 	                            gtt_project_get_desc(dlg->prj));
53
 	if (3600 > idle_time)
54
 	{
(-)deskutils/gnotime/files/patch-src::journal.c (-224 lines)
Lines 1-224 Link Here
1
--- src/journal.c.orig	Fri Sep  2 22:42:18 2005
2
+++ src/journal.c	Fri Oct 21 11:44:50 2005
3
@@ -201,8 +201,10 @@
4
 
5
 	/* Don't clobber the file, ask user for permission */
6
 	GnomeVFSURI *parsed_uri;
7
+	gboolean exists;
8
+	GnomeVFSResult    result;
9
 	parsed_uri = gnome_vfs_uri_new  (filename);
10
-	gboolean exists = gnome_vfs_uri_exists (parsed_uri);
11
+	exists = gnome_vfs_uri_exists (parsed_uri);
12
 	gnome_vfs_uri_unref (parsed_uri);
13
 	if (exists)
14
 	{
15
@@ -218,7 +220,6 @@
16
 	}
17
 
18
 	/* Try to open the file for writing */
19
-	GnomeVFSResult    result;
20
 	result = gnome_vfs_create (&wig->handle, filename,
21
 	                     GNOME_VFS_OPEN_WRITE, FALSE, 0644);
22
 
23
@@ -393,12 +394,15 @@
24
 	GttTask *tsk = gtt_interval_get_parent (wig->interval);
25
 	GttProject *prj = gtt_task_get_parent (tsk);
26
 	GList *tasks = gtt_project_get_tasks (prj);
27
+	GList *this_task;
28
+	GList *prev_task;
29
+	GttTask *newtask;
30
 	if (!tasks) return;
31
-	GList *this_task = g_list_find (tasks, tsk);
32
+	this_task = g_list_find (tasks, tsk);
33
 	if (!this_task) return;
34
-	GList *prev_task = this_task->prev;
35
+	prev_task = this_task->prev;
36
 	if (!prev_task) return;
37
-	GttTask *newtask = prev_task->data;
38
+	newtask = prev_task->data;
39
 	gtt_task_append_interval (newtask, wig->interval);
40
 }
41
 
42
@@ -409,12 +413,15 @@
43
 	GttTask *tsk = gtt_interval_get_parent (wig->interval);
44
 	GttProject *prj = gtt_task_get_parent (tsk);
45
 	GList *tasks = gtt_project_get_tasks (prj);
46
+	GList *this_task;
47
+	GList *next_task;
48
+	GttTask *newtask;
49
 	if (!tasks) return;
50
-	GList *this_task = g_list_find (tasks, tsk);
51
+	this_task = g_list_find (tasks, tsk);
52
 	if (!this_task) return;
53
-	GList *next_task = this_task->next;
54
+	next_task = this_task->next;
55
 	if (!next_task) return;
56
-	GttTask *newtask = next_task->data;
57
+	newtask = next_task->data;
58
 	gtt_task_add_interval (newtask, wig->interval);
59
 }
60
 
61
@@ -462,6 +469,7 @@
62
 static void
63
 interval_popup_cb (Wiggy *wig)
64
 {
65
+	GttTask *tsk;
66
 	gtk_menu_popup(GTK_MENU(wig->interval_popup),
67
 		NULL, NULL, NULL, wig, 1, 0);
68
 	if (cutted_task_list)
69
@@ -495,7 +503,7 @@
70
 		gtk_widget_set_sensitive (wig->interval_move_down, FALSE);
71
 	}
72
 
73
-	GttTask *tsk = gtt_interval_get_parent(wig->interval);
74
+	tsk = gtt_interval_get_parent(wig->interval);
75
 	if (gtt_task_is_first_task (tsk))
76
 	{
77
 		gtk_widget_set_sensitive (wig->interval_move_up, FALSE);
78
@@ -559,6 +567,7 @@
79
 static void
80
 task_delete_memo_clicked_cb(GtkWidget * w, gpointer data)
81
 {
82
+	GList * ctl;
83
 	Wiggy *wig = (Wiggy *) data;
84
 
85
 	/* It is physically impossible to cut just the memo, without
86
@@ -567,7 +576,7 @@
87
 
88
 	gtt_task_merge_up (wig->task);
89
 
90
-	GList * ctl = g_list_prepend(cutted_task_list, wig->task);
91
+	ctl = g_list_prepend(cutted_task_list, wig->task);
92
 	gtt_task_remove (wig->task);
93
 	cutted_task_list = ctl;
94
 }
95
@@ -749,9 +758,10 @@
96
 on_close_clicked_cb (GtkWidget *w, gpointer data)
97
 {
98
 	Wiggy *wig = (Wiggy *) data;
99
+	GtkWidget *topper;
100
 
101
 	if (NULL == wig->top) return;  /* avoid recursive double-free */
102
-	GtkWidget *topper = wig->top;   /* avoid recursion */
103
+	topper = wig->top;   /* avoid recursion */
104
 	wig->top = NULL;
105
 
106
 	/* Unplug the timout function, so that timer doesn't
107
@@ -856,17 +866,17 @@
108
 {
109
 	Wiggy *wig = data;
110
 	const char * path = gtt_ghtml_resolve_path (url, wig->filepath);
111
-	if (!path) return;
112
-
113
 	GnomeVFSResult    result;
114
 	GnomeVFSHandle   *vfs;
115
+#define BSZ 16000
116
+	char buff[BSZ];
117
+	GnomeVFSFileSize  bytes_read;
118
+	if (!path) return;
119
+
120
 	result = gnome_vfs_open (&vfs, path, GNOME_VFS_OPEN_READ);
121
 
122
 	if (GNOME_VFS_OK != result) return;
123
 
124
-#define BSZ 16000
125
-	char buff[BSZ];
126
-	GnomeVFSFileSize  bytes_read;
127
 	result = gnome_vfs_read (vfs, buff, BSZ, &bytes_read);
128
 	while (GNOME_VFS_OK == result)
129
 	{
130
@@ -891,6 +901,7 @@
131
 {
132
 	char * str;
133
 	gpointer addr = NULL;
134
+	char * msg = _("Left-click to bring up menu");
135
 
136
 	/* h4x0r al3rt bare-naked pointer parsing! */
137
 	str = strstr (url, "0x");
138
@@ -927,7 +938,6 @@
139
 		return msg;
140
 	}
141
 
142
-	char * msg = _("Left-click to bring up menu");
143
 	return g_strdup (msg);
144
 }
145
 
146
@@ -991,8 +1001,14 @@
147
 	/* Create and initialize the hover-help window */
148
 	if (!wig->hover_help_window)
149
 	{
150
+		GtkWidget *label;
151
+		int px=0, py=0, rx=0, ry=0;
152
+		GtkWindow *wino;
153
+		GtkWidget *frame;
154
+		GtkWidget *align;
155
+
156
 		wig->hover_help_window = gtk_window_new(GTK_WINDOW_POPUP);
157
-		GtkWindow *wino = GTK_WINDOW (wig->hover_help_window);
158
+		wino = GTK_WINDOW (wig->hover_help_window);
159
 		gtk_window_set_decorated (wino, FALSE);
160
 		gtk_window_set_destroy_with_parent (wino, TRUE);
161
 		gtk_window_set_transient_for (wino, GTK_WINDOW(wig->top));
162
@@ -1000,19 +1016,19 @@
163
 		gtk_window_set_resizable (wino, FALSE);  /* FALSE to enable auto-resize */
164
 
165
 		/* There must be a better way to draw a line around the box ?? */
166
-		GtkWidget *frame = gtk_frame_new (NULL);
167
+		frame = gtk_frame_new (NULL);
168
 		gtk_container_add(GTK_CONTAINER(wino), frame);
169
 		gtk_container_set_resize_mode (GTK_CONTAINER(frame), GTK_RESIZE_PARENT);
170
 		gtk_widget_show (frame);
171
 
172
 		/* There must be a better way to pad the text all around ?? */
173
-		GtkWidget *align = gtk_alignment_new (0.5, 0.5, 1.0, 1.0);
174
+		align = gtk_alignment_new (0.5, 0.5, 1.0, 1.0);
175
 		// gtk_alignment_set_padding (GTK_ALIGNMENT(align), 6, 6, 6, 6);
176
 		gtk_container_add(GTK_CONTAINER(frame), align);
177
 		gtk_container_set_resize_mode (GTK_CONTAINER(align), GTK_RESIZE_PARENT);
178
 		gtk_widget_show (align);
179
 
180
-		GtkWidget *label = gtk_label_new ("xxx");
181
+		label = gtk_label_new ("xxx");
182
 		wig->hover_label = GTK_LABEL (label);
183
 		gtk_container_add(GTK_CONTAINER(align), label);
184
 		gtk_widget_show (label);
185
@@ -1021,7 +1037,6 @@
186
 		gtk_window_set_focus (GTK_WINDOW(wig->top), GTK_WIDGET(wig->html));
187
 
188
 		/* Set up in initial default, so later move works. */
189
-		int px=0, py=0, rx=0, ry=0;
190
 		gtk_widget_get_pointer (GTK_WIDGET(wig->top), &px, &py);
191
 		gtk_window_get_position (GTK_WINDOW(wig->top), &rx, &ry);
192
 		gtk_window_move (wino, rx+px, ry+py);
193
@@ -1072,25 +1087,28 @@
194
 perform_form_query (KvpFrame *kvpf)
195
 {
196
 	GList *results, *n;
197
+	char *user_debug;
198
+	char *query_string;
199
+	QofSqlQuery *q;
200
 
201
 	if (!kvpf) return NULL;
202
 
203
 	/* Allow the user to enable form debugging by adding the following html:
204
 	 * <input type="hidden" name="debug" value="1">
205
 	 */
206
-	char *user_debug = kvp_frame_get_string (kvpf, "debug");
207
+	user_debug = kvp_frame_get_string (kvpf, "debug");
208
 	if (user_debug)
209
 	{
210
 		printf ("Debug: HTML Form Input=%s\n", kvp_frame_to_string (kvpf));
211
 	}
212
 
213
-	QofSqlQuery *q = qof_sql_query_new();
214
+	q = qof_sql_query_new();
215
 
216
 	if (!book) book = qof_book_new();
217
 	qof_sql_query_set_book (q, book);
218
 	qof_sql_query_set_kvp (q, kvpf);
219
 
220
-	char *query_string = kvp_frame_get_string (kvpf, "query");
221
+	query_string = kvp_frame_get_string (kvpf, "query");
222
 	if (!query_string) return NULL;
223
 	if (0 == query_string[0]) return NULL;
224
 
(-)deskutils/gnotime/files/patch-src::log.c (-25 lines)
Lines 1-25 Link Here
1
--- src/log.c.orig	Thu Jul  8 00:23:54 2004
2
+++ src/log.c	Thu Jul  8 00:24:18 2004
3
@@ -37,6 +37,8 @@
4
 	char *filename;
5
 	GnomeVFSHandle   *handle;
6
 	GnomeVFSResult    result;
7
+	GnomeVFSFileSize bytes_written;
8
+	int rc;
9
 
10
 	g_return_val_if_fail (logstr != NULL, FALSE);
11
 
12
@@ -67,12 +69,11 @@
13
 		t = time(NULL);
14
 
15
 	/* Translators: Format to use in the gnotime logfile */
16
-	int rc = strftime (date, sizeof (date), _("%b %d %H:%M:%S"), localtime(&t));
17
+	rc = strftime (date, sizeof (date), _("%b %d %H:%M:%S"), localtime(&t));
18
 	if (0 >= rc) strcpy (date, "???");
19
 
20
 	/* Append to end of file */
21
 	gnome_vfs_seek (handle, GNOME_VFS_SEEK_END, 0);
22
-	GnomeVFSFileSize bytes_written;
23
 	gnome_vfs_write (handle, date, strlen(date), &bytes_written);
24
 	gnome_vfs_write (handle, logstr, strlen(logstr), &bytes_written);
25
 	gnome_vfs_write (handle, "\n", 1, &bytes_written);
(-)deskutils/gnotime/files/patch-src::main.c (-67 lines)
Lines 1-67 Link Here
1
--- src/main.c.orig	Fri Sep  2 01:02:57 2005
2
+++ src/main.c	Fri Oct 21 11:49:42 2005
3
@@ -301,6 +301,7 @@
4
 	char * xml_filepath;
5
 	gboolean read_is_ok;
6
 	char *errmsg, *qmsg;
7
+	GtkWidget *mb;
8
 
9
 	xml_filepath = resolve_old_path (config_data_url);
10
 
11
@@ -349,7 +350,6 @@
12
 			_("Do you want to continue?"),
13
 			NULL);
14
 
15
-	GtkWidget *mb;
16
 	mb = gtk_message_dialog_new (NULL,
17
 	         GTK_DIALOG_MODAL,
18
 	         GTK_MESSAGE_ERROR,
19
@@ -400,13 +400,13 @@
20
 	{
21
 		const char *fp;
22
 		char *errmsg, *qmsg;
23
+		GtkWidget *mb;
24
 		fp = gtt_get_config_filepath();
25
 		errmsg = gtt_err_to_string (conf_errcode, fp);
26
 		qmsg = g_strconcat (errmsg,
27
 			_("Shall I setup a new configuration?"),
28
 			NULL);
29
 
30
-		GtkWidget *mb;
31
 		mb = gtk_message_dialog_new (NULL,
32
 		         GTK_DIALOG_MODAL,
33
 		         GTK_MESSAGE_ERROR,
34
@@ -721,11 +721,7 @@
35
 int
36
 main(int argc, char *argv[])
37
 {
38
-#if defined (HAVE_DECL_WNOHANG) || defined (HAVE_DECL_SA_NOCLDWAIT)
39
-	struct sigaction reapchildren;
40
-	memset(&reapchildren, 0, sizeof reapchildren);
41
-#endif /*  WNOHANG/SA_NOCLDWAIT */
42
-
43
+	GnomeClient *client;
44
 	static char *geometry_string = NULL;
45
 	static const struct poptOption geo_options[] =
46
 	{
47
@@ -736,6 +732,11 @@
48
 		{NULL, '\0', 0, NULL, 0}
49
 	};
50
 
51
+#if defined (HAVE_DECL_WNOHANG) || defined (HAVE_DECL_SA_NOCLDWAIT)
52
+	struct sigaction reapchildren;
53
+	memset(&reapchildren, 0, sizeof reapchildren);
54
+#endif /*  WNOHANG/SA_NOCLDWAIT */
55
+
56
 	gnome_program_init(PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv,
57
 		                   GNOME_PARAM_POPT_TABLE, geo_options,
58
 		                   GNOME_PROGRAM_STANDARD_PROPERTIES, NULL);
59
@@ -747,7 +748,7 @@
60
 	bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
61
 	textdomain(GETTEXT_PACKAGE);
62
 
63
-	GnomeClient *client = gnome_master_client();
64
+	client = gnome_master_client();
65
 	g_signal_connect(G_OBJECT(client), "save_yourself",
66
 			   G_CALLBACK(save_state), (gpointer) argv[0]);
67
 	g_signal_connect(G_OBJECT(client), "die",
(-)deskutils/gnotime/files/patch-src::menucmd.c (-50 lines)
Lines 1-50 Link Here
1
--- src/menucmd.c.orig	Thu Sep  1 18:33:25 2005
2
+++ src/menucmd.c	Fri Oct 21 11:50:56 2005
3
@@ -344,6 +344,7 @@
4
 cut_project(GtkWidget *w, gpointer data)
5
 {
6
 	GttProject *cut_prj;
7
+	GttProject *prj;
8
 
9
 	/* Do NOT cut unless the ctree window actually has focus.
10
 	 * Otherwise, it will lead to cutting mayhem.
11
@@ -365,7 +366,7 @@
12
 
13
 	/* Update various subsystems */
14
 	/* Set the notes are to whatever the new focus project is. */
15
-	GttProject *prj = ctree_get_focus_project (global_ptw);
16
+	prj = ctree_get_focus_project (global_ptw);
17
 	notes_area_set_project (global_na, prj);
18
 
19
 	menu_set_states();      /* To enable paste menu item */
20
@@ -425,6 +426,7 @@
21
 copy_project(GtkWidget *w, gpointer data)
22
 {
23
 	GttProject *prj;
24
+	GList *n;
25
 	prj = ctree_get_focus_project (global_ptw);
26
 
27
 	if (!prj) return;
28
@@ -435,7 +437,7 @@
29
 	 * the list of earlier cut projects.  We do this in order
30
 	 * to allow the most recently copied project to be pasted
31
 	 * multiple times.  */
32
-	GList *n = cutted_project_list;
33
+	n = cutted_project_list;
34
 	for (n=cutted_project_list; n; n=n->next)
35
 	{
36
 		GttProject *p = n->data;
37
@@ -520,12 +522,12 @@
38
 menu_howto_edit_times (GtkWidget *w,gpointer data)
39
 {
40
 	char * msg;
41
+	GtkWidget *mb;
42
 
43
 	msg = _("To edit the timer interval for this project,\n"
44
 	        "open the Activity window and click on a link.\n"
45
 	        "This will bring up a menu of time editing options.\n");
46
 
47
-	GtkWidget *mb;
48
 	mb = gtk_message_dialog_new (NULL,
49
 	         GTK_DIALOG_MODAL,
50
 	         GTK_MESSAGE_INFO,
(-)deskutils/gnotime/files/patch-src::plug-in.c (-22 lines)
Lines 1-22 Link Here
1
--- src/plug-in.c.orig	Thu Jul  8 00:26:35 2004
2
+++ src/plug-in.c	Thu Jul  8 00:27:06 2004
3
@@ -96,6 +96,8 @@
4
 {
5
 	const char *title, *path, *tip;
6
 	NewPluginDialog *dlg = data;
7
+	GnomeVFSURI *parsed_uri;
8
+	gboolean exists;
9
 
10
 	/* Get the dialog contents */
11
 	title = gtk_entry_get_text (dlg->plugin_name);
12
@@ -103,9 +105,8 @@
13
 	tip = gtk_entry_get_text (dlg->plugin_tooltip);
14
 
15
 	/* Do a basic sanity check */
16
-	GnomeVFSURI *parsed_uri;
17
 	parsed_uri = gnome_vfs_uri_new (path);
18
-	gboolean exists = gnome_vfs_uri_exists (parsed_uri);
19
+	exists = gnome_vfs_uri_exists (parsed_uri);
20
 	gnome_vfs_uri_unref (parsed_uri);
21
 	if (!exists)
22
 	{
(-)deskutils/gnotime/files/patch-src::prefs.c (-96 lines)
Lines 1-96 Link Here
1
--- src/prefs.c.orig	Fri Sep  2 23:08:26 2005
2
+++ src/prefs.c	Fri Oct 21 11:54:01 2005
3
@@ -199,10 +199,12 @@
4
 scan_time_string (const char *str)
5
 {
6
 	int hours=0, minutes=0, seconds = 0;
7
+	int totalsecs;
8
 	char buff[24];
9
+	char *p;
10
 	strncpy (buff, str, 24);
11
 	buff[23]=0;
12
-	char * p = strchr (buff, ':');
13
+	p = strchr (buff, ':');
14
 	if (p) *p = 0;
15
 	hours = atoi (buff);
16
 	if (p)
17
@@ -220,7 +222,7 @@
18
 	minutes %= 60;
19
 	hours %= 24;
20
 
21
-	int totalsecs = hours*3600 + minutes*60 + seconds;
22
+	totalsecs = hours*3600 + minutes*60 + seconds;
23
 	if (12*3600 < totalsecs) totalsecs -= 24*3600;
24
 	return totalsecs;
25
 }
26
@@ -391,15 +393,17 @@
27
 	if (5 == page)
28
 	{
29
 		int change = 0;
30
+		const char *buff;
31
+		int off, day;
32
 		config_idle_timeout = atoi(gtk_entry_get_text(GTK_ENTRY(odlg->idle_secs)));
33
 		config_no_project_timeout = atoi(gtk_entry_get_text(GTK_ENTRY(odlg->no_project_secs)));
34
 
35
 		/* Hunt for the hour-of night on which to start */
36
-		const char * buff = gtk_entry_get_text (odlg->daystart_secs);
37
-		int off = scan_time_string (buff);
38
+		buff = gtk_entry_get_text (odlg->daystart_secs);
39
+		off = scan_time_string (buff);
40
 		SET_VAL (config_daystart_offset,off);
41
 
42
-		int day = get_optionmenu_item (odlg->weekstart_menu);
43
+		day = get_optionmenu_item (odlg->weekstart_menu);
44
 		SET_VAL (config_weekstart_offset, day);
45
 
46
 		if (change)
47
@@ -440,6 +444,8 @@
48
 options_dialog_set(PrefsDialog *odlg)
49
 {
50
 	char s[30];
51
+	int hour, secs, day;
52
+	char buff[24];
53
 
54
 	SET_ACTIVE(secs);
55
 	SET_ACTIVE(statusbar);
56
@@ -518,7 +524,6 @@
57
 	gtk_entry_set_text(GTK_ENTRY(odlg->no_project_secs), s);
58
 
59
 	/* Set the correct menu item based on current values */
60
-	int hour;
61
 	if (0<config_daystart_offset)
62
 	{
63
 		hour = (config_daystart_offset +1800)/3600;
64
@@ -533,14 +538,13 @@
65
 	set_optionmenu_item (odlg->daystart_menu, hour);
66
 
67
 	/* Print the daystart offset as a string in 24 hour time */
68
-	int secs = config_daystart_offset;
69
+	secs = config_daystart_offset;
70
 	if (0 > secs) secs += 24*3600;
71
-	char buff[24];
72
 	qof_print_hours_elapsed_buff (buff, 24, secs, config_show_secs);   
73
 	gtk_entry_set_text (odlg->daystart_secs, buff);
74
 
75
 	/* Set the correct menu item based on current values */
76
-	int day = config_weekstart_offset;
77
+	day = config_weekstart_offset;
78
 	set_optionmenu_item (odlg->weekstart_menu, day);
79
 
80
 	/* set to unmodified as it reflects the current state of the app */
81
@@ -554,12 +558,13 @@
82
 {
83
 	PrefsDialog *dlg = data;
84
 
85
+	int secs;
86
+	char buff[24];
87
 	int hour = get_optionmenu_item (dlg->daystart_menu);
88
 	hour += -3;  /* menu starts at 9PM */
89
 
90
-	int secs = hour * 3600;
91
+	secs = hour * 3600;
92
 	if (0 > secs) secs += 24*3600;
93
-	char buff[24];
94
 	qof_print_hours_elapsed_buff (buff, 24, secs, config_show_secs);   
95
 	gtk_entry_set_text (dlg->daystart_secs, buff);
96
 }
(-)deskutils/gnotime/files/patch-src::proj.c (-54 lines)
Lines 1-54 Link Here
1
--- src/proj.c.orig	Fri Sep  2 03:49:22 2005
2
+++ src/proj.c	Fri Oct 21 11:56:29 2005
3
@@ -1952,8 +1952,6 @@
4
 gboolean
5
 gtt_project_obj_register (void)
6
 {
7
-	global_book = qof_book_new();
8
-
9
 /* Associate an ASCII name to each getter, as well as the return type */
10
 static QofParam params[] = {
11
 		{ GTT_PROJECT_EARLIEST, QOF_TYPE_DATE, (QofAccessFunc)prj_obj_get_earliest, NULL},
12
@@ -1961,6 +1959,8 @@
13
 		{ NULL },
14
 	};
15
 
16
+	global_book = qof_book_new();
17
+
18
 	qof_class_register (GTT_PROJECT_ID, (QofSortFunc)prj_obj_order, params);
19
 	return qof_object_register (&prj_object_def);
20
 }
21
@@ -2294,9 +2294,10 @@
22
 gboolean
23
 gtt_task_is_last_task (GttTask *tsk)
24
 {
25
+	GList *last;
26
 	if (!tsk || !tsk->parent || !tsk->parent->task_list) return TRUE;
27
 
28
-	GList *last = g_list_last (tsk->parent->task_list);
29
+	last = g_list_last (tsk->parent->task_list);
30
 	if ((GttTask *) last->data == tsk) return TRUE;
31
 	return FALSE;
32
 }
33
@@ -2358,9 +2359,9 @@
34
 gtt_task_get_secs_earliest (GttTask *tsk)
35
 {
36
 	GList *node;
37
+	time_t earliest = INT_MAX;
38
 	if (NULL == tsk->interval_list) return 0;
39
 
40
-	time_t earliest = INT_MAX;
41
 
42
 	for (node=tsk->interval_list; node; node=node->next)
43
 	{
44
@@ -2374,9 +2375,9 @@
45
 gtt_task_get_secs_latest (GttTask *tsk)
46
 {
47
 	GList *node;
48
+	time_t latest = INT_MIN;
49
 	if (NULL == tsk->interval_list) return 0;
50
 
51
-	time_t latest = INT_MIN;
52
 
53
 	for (node=tsk->interval_list; node; node=node->next)
54
 	{
(-)deskutils/gnotime/files/patch-src::query.c (-16 lines)
Lines 1-16 Link Here
1
--- src/query.c.orig	Mon May 24 20:30:42 2004
2
+++ src/query.c	Mon May 24 20:30:55 2004
3
@@ -74,12 +74,12 @@
4
 
5
 	while (1)
6
 	{
7
+		GttBucket *bu;
8
 		/* Check error bounds, should never happen */
9
 		if ((0 > arr_day) || (arr_day >= da->array_len))
10
 		{
11
 			return 1;
12
 		}
13
-		GttBucket *bu;
14
 		bu = &g_array_index (da->buckets, GttBucket, arr_day);
15
 
16
 		stm.tm_mday ++;
(-)deskutils/gnotime/files/patch-src_file-io.c (-20 lines)
Lines 1-20 Link Here
1
--- src/file-io.c.orig	Fri Oct 21 06:49:42 2005
2
+++ src/file-io.c	Fri Oct 21 06:50:50 2005
3
@@ -513,7 +513,7 @@ void
4
 gtt_load_config (void)
5
 {
6
 	const char *h;
7
-	char * s;
8
+	char * s, * p;
9
 
10
 	/* Check for gconf2, and use that if it exists */
11
 	if (gtt_gconf_exists())
12
@@ -532,7 +532,7 @@ gtt_load_config (void)
13
 
14
 		/* The data file will be in the same directory ...
15
 		 * so prune filename to get the directory */
16
-		char *p = strrchr (gtt_config_filepath, '/');
17
+		p = strrchr (gtt_config_filepath, '/');
18
 		if (p) *p = 0x0;
19
  		return;
20
  	}
(-)deskutils/gnotime/files/patch-src_ghtml.c (-18 lines)
Lines 1-18 Link Here
1
--- src/ghtml.c.orig	Fri Oct 21 06:52:04 2005
2
+++ src/ghtml.c	Fri Oct 21 06:53:15 2005
3
@@ -1191,6 +1191,7 @@
4
 get_ivl_start_stop_common_str_scm (GttGhtml *ghtml, GttInterval *ivl,
5
 					 time_t starp, gboolean prt_date)
6
 {
7
+	GString *str;
8
 	char buff[100];
9
 
10
 	if (prt_date) {
11
@@ -1199,7 +1200,6 @@
12
 		qof_print_time_buff (buff, 100, starp);
13
 	}
14
 
15
-	GString *str;
16
 	str = g_string_new (NULL);
17
 
18
 	if (ghtml->show_links)
(-)deskutils/gnotime/pkg-plist (-51 / +89 lines)
Lines 1-32 Link Here
1
bin/gnotime
1
bin/gnotime
2
include/gnotime/gnc-date.h
2
bin/gnotime-remote
3
include/gnotime/gnc-engine-util.h
3
include/qof/deprecated.h
4
include/gnotime/gnc-event.h
4
include/qof/guid.h
5
include/gnotime/gnc-numeric.h
5
include/qof/kvpframe.h
6
include/gnotime/gnc-trace.h
6
include/qof/kvputil-p.h
7
include/gnotime/guid.h
7
include/qof/kvputil.h
8
include/gnotime/kvp-util.h
8
include/qof/qof-backend-qsf.h
9
include/gnotime/kvp_frame.h
9
include/qof/qof.h
10
include/gnotime/qof.h
10
include/qof/qofbackend-p.h
11
include/gnotime/qofbackend.h
11
include/qof/qofbackend.h
12
include/gnotime/qofbook.h
12
include/qof/qofbook.h
13
include/gnotime/qofclass.h
13
include/qof/qofbookmerge.h
14
include/gnotime/qofgobj.h
14
include/qof/qofchoice.h
15
include/gnotime/qofid.h
15
include/qof/qofclass.h
16
include/gnotime/qofinstance.h
16
include/qof/qofdate.h
17
include/gnotime/qofobject.h
17
include/qof/qoferror.h
18
include/gnotime/qofquery-deserial.h
18
include/qof/qofevent.h
19
include/gnotime/qofquery-serialize.h
19
include/qof/qofgobj.h
20
include/gnotime/qofquery.h
20
include/qof/qofid-p.h
21
include/gnotime/qofquerycore.h
21
include/qof/qofid.h
22
include/gnotime/qofsession.h
22
include/qof/qofinstance-p.h
23
include/gnotime/qofsql.h
23
include/qof/qofinstance.h
24
include/gnotime/sql_parser.h
24
include/qof/qofla-dir.h
25
lib/libqofsql.a
25
include/qof/qoflog.h
26
lib/libqofsql.la
26
include/qof/qofnumeric.h
27
lib/libqofsql.so
27
include/qof/qofobject.h
28
lib/libqofsql.so.0
28
include/qof/qofquery-p.h
29
include/qof/qofquery.h
30
include/qof/qofquerycore-p.h
31
include/qof/qofquerycore.h
32
include/qof/qofreference.h
33
include/qof/qofsession.h
34
include/qof/qofsql.h
35
include/qof/qoftime.h
36
include/qof/qofundo.h
37
include/qof/qofutil.h
38
lib/libqof-backend-qsf.a
39
lib/libqof-backend-qsf.la
40
lib/libqof-backend-qsf.so
41
lib/libqof-backend-qsf.so.0
42
lib/libqof.a
43
lib/libqof.la
44
lib/libqof.so
45
lib/libqof.so.1
46
libdata/pkgconfig/qof-1.pc
47
libdata/pkgconfig/qof.pc
29
share/applications/gnotime.desktop
48
share/applications/gnotime.desktop
49
share/gnome/help/gnotime/C/figures/gtt_edit_reports_dialog.png
50
share/gnome/help/gnotime/C/figures/gtt_mainwin.png
51
share/gnome/help/gnotime/C/figures/gtt_new_project.png
52
share/gnome/help/gnotime/C/figures/gtt_new_report_dialog.png
53
share/gnome/help/gnotime/C/figures/gtt_prefs_display.png
54
share/gnome/help/gnotime/C/figures/gtt_prefs_fields.png
55
share/gnome/help/gnotime/C/figures/gtt_prefs_logfile.png
56
share/gnome/help/gnotime/C/figures/gtt_prefs_misc.png
57
share/gnome/help/gnotime/C/figures/gtt_prefs_reports.png
58
share/gnome/help/gnotime/C/figures/gtt_prefs_shell.png
59
share/gnome/help/gnotime/C/figures/gtt_prefs_toolbar.png
60
share/gnome/help/gnotime/C/figures/gtt_prefswin.png
61
share/gnome/help/gnotime/C/figures/gtt_props_intervals.png
62
share/gnome/help/gnotime/C/figures/gtt_props_planning.png
63
share/gnome/help/gnotime/C/figures/gtt_props_project.png
64
share/gnome/help/gnotime/C/figures/gtt_props_rates.png
65
share/gnome/help/gnotime/C/figures/gtt_report_activity.png
66
share/gnome/help/gnotime/C/figures/gtt_report_daily.png
67
share/gnome/help/gnotime/C/figures/gtt_report_invoice.png
68
share/gnome/help/gnotime/C/figures/gtt_report_journal.png
69
share/gnome/help/gnotime/C/figures/gtt_report_todo.png
70
share/gnome/help/gnotime/C/figures/gtt_restartwin.png
71
share/gnome/help/gnotime/C/figures/gtt_startprojwin.png
72
share/gnome/help/gnotime/C/gnotime.xml
30
share/gnotime/ghtml/C/activity.ghtml
73
share/gnotime/ghtml/C/activity.ghtml
31
share/gnotime/ghtml/C/basic-daily.ghtml
74
share/gnotime/ghtml/C/basic-daily.ghtml
32
share/gnotime/ghtml/C/basic-invoice.ghtml
75
share/gnotime/ghtml/C/basic-invoice.ghtml
Lines 39-44 Link Here
39
share/gnotime/ghtml/C/invoice.ghtml
82
share/gnotime/ghtml/C/invoice.ghtml
40
share/gnotime/ghtml/C/journal-rss.ghtml
83
share/gnotime/ghtml/C/journal-rss.ghtml
41
share/gnotime/ghtml/C/journal.ghtml
84
share/gnotime/ghtml/C/journal.ghtml
85
share/gnotime/ghtml/C/monthly-daily.ghtml
42
share/gnotime/ghtml/C/noproject.ghtml
86
share/gnotime/ghtml/C/noproject.ghtml
43
share/gnotime/ghtml/C/primer.ghtml
87
share/gnotime/ghtml/C/primer.ghtml
44
share/gnotime/ghtml/C/query.ghtml
88
share/gnotime/ghtml/C/query.ghtml
Lines 60-79 Link Here
60
share/gnotime/glade/project_properties.glade
104
share/gnotime/glade/project_properties.glade
61
share/gnotime/glade/task_popup.glade
105
share/gnotime/glade/task_popup.glade
62
share/gnotime/glade/task_properties.glade
106
share/gnotime/glade/task_properties.glade
63
share/gnome/help/gnotime/C/figures/gtt_startprojwin.png
64
share/gnome/help/gnotime/C/figures/gtt_restartwin.png
65
share/gnome/help/gnotime/C/figures/gtt_mainwin.png
66
share/gnome/help/gnotime/C/figures/gtt_prefswin.png
67
share/gnome/help/gnotime/C/gnotime.xml
68
share/gnome/help/gnotime/es/figures/gtt_mainwin.png
69
share/gnome/help/gnotime/es/figures/gtt_prefswin.png
70
share/gnome/help/gnotime/es/gnotime.xml
71
share/gnome/help/gnotime/eu/figures/gtt_mainwin.png
72
share/gnome/help/gnotime/eu/figures/gtt_prefswin.png
73
share/gnome/help/gnotime/eu/gnotime.xml
74
share/omf/gnotime/gnotime-C.omf
75
share/omf/gnotime/gnotime-es.omf
76
share/omf/gnotime/gnotime-eu.omf
77
share/locale/az/LC_MESSAGES/gnotime-2.0.mo
107
share/locale/az/LC_MESSAGES/gnotime-2.0.mo
78
share/locale/bg/LC_MESSAGES/gnotime-2.0.mo
108
share/locale/bg/LC_MESSAGES/gnotime-2.0.mo
79
share/locale/ca/LC_MESSAGES/gnotime-2.0.mo
109
share/locale/ca/LC_MESSAGES/gnotime-2.0.mo
Lines 90-130 Link Here
90
share/locale/ga/LC_MESSAGES/gnotime-2.0.mo
120
share/locale/ga/LC_MESSAGES/gnotime-2.0.mo
91
share/locale/gl/LC_MESSAGES/gnotime-2.0.mo
121
share/locale/gl/LC_MESSAGES/gnotime-2.0.mo
92
share/locale/hu/LC_MESSAGES/gnotime-2.0.mo
122
share/locale/hu/LC_MESSAGES/gnotime-2.0.mo
123
share/locale/id/LC_MESSAGES/qof.mo
93
share/locale/it/LC_MESSAGES/gnotime-2.0.mo
124
share/locale/it/LC_MESSAGES/gnotime-2.0.mo
94
share/locale/ja/LC_MESSAGES/gnotime-2.0.mo
125
share/locale/ja/LC_MESSAGES/gnotime-2.0.mo
95
share/locale/ko/LC_MESSAGES/gnotime-2.0.mo
126
share/locale/ko/LC_MESSAGES/gnotime-2.0.mo
96
share/locale/lt/LC_MESSAGES/gnotime-2.0.mo
127
share/locale/lt/LC_MESSAGES/gnotime-2.0.mo
97
share/locale/lv/LC_MESSAGES/gnotime-2.0.mo
128
share/locale/lv/LC_MESSAGES/gnotime-2.0.mo
98
share/locale/ms/LC_MESSAGES/gnotime-2.0.mo
129
share/locale/ms/LC_MESSAGES/gnotime-2.0.mo
130
share/locale/nb/LC_MESSAGES/gnotime-2.0.mo
99
share/locale/nl/LC_MESSAGES/gnotime-2.0.mo
131
share/locale/nl/LC_MESSAGES/gnotime-2.0.mo
100
share/locale/nn/LC_MESSAGES/gnotime-2.0.mo
132
share/locale/nn/LC_MESSAGES/gnotime-2.0.mo
101
share/locale/no/LC_MESSAGES/gnotime-2.0.mo
102
share/locale/pl/LC_MESSAGES/gnotime-2.0.mo
133
share/locale/pl/LC_MESSAGES/gnotime-2.0.mo
103
share/locale/pt/LC_MESSAGES/gnotime-2.0.mo
134
share/locale/pt/LC_MESSAGES/gnotime-2.0.mo
104
share/locale/pt_BR/LC_MESSAGES/gnotime-2.0.mo
135
share/locale/pt_BR/LC_MESSAGES/gnotime-2.0.mo
136
share/locale/pt_BR/LC_MESSAGES/qof.mo
105
share/locale/ro/LC_MESSAGES/gnotime-2.0.mo
137
share/locale/ro/LC_MESSAGES/gnotime-2.0.mo
138
share/locale/ro/LC_MESSAGES/qof.mo
106
share/locale/ru/LC_MESSAGES/gnotime-2.0.mo
139
share/locale/ru/LC_MESSAGES/gnotime-2.0.mo
107
share/locale/sk/LC_MESSAGES/gnotime-2.0.mo
140
share/locale/sk/LC_MESSAGES/gnotime-2.0.mo
108
share/locale/sl/LC_MESSAGES/gnotime-2.0.mo
141
share/locale/sl/LC_MESSAGES/gnotime-2.0.mo
109
share/locale/sv/LC_MESSAGES/gnotime-2.0.mo
142
share/locale/sv/LC_MESSAGES/gnotime-2.0.mo
143
share/locale/sv/LC_MESSAGES/qof.mo
110
share/locale/ta/LC_MESSAGES/gnotime-2.0.mo
144
share/locale/ta/LC_MESSAGES/gnotime-2.0.mo
111
share/locale/tr/LC_MESSAGES/gnotime-2.0.mo
145
share/locale/tr/LC_MESSAGES/gnotime-2.0.mo
112
share/locale/uk/LC_MESSAGES/gnotime-2.0.mo
146
share/locale/uk/LC_MESSAGES/gnotime-2.0.mo
113
share/locale/vi/LC_MESSAGES/gnotime-2.0.mo
147
share/locale/vi/LC_MESSAGES/gnotime-2.0.mo
148
share/locale/vi/LC_MESSAGES/qof.mo
114
share/locale/wa/LC_MESSAGES/gnotime-2.0.mo
149
share/locale/wa/LC_MESSAGES/gnotime-2.0.mo
115
share/locale/zh_CN/LC_MESSAGES/gnotime-2.0.mo
150
share/locale/zh_CN/LC_MESSAGES/gnotime-2.0.mo
116
share/locale/zh_TW/LC_MESSAGES/gnotime-2.0.mo
151
share/locale/zh_TW/LC_MESSAGES/gnotime-2.0.mo
152
share/omf/gnotime/gnotime-C.omf
153
share/xml/qof/qsf/pilot-qsf-GnuCashInvoice.xml
154
share/xml/qof/qsf/pilot-qsf-gncCustomer.xml
155
share/xml/qof/qsf/qsf-map.xsd.xml
156
share/xml/qof/qsf/qsf-object.xsd.xml
157
@dirrm share/xml/qof/qsf
158
@dirrm share/xml/qof
117
@dirrm share/omf/gnotime
159
@dirrm share/omf/gnotime
118
@dirrm share/gnome/help/gnotime/eu/figures
160
@dirrm %%DATADIR%%/glade
119
@dirrm share/gnome/help/gnotime/eu
161
@dirrm %%DATADIR%%/ghtml/C
120
@dirrm share/gnome/help/gnotime/es/figures
162
@dirrm %%DATADIR%%/ghtml
121
@dirrm share/gnome/help/gnotime/es
163
@dirrm %%DATADIR%%
122
@dirrm share/gnome/help/gnotime/C/figures
164
@dirrm share/gnome/help/gnotime/C/figures
123
@dirrm share/gnome/help/gnotime/C
165
@dirrm share/gnome/help/gnotime/C
124
@dirrm share/gnome/help/gnotime
166
@dirrm share/gnome/help/gnotime
125
@dirrm share/gnotime/glade
167
@dirrm include/qof
126
@dirrm share/gnotime/ghtml/C
127
@dirrm share/gnotime/ghtml
128
@dirrm share/gnotime
129
@dirrm include/gnotime
130
@dirrmtry share/applications
168
@dirrmtry share/applications

Return to bug 130464