mirror of https://github.com/tstellar/bygfoot.git
XXX country treeview team list
This commit is contained in:
parent
bcc8716f0f
commit
d85001d53f
|
@ -50,7 +50,7 @@
|
|||
/* show the teams from the leagues in the country in
|
||||
the startup window */
|
||||
void
|
||||
misc_callback_show_team_list(GtkWidget *widget, const gchar *country_file)
|
||||
misc_callback_show_team_list(GtkWidget *widget, Bygfoot *bygfoot, const gchar *country_file)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
printf("misc_callback_show_team_list\n");
|
||||
|
|
|
@ -32,7 +32,7 @@ void
|
|||
misc_callback_start_game(Bygfoot *bygfoot);
|
||||
|
||||
void
|
||||
misc_callback_show_team_list(GtkWidget *widget, const gchar *country_file);
|
||||
misc_callback_show_team_list(GtkWidget *widget, Bygfoot *bygfoot, const gchar *country_file);
|
||||
|
||||
void
|
||||
misc_callback_add_player(Bygfoot *bygfoot);
|
||||
|
|
|
@ -357,7 +357,7 @@ on_window_stadium_delete_event (GtkWidget *widget,
|
|||
|
||||
G_MODULE_EXPORT void
|
||||
on_combo_country_changed (GtkComboBox *combobox,
|
||||
gpointer user_data)
|
||||
Bygfoot *bygfoot)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
printf("on_combo_country_changed\n");
|
||||
|
@ -371,7 +371,7 @@ on_combo_country_changed (GtkComboBox *combobox,
|
|||
&iter))
|
||||
{
|
||||
gtk_tree_model_get(gtk_combo_box_get_model(combobox), &iter, 1, &buf, -1);
|
||||
misc_callback_show_team_list(GTK_WIDGET(combobox), buf);
|
||||
misc_callback_show_team_list(GTK_WIDGET(combobox), bygfoot, buf);
|
||||
} else {
|
||||
gtk_widget_set_sensitive(lookup_widget(window.startup, "button_add_player"), FALSE);
|
||||
}
|
||||
|
|
|
@ -116,7 +116,7 @@ on_window_stadium_delete_event (GtkWidget *widget,
|
|||
|
||||
void
|
||||
on_combo_country_changed (GtkComboBox *combobox,
|
||||
gpointer user_data);
|
||||
Bygfoot *bygfoot);
|
||||
|
||||
void
|
||||
on_spinbutton_verbosity_value_changed (GtkSpinButton *spinbutton,
|
||||
|
|
|
@ -337,11 +337,11 @@ window_show_startup(Bygfoot *bygfoot)
|
|||
g_object_unref(model);
|
||||
|
||||
if(country.sid != NULL)
|
||||
misc_callback_show_team_list(combo_country, country.sid);
|
||||
misc_callback_show_team_list(combo_country, bygfoot, country.sid);
|
||||
else if(last_country != NULL)
|
||||
misc_callback_show_team_list(combo_country, last_country);
|
||||
misc_callback_show_team_list(combo_country, bygfoot, last_country);
|
||||
else
|
||||
misc_callback_show_team_list(combo_country, (const gchar*)g_ptr_array_index(country_files, country_files->len - 1));
|
||||
misc_callback_show_team_list(combo_country, bygfoot, (const gchar*)g_ptr_array_index(country_files, country_files->len - 1));
|
||||
|
||||
if(last_country != NULL)
|
||||
g_free(last_country);
|
||||
|
|
Loading…
Reference in New Issue