summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-07 12:51:48 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-07 12:55:11 -0800
commit407d4dd4aa50257bcf0b1dfba0474d372dbe09cd (patch)
tree4b588b8aac4e7e8b538be103be78d93408175085 /gtk-gui.c
parenta0f28aa42271ef014a91c4b8c83d871d7ae0cdf5 (diff)
downloadsubsurface-407d4dd4aa50257bcf0b1dfba0474d372dbe09cd.tar.gz
Fix embarrassing cut and paste bugs
The previous commit 871d7ae0cdf5 "Add option to make ceiling visually stand out more in the profile" contained not one but two stupid cut and paste bugs. I cannot begin to explain how this could have worked when I first tested it. Reported-by: Jan Schubert <Jan.Schubert@GMX.li> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index c2cad6c5a..4836c98bc 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -742,9 +742,9 @@ static void preferences_dialog(GtkWidget *w, gpointer data)
gtk_container_add(GTK_CONTAINER(vbox), box);
button = gtk_check_button_new_with_label(_("Show ceiling in red"));
- gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), partial_pressure_graphs.phe);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), profile_red_ceiling);
gtk_box_pack_start(GTK_BOX(box), button, FALSE, FALSE, 6);
- g_signal_connect(G_OBJECT(button), "toggled", G_CALLBACK(red_ceiling_toggle), &entry_phe);
+ g_signal_connect(G_OBJECT(button), "toggled", G_CALLBACK(red_ceiling_toggle), NULL);
gtk_widget_show_all(dialog);
result = gtk_dialog_run(GTK_DIALOG(dialog));