Bug #2265 » 0072-gtk4-x-Drop-unused-city_-_command.patch
| client/gui-gtk-4.0/cityrep.c | ||
|---|---|---|
|
static void recreate_select_menu(GActionGroup *group);
|
||
|
static void recreate_sell_menu(GActionGroup *group);
|
||
|
static GtkWidget *city_center_command;
|
||
|
static GtkWidget *city_popup_command;
|
||
|
static GtkWidget *city_buy_command;
|
||
|
static GtkWidget *city_total_buy_cost_label;
|
||
|
static GMenu *prod_menu = NULL;
|
||
| ... | ... | |
|
static char (*buf)[128];
|
||
|
struct city_report_spec *spec;
|
||
|
GtkWidget *w, *sw, *aux_menu;
|
||
|
GtkWidget *sw, *aux_menu;
|
||
|
int i;
|
||
|
gui_dialog_new(&city_dialog_shell, GTK_NOTEBOOK(top_notebook), NULL, TRUE);
|
||
| ... | ... | |
|
gui_dialog_add_action_widget(city_dialog_shell,
|
||
|
city_total_buy_cost_label);
|
||
|
w = gui_dialog_add_button(city_dialog_shell, NULL,
|
||
|
_("_Buy"), CITY_BUY);
|
||
|
city_buy_command = w;
|
||
|
gui_dialog_add_button(city_dialog_shell, NULL,
|
||
|
_("_Buy"), CITY_BUY);
|
||
|
w = gui_dialog_add_button(city_dialog_shell, NULL,
|
||
|
_("_Inspect"), CITY_POPUP);
|
||
|
city_popup_command = w;
|
||
|
gui_dialog_add_button(city_dialog_shell, NULL,
|
||
|
_("_Inspect"), CITY_POPUP);
|
||
|
w = gui_dialog_add_button(city_dialog_shell, NULL,
|
||
|
_("Cen_ter"), CITY_CENTER);
|
||
|
city_center_command = w;
|
||
|
gui_dialog_add_button(city_dialog_shell, NULL,
|
||
|
_("Cen_ter"), CITY_CENTER);
|
||
|
/* Tree view */
|
||
|
buf = fc_realloc(buf, NUM_CREPORT_COLS * sizeof(buf[0]));
|
||
| client/gui-gtk-5.0/cityrep.c | ||
|---|---|---|
|
static void recreate_select_menu(GActionGroup *group);
|
||
|
static void recreate_sell_menu(GActionGroup *group);
|
||
|
static GtkWidget *city_center_command;
|
||
|
static GtkWidget *city_popup_command;
|
||
|
static GtkWidget *city_buy_command;
|
||
|
static GtkWidget *city_total_buy_cost_label;
|
||
|
static GMenu *prod_menu = NULL;
|
||
| ... | ... | |
|
static char (*buf)[128];
|
||
|
struct city_report_spec *spec;
|
||
|
GtkWidget *w, *sw, *aux_menu;
|
||
|
GtkWidget *sw, *aux_menu;
|
||
|
int i;
|
||
|
gui_dialog_new(&city_dialog_shell, GTK_NOTEBOOK(top_notebook), NULL, TRUE);
|
||
| ... | ... | |
|
gui_dialog_add_action_widget(city_dialog_shell,
|
||
|
city_total_buy_cost_label);
|
||
|
w = gui_dialog_add_button(city_dialog_shell, NULL,
|
||
|
_("_Buy"), CITY_BUY);
|
||
|
city_buy_command = w;
|
||
|
gui_dialog_add_button(city_dialog_shell, NULL,
|
||
|
_("_Buy"), CITY_BUY);
|
||
|
w = gui_dialog_add_button(city_dialog_shell, NULL,
|
||
|
_("_Inspect"), CITY_POPUP);
|
||
|
city_popup_command = w;
|
||
|
gui_dialog_add_button(city_dialog_shell, NULL,
|
||
|
_("_Inspect"), CITY_POPUP);
|
||
|
w = gui_dialog_add_button(city_dialog_shell, NULL,
|
||
|
_("Cen_ter"), CITY_CENTER);
|
||
|
city_center_command = w;
|
||
|
gui_dialog_add_button(city_dialog_shell, NULL,
|
||
|
_("Cen_ter"), CITY_CENTER);
|
||
|
city_model_depr = city_report_dialog_store_new_depr();
|
||