[PATCH 20/66] kconfig: gconf: remove unneeded variable in on_split_clicked()
From: Masahiro Yamada
Date: Tue Jun 24 2025 - 11:15:15 EST
The height of the window is not used here. Passing NULL to
gtk_window_get_default_size() is allowed. [1]
[1]: https://gitlab.gnome.org/GNOME/gtk/-/blob/2.24.33/gtk/gtkwindow.c#L3974
Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
---
scripts/kconfig/gconf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c
index 2ab000adcced..c78eded5c01b 100644
--- a/scripts/kconfig/gconf.c
+++ b/scripts/kconfig/gconf.c
@@ -673,10 +673,10 @@ void on_single_clicked(GtkButton * button, gpointer user_data)
void on_split_clicked(GtkButton * button, gpointer user_data)
{
- gint w, h;
+ gint w;
view_mode = SPLIT_VIEW;
gtk_widget_show(tree1_w);
- gtk_window_get_default_size(GTK_WINDOW(main_wnd), &w, &h);
+ gtk_window_get_default_size(GTK_WINDOW(main_wnd), &w, NULL);
gtk_paned_set_position(GTK_PANED(hpaned), w / 2);
gtk_tree_store_clear(tree2);
display_list();
--
2.43.0