diff options
Diffstat (limited to 'src/dw-hdfsee.c')
-rw-r--r-- | src/dw-hdfsee.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c index 20ef2e04..d59c6784 100644 --- a/src/dw-hdfsee.c +++ b/src/dw-hdfsee.c @@ -1143,6 +1143,10 @@ static int load_geometry_file(DisplayWindow *dw, struct image *image, gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(w), TRUE); dw->use_geom = 1; + w = gtk_ui_manager_get_widget(dw->ui, + "/ui/displaywindow/tools/calibmode"); + gtk_widget_set_sensitive(GTK_WIDGET(w), TRUE); + return 0; } @@ -1822,10 +1826,15 @@ static gint displaywindow_newhdf(GtkMenuItem *item, struct newhdf *nh) w = gtk_ui_manager_get_widget(nh->dw->ui, "/ui/displaywindow/view/usegeom"); gtk_widget_set_sensitive(GTK_WIDGET(w), FALSE); + gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(w), FALSE); nh->dw->use_geom = 0; nh->dw->image->det = nh->dw->simple_geom; + w = gtk_ui_manager_get_widget(nh->dw->ui, + "/ui/displaywindow/tools/calibmode"); + gtk_widget_set_sensitive(GTK_WIDGET(w), FALSE); + } if ( nh->dw->use_geom ) { @@ -2556,6 +2565,10 @@ DisplayWindow *displaywindow_open(const char *filename, const char *peaks, if ( dw->use_geom ) { dw->calib_mode = calibmode; + } else { + w = gtk_ui_manager_get_widget(dw->ui, + "/ui/displaywindow/tools/calibmode"); + gtk_widget_set_sensitive(GTK_WIDGET(w), FALSE); } if ( dw->calib_mode ) { |