aboutsummaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-03-01 00:33:24 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-03-01 00:33:24 +0900
commit45e73c2aa4868a602e8120e50812e1641af342e2 (patch)
tree8f1440346ee7fe574fe670a4ab33d4e7a800b065 /gtk
parent21db0850415ce95a300d51663c2365265343cdd3 (diff)
gtk: fix toneviewer normalize toggle
Diffstat (limited to 'gtk')
-rw-r--r--gtk/toneview.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/toneview.c b/gtk/toneview.c
index 79750fe..79be94f 100644
--- a/gtk/toneview.c
+++ b/gtk/toneview.c
@@ -85,6 +85,7 @@ void show_toneview(void) {
g_signal_connect(format, "changed", G_CALLBACK(on_format_changed), 0);
GtkWidget *normalizecheck = gtk_check_button_new_with_label("Normalize");
gtk_box_pack_start(GTK_BOX(ctrlbox), normalizecheck, FALSE, TRUE, 0);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(normalizecheck), g.normalize);
g_signal_connect(normalizecheck, "toggled", G_CALLBACK(on_normalize_toggled), 0);
for (int c = 0; c < 6; c++) {
GtkWidget *cbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5);