main
authoryu.dongliang <18588496441@163.com>
Sat, 15 Apr 2023 07:28:54 +0000 (15:28 +0800)
committeryu.dongliang <18588496441@163.com>
Sat, 15 Apr 2023 07:28:54 +0000 (15:28 +0800)
main.c

diff --git a/main.c b/main.c
index 41eeecf3fda7644509accb6d80a078c4b2a00869..3671a232b6f9dd94d5d6cdacb760565e5db640fe 100644 (file)
--- a/main.c
+++ b/main.c
@@ -148,9 +148,9 @@ int main(int argc, char *argv[])
        g_signal_connect(menu_file_quit, "activate",  G_CALLBACK(gtk_main_quit), NULL);
        g_signal_connect(menu_file_add,  "activate",  G_CALLBACK(simp_file_add), builder);
 
-       g_signal_connect(button_record,  "activate",  G_CALLBACK(simp_record),   builder);
-       g_signal_connect(button_pause,   "activate",  G_CALLBACK(simp_pause),    builder);
-       g_signal_connect(button_stop,    "activate",  G_CALLBACK(simp_stop),     builder);
+       g_signal_connect(button_record,  "clicked",   G_CALLBACK(simp_record),   builder);
+       g_signal_connect(button_pause,   "clicked",   G_CALLBACK(simp_pause),    builder);
+       g_signal_connect(button_stop,    "clicked",   G_CALLBACK(simp_stop),     builder);
 
        g_signal_connect(gl_area,        "resize",    G_CALLBACK(resize),        NULL);
        g_signal_connect(gl_area,        "unrealize", G_CALLBACK(unrealize),     NULL);