diff options
author | Thomas White <taw@physics.org> | 2014-04-25 17:31:53 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-04-25 17:31:53 +0200 |
commit | b931c463151e34f55f81a09ceee646a2d97c6262 (patch) | |
tree | 389ca51863a347b27c8c91b0c8e5659320523a87 /src | |
parent | 5c464fe6602584bc7f517d4b9e3a07feb4166cf1 (diff) |
More fussiness
Diffstat (limited to 'src')
-rw-r--r-- | src/dw-hdfsee.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c index 7fa7f3e2..65020a32 100644 --- a/src/dw-hdfsee.c +++ b/src/dw-hdfsee.c @@ -2048,7 +2048,7 @@ static gint displaywindow_keypress(GtkWidget *widget, GdkEventKey *event, { int pi, s, num_rg, num_p; - if ( dw->calib_mode == 0 ) { + if ( !dw->calib_mode ) { return 0; } @@ -2286,17 +2286,16 @@ DisplayWindow *displaywindow_open(const char *filename, const char *peaks, load_geometry_file(dw, dw->image, geometry); } - if (dw->use_geom == 1) { + if ( dw->use_geom ) { dw->calib_mode = calibmode; } - if (dw->calib_mode == 1) { + if ( dw->calib_mode ) { ww = gtk_ui_manager_get_widget(dw->ui, "/ui/displaywindow/tools/calibmode"); gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(ww), TRUE); } - displaywindow_update(dw); gtk_widget_add_events(GTK_WIDGET(dw->drawingarea), |