From 86129127f59ed47710d93be79ae27a698601120b Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 21 Oct 2021 04:00:49 +0300 Subject: [PATCH 55/55] gtk3x: Stop calling gtk_container_set_focus_[hv]adjustment() See osdn #43088 Signed-off-by: Marko Lindqvist --- client/gui-gtk-4.0/citydlg.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/client/gui-gtk-4.0/citydlg.c b/client/gui-gtk-4.0/citydlg.c index 3bffefcf28..5e4e673ee6 100644 --- a/client/gui-gtk-4.0/citydlg.c +++ b/client/gui-gtk-4.0/citydlg.c @@ -1061,11 +1061,6 @@ static void create_and_append_overview_page(struct city_dialog *pdialog) gtk_widget_set_size_request(table, -1, unit_height); gtk_container_add(GTK_CONTAINER(sw), table); - gtk_container_set_focus_hadjustment(GTK_CONTAINER(table), - gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(sw))); - gtk_container_set_focus_vadjustment(GTK_CONTAINER(table), - gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(sw))); - pdialog->overview.supported_unit_table = table; unit_node_vector_init(&pdialog->overview.supported_units); @@ -1082,11 +1077,6 @@ static void create_and_append_overview_page(struct city_dialog *pdialog) gtk_widget_set_size_request(table, -1, unit_height); gtk_container_add(GTK_CONTAINER(sw), table); - gtk_container_set_focus_hadjustment(GTK_CONTAINER(table), - gtk_scrolled_window_get_hadjustment(GTK_SCROLLED_WINDOW(sw))); - gtk_container_set_focus_vadjustment(GTK_CONTAINER(table), - gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(sw))); - pdialog->overview.present_unit_table = table; unit_node_vector_init(&pdialog->overview.present_units); -- 2.33.0