aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-08 14:15:33 +0100
committerThomas White <taw@physics.org>2010-02-08 14:15:33 +0100
commit70117260442534672d61abfcffda876fa34925f5 (patch)
tree7fe9afc34e6f752f9f5703f761b8da2ebc598eb0 /src
parentad83a462d3707a94efb3c5d0f99db95bf6e02621 (diff)
Disable peak overlay when no image loaded
Diffstat (limited to 'src')
-rw-r--r--src/displaywindow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/displaywindow.c b/src/displaywindow.c
index 542917be..899332e0 100644
--- a/src/displaywindow.c
+++ b/src/displaywindow.c
@@ -871,6 +871,10 @@ static void displaywindow_disable(DisplayWindow *dw)
w = gtk_ui_manager_get_widget(dw->ui,
"/ui/displaywindow/tools/numbers");
gtk_widget_set_sensitive(GTK_WIDGET(w), FALSE);
+
+ w = gtk_ui_manager_get_widget(dw->ui,
+ "/ui/displaywindow/tools/peaks");
+ gtk_widget_set_sensitive(GTK_WIDGET(w), FALSE);
}