Diff of /trunk/src/notes.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 227 by harbaum, Wed Dec 2 20:05:52 2009 UTC revision 228 by harbaum, Thu Dec 3 20:07:13 2009 UTC
# Line 202  static int notes_write_file(cache_contex Line 202  static int notes_write_file(cache_contex
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",
# Line 220  static int notes_write_file(cache_contex Line 217  static int notes_write_file(cache_contex
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");
# Line 282  static void notes_save(cache_context_t * Line 277  static void notes_save(cache_context_t *
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;

Legend:
Removed from v.227  
changed lines
  Added in v.228