Diff of /trunk/src/cache.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 766  static void on_notebook_destroy(GtkWidge Line 766  static void on_notebook_destroy(GtkWidge
766      gtk_timeout_remove(context->handler_id);      gtk_timeout_remove(context->handler_id);
767  #endif  #endif
768    
769    #ifdef USE_STACKABLE_WINDOW
770      if(context->notes_have_been_changed) {
771        printf("notes changed -> cachelist redraw\n");
772    
773        /* now the cachelist is visible again. so redraw it since it may */
774        /* have changed */
775        cachelist_redraw(context->appdata);
776      }
777    #endif
778    
779    printf("freeing cache context\n");    printf("freeing cache context\n");
780      context->appdata->cache_context = NULL;
781    g_free(context);    g_free(context);
782  }  }
783    
# Line 868  GtkWidget *cache_view(appdata_t *appdata Line 879  GtkWidget *cache_view(appdata_t *appdata
879    GtkWidget *notebook;    GtkWidget *notebook;
880    
881    cache_context_t *cache_context = g_new0(cache_context_t, 1);    cache_context_t *cache_context = g_new0(cache_context_t, 1);
882      appdata->cache_context = cache_context;
883    cache_context->appdata = appdata;    cache_context->appdata = appdata;
884    cache_context->cache = cache;    cache_context->cache = cache;
885    

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