In the start_game screen, changed the "Choose league to start in" combobox so that it's not editable.

This commit is contained in:
gunnar_g 2008-11-18 14:54:42 +00:00
parent 9bcccd7b21
commit 68e8b5db1a
4 changed files with 8 additions and 9 deletions

View File

@ -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>

View File

@ -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);

View File

@ -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");

View File

@ -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);