[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250624150645.1107002-36-masahiroy@kernel.org>
Date: Wed, 25 Jun 2025 00:05:23 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: linux-kbuild@...r.kernel.org
Cc: Masahiro Yamada <masahiroy@...nel.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH 35/66] kconfig: gconf: add on_save_clicked() event handler
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@...nel.org>
---
scripts/kconfig/gconf.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c
index 6972acb4b396..8c60b9f25eaa 100644
--- a/scripts/kconfig/gconf.c
+++ b/scripts/kconfig/gconf.c
@@ -375,6 +375,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);
@@ -1217,7 +1222,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);
save_menu_item = glade_xml_get_widget(xml, "save1");
conf_set_changed_callback(conf_changed);
--
2.43.0
Powered by blists - more mailing lists