From b931c463151e34f55f81a09ceee646a2d97c6262 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 25 Apr 2014 17:31:53 +0200 Subject: More fussiness --- src/dw-hdfsee.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') 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), -- cgit v1.2.3