From 45e73c2aa4868a602e8120e50812e1641af342e2 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Wed, 1 Mar 2017 00:33:24 +0900 Subject: gtk: fix toneviewer normalize toggle --- gtk/toneview.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gtk/toneview.c') 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); -- cgit v1.2.3