aboutsummaryrefslogtreecommitdiff
path: root/src/displaywindow.c
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-10-22 14:52:04 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-10-22 14:52:04 +0000
commitb7ba021860c13552972efed75d051f271f025505 (patch)
treef1ef1fbb0424d4d0da89faeeb7cd489f94b55215 /src/displaywindow.c
parent51ceb4cfffa10475a5e30dc62e91df4ba59741be (diff)
New cache format stores image features rather than 3D reflection coordinates
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@167 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/displaywindow.c')
-rw-r--r--src/displaywindow.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/displaywindow.c b/src/displaywindow.c
index 5a5f25a..fa3e5ba 100644
--- a/src/displaywindow.c
+++ b/src/displaywindow.c
@@ -884,7 +884,9 @@ static gint displaywindow_savecache_response(GtkWidget *widget, gint response, C
if ( response == GTK_RESPONSE_ACCEPT ) {
char *cache_filename;
cache_filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(widget));
- cache_save(ctx->reflectionlist, cache_filename);
+ if ( cache_save(ctx->images, cache_filename) ) {
+ displaywindow_error("Failed to save cache file.", ctx->dw);
+ }
g_free(cache_filename);
}
@@ -979,7 +981,7 @@ static void displaywindow_addmenubar(DisplayWindow *dw) {
{ "DirAxAction", GTK_STOCK_EXECUTE, "Start _DirAx", "<Ctrl>D", NULL, G_CALLBACK(displaywindow_dirax) },
{ "StopDirAxAction", GTK_STOCK_CLOSE, "Stop DirAx", NULL, NULL, G_CALLBACK(displaywindow_dirax_stop) },
{ "ReprojectAction", NULL, "_Reproject Diffraction Patterns", NULL, NULL, G_CALLBACK(displaywindow_reproject) },
- { "SaveCacheAction", NULL, "Save Reflections to _Cache", NULL, NULL, G_CALLBACK(displaywindow_savecache) },
+ { "SaveCacheAction", NULL, "Save Image Analysis to _Cache", NULL, NULL, G_CALLBACK(displaywindow_savecache) },
{ "SetAxisAction", NULL, "Set Tilt Axis Position", NULL, NULL, G_CALLBACK(displaywindow_setaxis) },
{ "HelpAction", NULL, "_Help", NULL, NULL, NULL },