24#include <gdk/gdkkeysyms.h>
69#define CITIZENS_DLG_COL_STYLE (0 + num_citizens_cols)
70#define CITIZENS_DLG_COL_WEIGHT (1 + num_citizens_cols)
71#define CITIZENS_DLG_COL_ID (2 + num_citizens_cols)
84#define SPECLIST_TAG dialog
85#define SPECLIST_TYPE struct citizens_dialog
88#define dialog_list_iterate(dialoglist, pdialog) \
89 TYPED_LIST_ITERATE(struct citizens_dialog, dialoglist, pdialog)
90#define dialog_list_iterate_end LIST_ITERATE_END
111 if (nationality == 0) {
201 switch (
pcol->type) {
257 pdialog->
shell = frame;
288 if (pdialog->pcity ==
pcity) {
303 if (pdialog ==
NULL) {
330 switch (
pcol->type) {
370 if (pdialog ==
NULL) {
396 return pdialog->
shell;
citizens citizens_nation_get(const struct city *pcity, const struct player_slot *pslot)
#define citizens_iterate_end
#define citizens_iterate(_pcity, _pslot, _nationality)
#define city_owner(_pcity_)
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit int const struct action *paction struct unit struct city * pcity
#define CITIZENS_DLG_COL_STYLE
void citizens_dialog_init(void)
static const char * col_citizens(const struct city *pcity, const struct player_slot *pslot)
GtkWidget * citizens_dialog_display(const struct city *pcity)
static struct citizens_column citizens_cols[]
void citizens_dialog_refresh(const struct city *pcity)
#define dialog_list_iterate_end
static struct citizens_dialog * citizens_dialog_create(const struct city *pcity)
#define CITIZENS_DLG_COL_ID
static const int num_citizens_cols
#define CITIZENS_DLG_COL_WEIGHT
#define dialog_list_iterate(dialoglist, pdialog)
void citizens_dialog_close(const struct city *pcity)
static struct dialog_list * dialog_list
static GtkTreeStore * citizens_dialog_store_new(void)
static int citizens_dialog_default_sort_column(void)
static const char * col_nation(const struct city *pcity, const struct player_slot *pslot)
static struct citizens_dialog * citizens_dialog_get(const struct city *pcity)
static void citizens_dialog_row(GtkTreeStore *store, GtkTreeIter *it, const struct city *pcity, const struct player_slot *pslot)
void citizens_dialog_done(void)
GdkPixbuf * get_flag(const struct nation_type *nation)
#define fc_assert(condition)
const char * nation_adjective_for_player(const struct player *pplayer)
struct nation_type * nation_of_player(const struct player *pplayer)
int player_slot_index(const struct player_slot *pslot)
struct player * player_slot_get_player(const struct player_slot *pslot)
enum player_dlg_column_type type
const struct city * pcity
int fc_snprintf(char *str, size_t n, const char *format,...)