97 dlg = gtk_dialog_new_with_buttons(
_(
"Place infrastructure"), NULL, 0,
98 _(
"Close"), GTK_RESPONSE_NO,
102 gtk_dialog_set_default_response(GTK_DIALOG(dlg), GTK_RESPONSE_NO);
103 gtk_window_set_destroy_with_parent(GTK_WINDOW(dlg),
TRUE);
105 main_box = gtk_grid_new();
106 gtk_orientable_set_orientation(GTK_ORIENTABLE(main_box),
107 GTK_ORIENTATION_VERTICAL);
112 sep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL);
113 gtk_grid_attach(GTK_GRID(main_box), sep, 0, grid_row++, 1, 1);
116 gtk_grid_attach(GTK_GRID(main_box),
points_label, 0, grid_row++, 1, 1);
118 sep = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL);
119 gtk_grid_attach(GTK_GRID(main_box), sep, 0, grid_row++, 1, 1);
122 gtk_grid_attach(GTK_GRID(main_box),
infra_list_box, 0, grid_row++, 1, 1);
124 gtk_box_append(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dlg))),
130 gtk_widget_show(gtk_dialog_get_content_area(GTK_DIALOG(dlg)));
131 gtk_widget_show(dlg);
bool client_map_is_known_and_seen(const struct tile *ptile, const struct player *pplayer, enum vision_layer vlayer)