mirror of
https://github.com/tstellar/bygfoot.git
synced 2025-01-18 18:02:32 +01:00
In the start_game screen, changed the "Choose league to start in" combobox so that it's not editable.
This commit is contained in:
parent
17c27788a9
commit
fbe66ab2a7
@ -220,10 +220,9 @@
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkComboBoxEntry" id="comboboxentry_start_league">
|
||||
<widget class="GtkComboBox" id="combobox_start_league">
|
||||
<property name="visible">True</property>
|
||||
<property name="add_tearoffs">False</property>
|
||||
<property name="has_frame">True</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
|
@ -127,7 +127,7 @@ misc_callback_add_player(void)
|
||||
GtkEntry *entry_player_name =
|
||||
GTK_ENTRY(lookup_widget(window.startup, "entry_player_name"));
|
||||
GtkComboBox *combo_leagues =
|
||||
GTK_COMBO_BOX(lookup_widget(window.startup, "comboboxentry_start_league"));
|
||||
GTK_COMBO_BOX(lookup_widget(window.startup, "combobox_start_league"));
|
||||
const gchar *player_name = gtk_entry_get_text(entry_player_name);
|
||||
User new_user = user_new();
|
||||
Team *tm = (Team*)treeview_helper_get_pointer(treeview_startup, 2);
|
||||
|
@ -42,7 +42,7 @@ create_window_startup (void)
|
||||
GtkWidget *treeview_startup;
|
||||
GtkWidget *hseparator11;
|
||||
GtkWidget *label4;
|
||||
GtkWidget *comboboxentry_start_league;
|
||||
GtkWidget *combobox_start_league;
|
||||
GtkWidget *hseparator12;
|
||||
GtkWidget *label75;
|
||||
GtkWidget *hbox54;
|
||||
@ -147,9 +147,9 @@ create_window_startup (void)
|
||||
gtk_widget_show (label4);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), label4, FALSE, FALSE, 0);
|
||||
|
||||
comboboxentry_start_league = gtk_combo_box_entry_new_text ();
|
||||
gtk_widget_show (comboboxentry_start_league);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), comboboxentry_start_league, FALSE, FALSE, 0);
|
||||
combobox_start_league = gtk_combo_box_new_text ();
|
||||
gtk_widget_show (combobox_start_league);
|
||||
gtk_box_pack_start (GTK_BOX (vbox2), combobox_start_league, FALSE, FALSE, 0);
|
||||
|
||||
hseparator12 = gtk_hseparator_new ();
|
||||
gtk_widget_show (hseparator12);
|
||||
@ -335,7 +335,7 @@ create_window_startup (void)
|
||||
GLADE_HOOKUP_OBJECT (window_startup, treeview_startup, "treeview_startup");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, hseparator11, "hseparator11");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, label4, "label4");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, comboboxentry_start_league, "comboboxentry_start_league");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, combobox_start_league, "combobox_start_league");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, hseparator12, "hseparator12");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, label75, "label75");
|
||||
GLADE_HOOKUP_OBJECT (window_startup, hbox54, "hbox54");
|
||||
|
@ -2499,7 +2499,7 @@ treeview_show_leagues_combo(void)
|
||||
{
|
||||
GtkTreeModel *model = treeview_create_league_list();
|
||||
GtkComboBox *combo_leagues =
|
||||
GTK_COMBO_BOX(lookup_widget(window.startup, "comboboxentry_start_league"));
|
||||
GTK_COMBO_BOX(lookup_widget(window.startup, "combobox_start_league"));
|
||||
GtkCellRenderer *renderer = NULL;
|
||||
|
||||
gtk_combo_box_set_model(combo_leagues, model);
|
||||
|
Loading…
Reference in New Issue
Block a user