Project

General

Profile

Bug #1875 » 0042-gtk4-citydlg-Stop-supported-present-units-icons-shri.patch

S3_3, S3_2 - Marko Lindqvist, 01/18/2026 12:25 PM

View differences:

client/gui-gtk-4.0/citydlg.c
GtkWidget *page, *bottom;
GtkWidget *right, *frame, *table;
GtkWidget *label, *sw, *view, *bar, *production_combo;
GtkWidget *vp;
GtkCellRenderer *rend;
GtkListStore *production_store;
/* TRANS: Overview tab in city dialog */
......
table = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 2);
gtk_widget_set_size_request(table, -1, unit_height);
gtk_scrolled_window_set_child(GTK_SCROLLED_WINDOW(sw), table);
vp = gtk_viewport_new(NULL, NULL);
gtk_scrollable_set_hscroll_policy(GTK_SCROLLABLE(vp), GTK_SCROLL_NATURAL);
gtk_viewport_set_child(GTK_VIEWPORT(vp), table);
gtk_scrolled_window_set_child(GTK_SCROLLED_WINDOW(sw), vp);
pdialog->overview.supported_unit_table = table;
unit_node_vector_init(&pdialog->overview.supported_units);
......
table = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 2);
gtk_widget_set_size_request(table, -1, unit_height);
gtk_scrolled_window_set_child(GTK_SCROLLED_WINDOW(sw), table);
vp = gtk_viewport_new(NULL, NULL);
gtk_scrollable_set_hscroll_policy(GTK_SCROLLABLE(vp), GTK_SCROLL_NATURAL);
gtk_viewport_set_child(GTK_VIEWPORT(vp), table);
gtk_scrolled_window_set_child(GTK_SCROLLED_WINDOW(sw), vp);
pdialog->overview.present_unit_table = table;
unit_node_vector_init(&pdialog->overview.present_units);
(3-3/3)