kconfig: gconf: remove unneeded variable in on_split_clicked()

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@kernel.org>
This commit is contained in:
Masahiro Yamada
2025-06-25 00:05:08 +09:00
parent 9b8338fd45
commit 8e3136eb27
+2 -2
View File
@@ -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();