202 |
g_assert(context); |
g_assert(context); |
203 |
g_assert(context->cache); |
g_assert(context->cache); |
204 |
|
|
|
printf("write\n"); |
|
|
|
|
205 |
/* build local path */ |
/* build local path */ |
206 |
int path_len = strlen(context->appdata->image_path) + |
int path_len = strlen(context->appdata->image_path) + |
207 |
2 * strlen(context->cache->id) + 6; |
2 * strlen(context->cache->id) + 6; |
|
printf("plen = %d\n", path_len); |
|
208 |
|
|
209 |
char *path = malloc(path_len); |
char *path = malloc(path_len); |
210 |
snprintf(path, path_len, "%s%s/%s.gpx", |
snprintf(path, path_len, "%s%s/%s.gpx", |
217 |
return -1; |
return -1; |
218 |
} |
} |
219 |
|
|
|
printf("still al\n"); |
|
|
|
|
220 |
LIBXML_TEST_VERSION; |
LIBXML_TEST_VERSION; |
221 |
|
|
222 |
xmlDocPtr doc = xmlNewDoc(BAD_CAST "1.0"); |
xmlDocPtr doc = xmlNewDoc(BAD_CAST "1.0"); |
277 |
/* there is a position which differs from the original one */ |
/* there is a position which differs from the original one */ |
278 |
/* or has been changed */ |
/* or has been changed */ |
279 |
|
|
|
printf("saving notes\n"); |
|
|
|
|
280 |
if(context->notes.modified) { |
if(context->notes.modified) { |
281 |
|
#ifdef USE_STACKABLE_WINDOW |
282 |
|
context->notes_have_been_changed = TRUE; |
283 |
|
#endif |
284 |
|
|
285 |
printf("something has been modified, saving notes\n"); |
printf("something has been modified, saving notes\n"); |
286 |
|
|
287 |
GtkTextIter start; |
GtkTextIter start; |