]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
kconfig: gconf: add on_save_clicked() event handler
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 24 Jun 2025 15:05:23 +0000 (00:05 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 2 Jul 2025 01:36:15 +0000 (10:36 +0900)
The "clicked" event handler for GtkToolButton takes the GtkToolButton*
as the first parameter.

This is different from the existing on_save_activate() handler.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/gconf.c

index f03e94cd5fa3c41edcec079cbf326a99d98bd541..4e21cf46ff01649497335ca0cd9ecc923c7e1ae8 100644 (file)
@@ -376,6 +376,11 @@ static void on_load_clicked(GtkButton *button, gpointer user_data)
        on_load1_activate(NULL, user_data);
 }
 
+static void on_save_clicked(GtkButton *button, gpointer user_data)
+{
+       on_save_activate(NULL, user_data);
+}
+
 static void on_single_clicked(GtkButton *button, gpointer user_data)
 {
        set_view_mode(SINGLE_VIEW);
@@ -1225,7 +1230,7 @@ static void init_main_window(const gchar *glade_file)
 
        save_btn = glade_xml_get_widget(xml, "button3");
        g_signal_connect(save_btn, "clicked",
-                        G_CALLBACK(on_save_activate), NULL);
+                        G_CALLBACK(on_save_clicked), NULL);
 
        style = gtk_widget_get_style(main_wnd);