Callbacks.c reordered to reflect in-game menu order.

This commit is contained in:
gyboth 2009-02-23 11:32:54 +00:00
parent 6cf432a00b
commit 7e6150688e
3 changed files with 991 additions and 899 deletions

File diff suppressed because it is too large Load Diff

View File

@ -360,3 +360,11 @@ on_menu_news_activate (GtkMenuItem *menuitem,
gpointer user_data); gpointer user_data);
#endif #endif
void
on_menu_edit_name_activate (GtkMenuItem *menuitem,
gpointer user_data);
void
on_player_menu_edit_name_activate (GtkMenuItem *menuitem,
gpointer user_data);

View File

@ -38,7 +38,7 @@ create_main_window (void)
GtkWidget *menu_new; GtkWidget *menu_new;
GtkWidget *menu_open; GtkWidget *menu_open;
GtkWidget *menu_load_last_save; GtkWidget *menu_load_last_save;
GtkWidget *image2643; GtkWidget *image2684;
GtkWidget *menu_save; GtkWidget *menu_save;
GtkWidget *menu_save_as; GtkWidget *menu_save_as;
GtkWidget *trennlinie1; GtkWidget *trennlinie1;
@ -46,30 +46,30 @@ create_main_window (void)
GtkWidget *menu_options; GtkWidget *menu_options;
GtkWidget *menu_options_menu; GtkWidget *menu_options_menu;
GtkWidget *menu_preferences; GtkWidget *menu_preferences;
GtkWidget *image2644; GtkWidget *image2685;
GtkWidget *trennlinie7; GtkWidget *trennlinie7;
GtkWidget *menu_job_offers; GtkWidget *menu_job_offers;
GtkWidget *menu_live_game; GtkWidget *menu_live_game;
GtkWidget *menu_overwrite; GtkWidget *menu_overwrite;
GtkWidget *trennlinie14; GtkWidget *trennlinie14;
GtkWidget *menu_save_window_geometry; GtkWidget *menu_save_window_geometry;
GtkWidget *image2645; GtkWidget *image2686;
GtkWidget *menu_figures; GtkWidget *menu_figures;
GtkWidget *menu_figures_menu; GtkWidget *menu_figures_menu;
GtkWidget *menu_fixtures_week; GtkWidget *menu_fixtures_week;
GtkWidget *image2646; GtkWidget *image2687;
GtkWidget *menu_fixtures; GtkWidget *menu_fixtures;
GtkWidget *image2647; GtkWidget *image2688;
GtkWidget *menu_tables; GtkWidget *menu_tables;
GtkWidget *image2648; GtkWidget *image2689;
GtkWidget *menu_my_league_results; GtkWidget *menu_my_league_results;
GtkWidget *image2649; GtkWidget *image2690;
GtkWidget *menu_season_results; GtkWidget *menu_season_results;
GtkWidget *image2650; GtkWidget *image2691;
GtkWidget *menu_team; GtkWidget *menu_team;
GtkWidget *menu_team_menu; GtkWidget *menu_team_menu;
GtkWidget *menu_playing_style; GtkWidget *menu_playing_style;
GtkWidget *image2651; GtkWidget *image2692;
GtkWidget *menu_playing_style_menu; GtkWidget *menu_playing_style_menu;
GSList *menu_all_out_defend_group = NULL; GSList *menu_all_out_defend_group = NULL;
GtkWidget *menu_all_out_defend; GtkWidget *menu_all_out_defend;
@ -78,7 +78,7 @@ create_main_window (void)
GtkWidget *menu_attack; GtkWidget *menu_attack;
GtkWidget *menu_all_out_attack; GtkWidget *menu_all_out_attack;
GtkWidget *menu_scout; GtkWidget *menu_scout;
GtkWidget *image2652; GtkWidget *image2693;
GtkWidget *menu_scout_menu; GtkWidget *menu_scout_menu;
GSList *menu_scout_best_group = NULL; GSList *menu_scout_best_group = NULL;
GtkWidget *menu_scout_best; GtkWidget *menu_scout_best;
@ -86,7 +86,7 @@ create_main_window (void)
GtkWidget *menu_scout_average; GtkWidget *menu_scout_average;
GtkWidget *menu_scout_bad; GtkWidget *menu_scout_bad;
GtkWidget *menu_physio; GtkWidget *menu_physio;
GtkWidget *image2653; GtkWidget *image2694;
GtkWidget *menu_physio_menu; GtkWidget *menu_physio_menu;
GSList *menu_physio_best_group = NULL; GSList *menu_physio_best_group = NULL;
GtkWidget *menu_physio_best; GtkWidget *menu_physio_best;
@ -94,7 +94,7 @@ create_main_window (void)
GtkWidget *menu_physio_average; GtkWidget *menu_physio_average;
GtkWidget *menu_physio_bad; GtkWidget *menu_physio_bad;
GtkWidget *menu_youth_academy; GtkWidget *menu_youth_academy;
GtkWidget *image2654; GtkWidget *image2695;
GtkWidget *menu_youth_academy_menu; GtkWidget *menu_youth_academy_menu;
GtkWidget *menu_show_youth_academy; GtkWidget *menu_show_youth_academy;
GtkWidget *youth_coach1; GtkWidget *youth_coach1;
@ -114,7 +114,7 @@ create_main_window (void)
GtkWidget *menu_recruit4; GtkWidget *menu_recruit4;
GtkWidget *menu_set_investment; GtkWidget *menu_set_investment;
GtkWidget *menu_boost; GtkWidget *menu_boost;
GtkWidget *image2655; GtkWidget *image2696;
GtkWidget *menu_boost_menu; GtkWidget *menu_boost_menu;
GSList *menu_boost_on_group = NULL; GSList *menu_boost_on_group = NULL;
GtkWidget *menu_boost_on; GtkWidget *menu_boost_on;
@ -124,56 +124,57 @@ create_main_window (void)
GtkWidget *menu_training_camp; GtkWidget *menu_training_camp;
GtkWidget *trennlinie18; GtkWidget *trennlinie18;
GtkWidget *menu_reset_players; GtkWidget *menu_reset_players;
GtkWidget *image2656; GtkWidget *image2697;
GtkWidget *menu_custom_structure; GtkWidget *menu_custom_structure;
GtkWidget *image2657; GtkWidget *image2698;
GtkWidget *menu_rearrange_team; GtkWidget *menu_rearrange_team;
GtkWidget *image2658; GtkWidget *image2699;
GtkWidget *trennlinie8; GtkWidget *trennlinie8;
GtkWidget *menu_browse_teams; GtkWidget *menu_browse_teams;
GtkWidget *image2659; GtkWidget *image2700;
GtkWidget *trennlinie16; GtkWidget *trennlinie16;
GtkWidget *menu_show_job_exchange; GtkWidget *menu_show_job_exchange;
GtkWidget *menu_player; GtkWidget *menu_player;
GtkWidget *menu_player_menu; GtkWidget *menu_player_menu;
GtkWidget *menu_show_info; GtkWidget *menu_show_info;
GtkWidget *image2660; GtkWidget *image2701;
GtkWidget *menu_put_on_transfer_list; GtkWidget *menu_put_on_transfer_list;
GtkWidget *image2661; GtkWidget *image2702;
GtkWidget *menu_remove_from_transfer_list; GtkWidget *menu_remove_from_transfer_list;
GtkWidget *image2662; GtkWidget *image2703;
GtkWidget *menu_offer_new_contract; GtkWidget *menu_offer_new_contract;
GtkWidget *image2663; GtkWidget *image2704;
GtkWidget *menu_fire; GtkWidget *menu_fire;
GtkWidget *image2664; GtkWidget *image2705;
GtkWidget *menu_shoots_penalties; GtkWidget *menu_shoots_penalties;
GtkWidget *image2665; GtkWidget *image2706;
GtkWidget *menu_move_to_youth_academy; GtkWidget *menu_move_to_youth_academy;
GtkWidget *image2666; GtkWidget *image2707;
GtkWidget *menu_edit_name;
GtkWidget *trennlinie10; GtkWidget *trennlinie10;
GtkWidget *menu_browse_players; GtkWidget *menu_browse_players;
GtkWidget *image2667; GtkWidget *image2708;
GtkWidget *menu_user; GtkWidget *menu_user;
GtkWidget *menu_user_menu; GtkWidget *menu_user_menu;
GtkWidget *menu_user_show_last_match; GtkWidget *menu_user_show_last_match;
GtkWidget *image2668; GtkWidget *image2709;
GtkWidget *menu_user_show_last_stats; GtkWidget *menu_user_show_last_stats;
GtkWidget *image2669; GtkWidget *image2710;
GtkWidget *menu_user_show_coming_matches; GtkWidget *menu_user_show_coming_matches;
GtkWidget *image2670; GtkWidget *image2711;
GtkWidget *trennlinie9; GtkWidget *trennlinie9;
GtkWidget *menu_next_user; GtkWidget *menu_next_user;
GtkWidget *image2671; GtkWidget *image2712;
GtkWidget *menu_previous_user; GtkWidget *menu_previous_user;
GtkWidget *image2672; GtkWidget *image2713;
GtkWidget *menu_manage_users; GtkWidget *menu_manage_users;
GtkWidget *image2673; GtkWidget *image2714;
GtkWidget *menu_finances_stadium; GtkWidget *menu_finances_stadium;
GtkWidget *menu_finances_stadium_menu; GtkWidget *menu_finances_stadium_menu;
GtkWidget *menu_show_finances; GtkWidget *menu_show_finances;
GtkWidget *image2674; GtkWidget *image2715;
GtkWidget *menu_show_stadium; GtkWidget *menu_show_stadium;
GtkWidget *image2675; GtkWidget *image2716;
GtkWidget *automatic_loan_repayment; GtkWidget *automatic_loan_repayment;
GtkWidget *trennlinie15; GtkWidget *trennlinie15;
GtkWidget *menu_betting; GtkWidget *menu_betting;
@ -181,26 +182,26 @@ create_main_window (void)
GtkWidget *stats1_menu; GtkWidget *stats1_menu;
GtkWidget *menu_news; GtkWidget *menu_news;
GtkWidget *menu_league_stats; GtkWidget *menu_league_stats;
GtkWidget *image2676; GtkWidget *image2717;
GtkWidget *menu_season_history; GtkWidget *menu_season_history;
GtkWidget *image2677; GtkWidget *image2718;
GtkWidget *menu_user_show_history; GtkWidget *menu_user_show_history;
GtkWidget *image2678; GtkWidget *image2719;
GtkWidget *memorable_matches; GtkWidget *memorable_matches;
GtkWidget *image2679; GtkWidget *image2720;
GtkWidget *memorable_matches_menu; GtkWidget *memorable_matches_menu;
GtkWidget *mm_add_last_match; GtkWidget *mm_add_last_match;
GtkWidget *image2680; GtkWidget *image2721;
GtkWidget *mm_manage_matches; GtkWidget *mm_manage_matches;
GtkWidget *image2681; GtkWidget *image2722;
GtkWidget *menu_help1; GtkWidget *menu_help1;
GtkWidget *menu_help1_menu; GtkWidget *menu_help1_menu;
GtkWidget *menu_about; GtkWidget *menu_about;
GtkWidget *image2682; GtkWidget *image2723;
GtkWidget *menu_contributors; GtkWidget *menu_contributors;
GtkWidget *image2683; GtkWidget *image2724;
GtkWidget *menu_help; GtkWidget *menu_help;
GtkWidget *image2684; GtkWidget *image2725;
GtkWidget *hbox1; GtkWidget *hbox1;
GtkWidget *button_load; GtkWidget *button_load;
GtkWidget *image11; GtkWidget *image11;
@ -321,9 +322,9 @@ create_main_window (void)
GDK_l, (GdkModifierType) GDK_CONTROL_MASK, GDK_l, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2643 = gtk_image_new_from_stock ("gtk-revert-to-saved", GTK_ICON_SIZE_MENU); image2684 = gtk_image_new_from_stock ("gtk-revert-to-saved", GTK_ICON_SIZE_MENU);
gtk_widget_show (image2643); gtk_widget_show (image2684);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_load_last_save), image2643); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_load_last_save), image2684);
menu_save = gtk_image_menu_item_new_from_stock ("gtk-save", accel_group); menu_save = gtk_image_menu_item_new_from_stock ("gtk-save", accel_group);
gtk_widget_show (menu_save); gtk_widget_show (menu_save);
@ -356,9 +357,9 @@ create_main_window (void)
GDK_p, (GdkModifierType) GDK_CONTROL_MASK, GDK_p, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2644 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_MENU); image2685 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_MENU);
gtk_widget_show (image2644); gtk_widget_show (image2685);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_preferences), image2644); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_preferences), image2685);
trennlinie7 = gtk_separator_menu_item_new (); trennlinie7 = gtk_separator_menu_item_new ();
gtk_widget_show (trennlinie7); gtk_widget_show (trennlinie7);
@ -389,9 +390,9 @@ create_main_window (void)
gtk_container_add (GTK_CONTAINER (menu_options_menu), menu_save_window_geometry); gtk_container_add (GTK_CONTAINER (menu_options_menu), menu_save_window_geometry);
gtk_tooltips_set_tip (tooltips, menu_save_window_geometry, _("Save window size, position and vertical divider"), NULL); gtk_tooltips_set_tip (tooltips, menu_save_window_geometry, _("Save window size, position and vertical divider"), NULL);
image2645 = create_pixmap (main_window, "menu_save_geometry.png"); image2686 = create_pixmap (main_window, "menu_save_geometry.png");
gtk_widget_show (image2645); gtk_widget_show (image2686);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_save_window_geometry), image2645); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_save_window_geometry), image2686);
menu_figures = gtk_menu_item_new_with_mnemonic (_("F_igures")); menu_figures = gtk_menu_item_new_with_mnemonic (_("F_igures"));
gtk_widget_show (menu_figures); gtk_widget_show (menu_figures);
@ -407,9 +408,9 @@ create_main_window (void)
GDK_F3, (GdkModifierType) 0, GDK_F3, (GdkModifierType) 0,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2646 = create_pixmap (main_window, "menu_fixtures.png"); image2687 = create_pixmap (main_window, "menu_fixtures.png");
gtk_widget_show (image2646); gtk_widget_show (image2687);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_fixtures_week), image2646); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_fixtures_week), image2687);
menu_fixtures = gtk_image_menu_item_new_with_mnemonic (_("Fixtures (competitions)")); menu_fixtures = gtk_image_menu_item_new_with_mnemonic (_("Fixtures (competitions)"));
gtk_widget_show (menu_fixtures); gtk_widget_show (menu_fixtures);
@ -418,9 +419,9 @@ create_main_window (void)
GDK_F4, (GdkModifierType) 0, GDK_F4, (GdkModifierType) 0,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2647 = create_pixmap (main_window, "menu_fixtures_comp.png"); image2688 = create_pixmap (main_window, "menu_fixtures_comp.png");
gtk_widget_show (image2647); gtk_widget_show (image2688);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_fixtures), image2647); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_fixtures), image2688);
menu_tables = gtk_image_menu_item_new_with_mnemonic (_("Tables")); menu_tables = gtk_image_menu_item_new_with_mnemonic (_("Tables"));
gtk_widget_show (menu_tables); gtk_widget_show (menu_tables);
@ -429,9 +430,9 @@ create_main_window (void)
GDK_F5, (GdkModifierType) 0, GDK_F5, (GdkModifierType) 0,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2648 = create_pixmap (main_window, "menu_table.png"); image2689 = create_pixmap (main_window, "menu_table.png");
gtk_widget_show (image2648); gtk_widget_show (image2689);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_tables), image2648); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_tables), image2689);
menu_my_league_results = gtk_image_menu_item_new_with_mnemonic (_("My league results")); menu_my_league_results = gtk_image_menu_item_new_with_mnemonic (_("My league results"));
gtk_widget_show (menu_my_league_results); gtk_widget_show (menu_my_league_results);
@ -440,9 +441,9 @@ create_main_window (void)
GDK_F6, (GdkModifierType) 0, GDK_F6, (GdkModifierType) 0,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2649 = create_pixmap (main_window, "menu_league_results.png"); image2690 = create_pixmap (main_window, "menu_league_results.png");
gtk_widget_show (image2649); gtk_widget_show (image2690);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_my_league_results), image2649); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_my_league_results), image2690);
menu_season_results = gtk_image_menu_item_new_with_mnemonic (_("Season results")); menu_season_results = gtk_image_menu_item_new_with_mnemonic (_("Season results"));
gtk_widget_show (menu_season_results); gtk_widget_show (menu_season_results);
@ -451,9 +452,9 @@ create_main_window (void)
GDK_s, (GdkModifierType) GDK_SHIFT_MASK, GDK_s, (GdkModifierType) GDK_SHIFT_MASK,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2650 = create_pixmap (main_window, "menu_season_res.png"); image2691 = create_pixmap (main_window, "menu_season_res.png");
gtk_widget_show (image2650); gtk_widget_show (image2691);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_season_results), image2650); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_season_results), image2691);
menu_team = gtk_menu_item_new_with_mnemonic (_("_Team")); menu_team = gtk_menu_item_new_with_mnemonic (_("_Team"));
gtk_widget_show (menu_team); gtk_widget_show (menu_team);
@ -466,9 +467,9 @@ create_main_window (void)
gtk_widget_show (menu_playing_style); gtk_widget_show (menu_playing_style);
gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_playing_style); gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_playing_style);
image2651 = create_pixmap (main_window, "menu_style.png"); image2692 = create_pixmap (main_window, "menu_style.png");
gtk_widget_show (image2651); gtk_widget_show (image2692);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_playing_style), image2651); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_playing_style), image2692);
menu_playing_style_menu = gtk_menu_new (); menu_playing_style_menu = gtk_menu_new ();
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_playing_style), menu_playing_style_menu); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_playing_style), menu_playing_style_menu);
@ -507,9 +508,9 @@ create_main_window (void)
gtk_widget_show (menu_scout); gtk_widget_show (menu_scout);
gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_scout); gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_scout);
image2652 = create_pixmap (main_window, "menu_scout.png"); image2693 = create_pixmap (main_window, "menu_scout.png");
gtk_widget_show (image2652); gtk_widget_show (image2693);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_scout), image2652); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_scout), image2693);
menu_scout_menu = gtk_menu_new (); menu_scout_menu = gtk_menu_new ();
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_scout), menu_scout_menu); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_scout), menu_scout_menu);
@ -542,9 +543,9 @@ create_main_window (void)
gtk_widget_show (menu_physio); gtk_widget_show (menu_physio);
gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_physio); gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_physio);
image2653 = create_pixmap (main_window, "menu_physio.png"); image2694 = create_pixmap (main_window, "menu_physio.png");
gtk_widget_show (image2653); gtk_widget_show (image2694);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_physio), image2653); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_physio), image2694);
menu_physio_menu = gtk_menu_new (); menu_physio_menu = gtk_menu_new ();
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_physio), menu_physio_menu); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_physio), menu_physio_menu);
@ -577,9 +578,9 @@ create_main_window (void)
gtk_widget_show (menu_youth_academy); gtk_widget_show (menu_youth_academy);
gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_youth_academy); gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_youth_academy);
image2654 = create_pixmap (main_window, "menu_youth_academy.png"); image2695 = create_pixmap (main_window, "menu_youth_academy.png");
gtk_widget_show (image2654); gtk_widget_show (image2695);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_youth_academy), image2654); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_youth_academy), image2695);
menu_youth_academy_menu = gtk_menu_new (); menu_youth_academy_menu = gtk_menu_new ();
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_youth_academy), menu_youth_academy_menu); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_youth_academy), menu_youth_academy_menu);
@ -668,9 +669,9 @@ create_main_window (void)
gtk_widget_show (menu_boost); gtk_widget_show (menu_boost);
gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_boost); gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_boost);
image2655 = create_pixmap (main_window, "menu_boost.png"); image2696 = create_pixmap (main_window, "menu_boost.png");
gtk_widget_show (image2655); gtk_widget_show (image2696);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_boost), image2655); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_boost), image2696);
menu_boost_menu = gtk_menu_new (); menu_boost_menu = gtk_menu_new ();
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_boost), menu_boost_menu); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_boost), menu_boost_menu);
@ -711,17 +712,17 @@ create_main_window (void)
gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_reset_players); gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_reset_players);
gtk_tooltips_set_tip (tooltips, menu_reset_players, _("Reset player list to the formation at the beginning of the live game pause (right click on player list)"), NULL); gtk_tooltips_set_tip (tooltips, menu_reset_players, _("Reset player list to the formation at the beginning of the live game pause (right click on player list)"), NULL);
image2656 = gtk_image_new_from_stock ("gtk-undo", GTK_ICON_SIZE_MENU); image2697 = gtk_image_new_from_stock ("gtk-undo", GTK_ICON_SIZE_MENU);
gtk_widget_show (image2656); gtk_widget_show (image2697);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_reset_players), image2656); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_reset_players), image2697);
menu_custom_structure = gtk_image_menu_item_new_with_mnemonic (_("Enter custom structure")); menu_custom_structure = gtk_image_menu_item_new_with_mnemonic (_("Enter custom structure"));
gtk_widget_show (menu_custom_structure); gtk_widget_show (menu_custom_structure);
gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_custom_structure); gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_custom_structure);
image2657 = create_pixmap (main_window, "menu_structure.png"); image2698 = create_pixmap (main_window, "menu_structure.png");
gtk_widget_show (image2657); gtk_widget_show (image2698);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_custom_structure), image2657); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_custom_structure), image2698);
menu_rearrange_team = gtk_image_menu_item_new_with_mnemonic (_("Rearrange team")); menu_rearrange_team = gtk_image_menu_item_new_with_mnemonic (_("Rearrange team"));
gtk_widget_show (menu_rearrange_team); gtk_widget_show (menu_rearrange_team);
@ -731,9 +732,9 @@ create_main_window (void)
GDK_r, (GdkModifierType) GDK_CONTROL_MASK, GDK_r, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2658 = create_pixmap (main_window, "menu_rearrange.png"); image2699 = create_pixmap (main_window, "menu_rearrange.png");
gtk_widget_show (image2658); gtk_widget_show (image2699);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_rearrange_team), image2658); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_rearrange_team), image2699);
trennlinie8 = gtk_separator_menu_item_new (); trennlinie8 = gtk_separator_menu_item_new ();
gtk_widget_show (trennlinie8); gtk_widget_show (trennlinie8);
@ -744,9 +745,9 @@ create_main_window (void)
gtk_widget_show (menu_browse_teams); gtk_widget_show (menu_browse_teams);
gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_browse_teams); gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_browse_teams);
image2659 = create_pixmap (main_window, "menu_browse_tms.png"); image2700 = create_pixmap (main_window, "menu_browse_tms.png");
gtk_widget_show (image2659); gtk_widget_show (image2700);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_browse_teams), image2659); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_browse_teams), image2700);
trennlinie16 = gtk_separator_menu_item_new (); trennlinie16 = gtk_separator_menu_item_new ();
gtk_widget_show (trennlinie16); gtk_widget_show (trennlinie16);
@ -772,57 +773,61 @@ create_main_window (void)
gtk_widget_show (menu_show_info); gtk_widget_show (menu_show_info);
gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_show_info); gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_show_info);
image2660 = create_pixmap (main_window, "menu_player_info.png"); image2701 = create_pixmap (main_window, "menu_player_info.png");
gtk_widget_show (image2660); gtk_widget_show (image2701);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_show_info), image2660); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_show_info), image2701);
menu_put_on_transfer_list = gtk_image_menu_item_new_with_mnemonic (_("Put on transfer list")); menu_put_on_transfer_list = gtk_image_menu_item_new_with_mnemonic (_("Put on transfer list"));
gtk_widget_show (menu_put_on_transfer_list); gtk_widget_show (menu_put_on_transfer_list);
gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_put_on_transfer_list); gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_put_on_transfer_list);
image2661 = create_pixmap (main_window, "menu_player_put_transfer.png"); image2702 = create_pixmap (main_window, "menu_player_put_transfer.png");
gtk_widget_show (image2661); gtk_widget_show (image2702);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_put_on_transfer_list), image2661); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_put_on_transfer_list), image2702);
menu_remove_from_transfer_list = gtk_image_menu_item_new_with_mnemonic (_("Remove from transfer list")); menu_remove_from_transfer_list = gtk_image_menu_item_new_with_mnemonic (_("Remove from transfer list"));
gtk_widget_show (menu_remove_from_transfer_list); gtk_widget_show (menu_remove_from_transfer_list);
gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_remove_from_transfer_list); gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_remove_from_transfer_list);
image2662 = create_pixmap (main_window, "menu_player_remove_transfer.png"); image2703 = create_pixmap (main_window, "menu_player_remove_transfer.png");
gtk_widget_show (image2662); gtk_widget_show (image2703);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_remove_from_transfer_list), image2662); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_remove_from_transfer_list), image2703);
menu_offer_new_contract = gtk_image_menu_item_new_with_mnemonic (_("Offer new contract")); menu_offer_new_contract = gtk_image_menu_item_new_with_mnemonic (_("Offer new contract"));
gtk_widget_show (menu_offer_new_contract); gtk_widget_show (menu_offer_new_contract);
gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_offer_new_contract); gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_offer_new_contract);
image2663 = create_pixmap (main_window, "menu_player_contract.png"); image2704 = create_pixmap (main_window, "menu_player_contract.png");
gtk_widget_show (image2663); gtk_widget_show (image2704);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_offer_new_contract), image2663); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_offer_new_contract), image2704);
menu_fire = gtk_image_menu_item_new_with_mnemonic (_("Fire")); menu_fire = gtk_image_menu_item_new_with_mnemonic (_("Fire"));
gtk_widget_show (menu_fire); gtk_widget_show (menu_fire);
gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_fire); gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_fire);
image2664 = create_pixmap (main_window, "menu_player_fire.png"); image2705 = create_pixmap (main_window, "menu_player_fire.png");
gtk_widget_show (image2664); gtk_widget_show (image2705);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_fire), image2664); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_fire), image2705);
menu_shoots_penalties = gtk_image_menu_item_new_with_mnemonic (_("Shoots penalties")); menu_shoots_penalties = gtk_image_menu_item_new_with_mnemonic (_("Shoots penalties"));
gtk_widget_show (menu_shoots_penalties); gtk_widget_show (menu_shoots_penalties);
gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_shoots_penalties); gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_shoots_penalties);
image2665 = create_pixmap (main_window, "menu_player_shoots.png"); image2706 = create_pixmap (main_window, "menu_player_shoots.png");
gtk_widget_show (image2665); gtk_widget_show (image2706);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_shoots_penalties), image2665); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_shoots_penalties), image2706);
menu_move_to_youth_academy = gtk_image_menu_item_new_with_mnemonic (_("Move to youth academy")); menu_move_to_youth_academy = gtk_image_menu_item_new_with_mnemonic (_("Move to youth academy"));
gtk_widget_show (menu_move_to_youth_academy); gtk_widget_show (menu_move_to_youth_academy);
gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_move_to_youth_academy); gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_move_to_youth_academy);
image2666 = create_pixmap (main_window, "menu_player_move_to_ya.png"); image2707 = create_pixmap (main_window, "menu_player_move_to_ya.png");
gtk_widget_show (image2666); gtk_widget_show (image2707);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_move_to_youth_academy), image2666); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_move_to_youth_academy), image2707);
menu_edit_name = gtk_menu_item_new_with_mnemonic (_("Edit name"));
gtk_widget_show (menu_edit_name);
gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_edit_name);
trennlinie10 = gtk_separator_menu_item_new (); trennlinie10 = gtk_separator_menu_item_new ();
gtk_widget_show (trennlinie10); gtk_widget_show (trennlinie10);
@ -833,9 +838,9 @@ create_main_window (void)
gtk_widget_show (menu_browse_players); gtk_widget_show (menu_browse_players);
gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_browse_players); gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_browse_players);
image2667 = create_pixmap (main_window, "menu_player_browse.png"); image2708 = create_pixmap (main_window, "menu_player_browse.png");
gtk_widget_show (image2667); gtk_widget_show (image2708);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_browse_players), image2667); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_browse_players), image2708);
menu_user = gtk_menu_item_new_with_mnemonic (_("_User")); menu_user = gtk_menu_item_new_with_mnemonic (_("_User"));
gtk_widget_show (menu_user); gtk_widget_show (menu_user);
@ -851,9 +856,9 @@ create_main_window (void)
GDK_v, (GdkModifierType) GDK_CONTROL_MASK, GDK_v, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2668 = create_pixmap (main_window, "menu_last_match.png"); image2709 = create_pixmap (main_window, "menu_last_match.png");
gtk_widget_show (image2668); gtk_widget_show (image2709);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_user_show_last_match), image2668); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_user_show_last_match), image2709);
menu_user_show_last_stats = gtk_image_menu_item_new_with_mnemonic (_("Show last match stats")); menu_user_show_last_stats = gtk_image_menu_item_new_with_mnemonic (_("Show last match stats"));
gtk_widget_show (menu_user_show_last_stats); gtk_widget_show (menu_user_show_last_stats);
@ -862,9 +867,9 @@ create_main_window (void)
GDK_F2, (GdkModifierType) 0, GDK_F2, (GdkModifierType) 0,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2669 = create_pixmap (main_window, "menu_match_stats.png"); image2710 = create_pixmap (main_window, "menu_match_stats.png");
gtk_widget_show (image2669); gtk_widget_show (image2710);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_user_show_last_stats), image2669); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_user_show_last_stats), image2710);
menu_user_show_coming_matches = gtk_image_menu_item_new_with_mnemonic (_("Show coming matches")); menu_user_show_coming_matches = gtk_image_menu_item_new_with_mnemonic (_("Show coming matches"));
gtk_widget_show (menu_user_show_coming_matches); gtk_widget_show (menu_user_show_coming_matches);
@ -873,9 +878,9 @@ create_main_window (void)
GDK_F1, (GdkModifierType) 0, GDK_F1, (GdkModifierType) 0,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2670 = gtk_image_new_from_stock ("gtk-jump-to", GTK_ICON_SIZE_MENU); image2711 = gtk_image_new_from_stock ("gtk-jump-to", GTK_ICON_SIZE_MENU);
gtk_widget_show (image2670); gtk_widget_show (image2711);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_user_show_coming_matches), image2670); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_user_show_coming_matches), image2711);
trennlinie9 = gtk_separator_menu_item_new (); trennlinie9 = gtk_separator_menu_item_new ();
gtk_widget_show (trennlinie9); gtk_widget_show (trennlinie9);
@ -889,9 +894,9 @@ create_main_window (void)
GDK_F9, (GdkModifierType) 0, GDK_F9, (GdkModifierType) 0,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2671 = gtk_image_new_from_stock ("gtk-media-forward", GTK_ICON_SIZE_MENU); image2712 = gtk_image_new_from_stock ("gtk-media-forward", GTK_ICON_SIZE_MENU);
gtk_widget_show (image2671); gtk_widget_show (image2712);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_next_user), image2671); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_next_user), image2712);
menu_previous_user = gtk_image_menu_item_new_with_mnemonic (_("Previous user")); menu_previous_user = gtk_image_menu_item_new_with_mnemonic (_("Previous user"));
gtk_widget_show (menu_previous_user); gtk_widget_show (menu_previous_user);
@ -900,9 +905,9 @@ create_main_window (void)
GDK_F8, (GdkModifierType) 0, GDK_F8, (GdkModifierType) 0,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2672 = gtk_image_new_from_stock ("gtk-go-back", GTK_ICON_SIZE_MENU); image2713 = gtk_image_new_from_stock ("gtk-go-back", GTK_ICON_SIZE_MENU);
gtk_widget_show (image2672); gtk_widget_show (image2713);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_previous_user), image2672); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_previous_user), image2713);
menu_manage_users = gtk_image_menu_item_new_with_mnemonic (_("Manage users")); menu_manage_users = gtk_image_menu_item_new_with_mnemonic (_("Manage users"));
gtk_widget_show (menu_manage_users); gtk_widget_show (menu_manage_users);
@ -911,9 +916,9 @@ create_main_window (void)
GDK_F12, (GdkModifierType) 0, GDK_F12, (GdkModifierType) 0,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2673 = gtk_image_new_from_stock ("gtk-justify-fill", GTK_ICON_SIZE_MENU); image2714 = gtk_image_new_from_stock ("gtk-justify-fill", GTK_ICON_SIZE_MENU);
gtk_widget_show (image2673); gtk_widget_show (image2714);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_manage_users), image2673); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_manage_users), image2714);
menu_finances_stadium = gtk_menu_item_new_with_mnemonic (_("Fin_Stad")); menu_finances_stadium = gtk_menu_item_new_with_mnemonic (_("Fin_Stad"));
gtk_widget_show (menu_finances_stadium); gtk_widget_show (menu_finances_stadium);
@ -929,9 +934,9 @@ create_main_window (void)
GDK_f, (GdkModifierType) 0, GDK_f, (GdkModifierType) 0,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2674 = create_pixmap (main_window, "menu_finances.png"); image2715 = create_pixmap (main_window, "menu_finances.png");
gtk_widget_show (image2674); gtk_widget_show (image2715);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_show_finances), image2674); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_show_finances), image2715);
menu_show_stadium = gtk_image_menu_item_new_with_mnemonic (_("Show stadium")); menu_show_stadium = gtk_image_menu_item_new_with_mnemonic (_("Show stadium"));
gtk_widget_show (menu_show_stadium); gtk_widget_show (menu_show_stadium);
@ -940,9 +945,9 @@ create_main_window (void)
GDK_f, (GdkModifierType) GDK_CONTROL_MASK, GDK_f, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2675 = create_pixmap (main_window, "menu_stadium.png"); image2716 = create_pixmap (main_window, "menu_stadium.png");
gtk_widget_show (image2675); gtk_widget_show (image2716);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_show_stadium), image2675); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_show_stadium), image2716);
automatic_loan_repayment = gtk_menu_item_new_with_mnemonic (_("Automatic loan repayment")); automatic_loan_repayment = gtk_menu_item_new_with_mnemonic (_("Automatic loan repayment"));
gtk_widget_show (automatic_loan_repayment); gtk_widget_show (automatic_loan_repayment);
@ -985,9 +990,9 @@ create_main_window (void)
GDK_s, (GdkModifierType) 0, GDK_s, (GdkModifierType) 0,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2676 = create_pixmap (main_window, "menu_league_stats.png"); image2717 = create_pixmap (main_window, "menu_league_stats.png");
gtk_widget_show (image2676); gtk_widget_show (image2717);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_league_stats), image2676); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_league_stats), image2717);
menu_season_history = gtk_image_menu_item_new_with_mnemonic (_("Season history")); menu_season_history = gtk_image_menu_item_new_with_mnemonic (_("Season history"));
gtk_widget_show (menu_season_history); gtk_widget_show (menu_season_history);
@ -996,9 +1001,9 @@ create_main_window (void)
GDK_h, (GdkModifierType) 0, GDK_h, (GdkModifierType) 0,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2677 = create_pixmap (main_window, "menu_history.png"); image2718 = create_pixmap (main_window, "menu_history.png");
gtk_widget_show (image2677); gtk_widget_show (image2718);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_season_history), image2677); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_season_history), image2718);
menu_user_show_history = gtk_image_menu_item_new_with_mnemonic (_("User history")); menu_user_show_history = gtk_image_menu_item_new_with_mnemonic (_("User history"));
gtk_widget_show (menu_user_show_history); gtk_widget_show (menu_user_show_history);
@ -1007,17 +1012,17 @@ create_main_window (void)
GDK_h, (GdkModifierType) GDK_CONTROL_MASK, GDK_h, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2678 = create_pixmap (main_window, "menu_history.png"); image2719 = create_pixmap (main_window, "menu_history.png");
gtk_widget_show (image2678); gtk_widget_show (image2719);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_user_show_history), image2678); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_user_show_history), image2719);
memorable_matches = gtk_image_menu_item_new_with_mnemonic (_("Memorable matches")); memorable_matches = gtk_image_menu_item_new_with_mnemonic (_("Memorable matches"));
gtk_widget_show (memorable_matches); gtk_widget_show (memorable_matches);
gtk_container_add (GTK_CONTAINER (stats1_menu), memorable_matches); gtk_container_add (GTK_CONTAINER (stats1_menu), memorable_matches);
image2679 = create_pixmap (main_window, "menu_mmatches.png"); image2720 = create_pixmap (main_window, "menu_mmatches.png");
gtk_widget_show (image2679); gtk_widget_show (image2720);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (memorable_matches), image2679); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (memorable_matches), image2720);
memorable_matches_menu = gtk_menu_new (); memorable_matches_menu = gtk_menu_new ();
gtk_menu_item_set_submenu (GTK_MENU_ITEM (memorable_matches), memorable_matches_menu); gtk_menu_item_set_submenu (GTK_MENU_ITEM (memorable_matches), memorable_matches_menu);
@ -1030,9 +1035,9 @@ create_main_window (void)
GDK_a, (GdkModifierType) GDK_CONTROL_MASK, GDK_a, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2680 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); image2721 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
gtk_widget_show (image2680); gtk_widget_show (image2721);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mm_add_last_match), image2680); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mm_add_last_match), image2721);
mm_manage_matches = gtk_image_menu_item_new_with_mnemonic (_("Manage matches")); mm_manage_matches = gtk_image_menu_item_new_with_mnemonic (_("Manage matches"));
gtk_widget_show (mm_manage_matches); gtk_widget_show (mm_manage_matches);
@ -1042,9 +1047,9 @@ create_main_window (void)
GDK_m, (GdkModifierType) GDK_CONTROL_MASK, GDK_m, (GdkModifierType) GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE); GTK_ACCEL_VISIBLE);
image2681 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_MENU); image2722 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_MENU);
gtk_widget_show (image2681); gtk_widget_show (image2722);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mm_manage_matches), image2681); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mm_manage_matches), image2722);
menu_help1 = gtk_menu_item_new_with_mnemonic (_("_Help")); menu_help1 = gtk_menu_item_new_with_mnemonic (_("_Help"));
gtk_widget_show (menu_help1); gtk_widget_show (menu_help1);
@ -1057,25 +1062,25 @@ create_main_window (void)
gtk_widget_show (menu_about); gtk_widget_show (menu_about);
gtk_container_add (GTK_CONTAINER (menu_help1_menu), menu_about); gtk_container_add (GTK_CONTAINER (menu_help1_menu), menu_about);
image2682 = gtk_image_new_from_stock ("gtk-dialog-info", GTK_ICON_SIZE_MENU); image2723 = gtk_image_new_from_stock ("gtk-dialog-info", GTK_ICON_SIZE_MENU);
gtk_widget_show (image2682); gtk_widget_show (image2723);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_about), image2682); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_about), image2723);
menu_contributors = gtk_image_menu_item_new_with_mnemonic (_("Contributors")); menu_contributors = gtk_image_menu_item_new_with_mnemonic (_("Contributors"));
gtk_widget_show (menu_contributors); gtk_widget_show (menu_contributors);
gtk_container_add (GTK_CONTAINER (menu_help1_menu), menu_contributors); gtk_container_add (GTK_CONTAINER (menu_help1_menu), menu_contributors);
image2683 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU); image2724 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
gtk_widget_show (image2683); gtk_widget_show (image2724);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_contributors), image2683); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_contributors), image2724);
menu_help = gtk_image_menu_item_new_with_mnemonic (_("Help")); menu_help = gtk_image_menu_item_new_with_mnemonic (_("Help"));
gtk_widget_show (menu_help); gtk_widget_show (menu_help);
gtk_container_add (GTK_CONTAINER (menu_help1_menu), menu_help); gtk_container_add (GTK_CONTAINER (menu_help1_menu), menu_help);
image2684 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_MENU); image2725 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_MENU);
gtk_widget_show (image2684); gtk_widget_show (image2725);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_help), image2684); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_help), image2725);
hbox1 = gtk_hbox_new (FALSE, 0); hbox1 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox1); gtk_widget_show (hbox1);
@ -1613,6 +1618,9 @@ create_main_window (void)
g_signal_connect ((gpointer) menu_move_to_youth_academy, "activate", g_signal_connect ((gpointer) menu_move_to_youth_academy, "activate",
G_CALLBACK (on_menu_move_to_youth_academy_activate), G_CALLBACK (on_menu_move_to_youth_academy_activate),
NULL); NULL);
g_signal_connect ((gpointer) menu_edit_name, "activate",
G_CALLBACK (on_menu_edit_name_activate),
NULL);
g_signal_connect ((gpointer) menu_browse_players, "activate", g_signal_connect ((gpointer) menu_browse_players, "activate",
G_CALLBACK (on_menu_browse_players_activate), G_CALLBACK (on_menu_browse_players_activate),
NULL); NULL);
@ -1740,7 +1748,7 @@ create_main_window (void)
GLADE_HOOKUP_OBJECT (main_window, menu_new, "menu_new"); GLADE_HOOKUP_OBJECT (main_window, menu_new, "menu_new");
GLADE_HOOKUP_OBJECT (main_window, menu_open, "menu_open"); GLADE_HOOKUP_OBJECT (main_window, menu_open, "menu_open");
GLADE_HOOKUP_OBJECT (main_window, menu_load_last_save, "menu_load_last_save"); GLADE_HOOKUP_OBJECT (main_window, menu_load_last_save, "menu_load_last_save");
GLADE_HOOKUP_OBJECT (main_window, image2643, "image2643"); GLADE_HOOKUP_OBJECT (main_window, image2684, "image2684");
GLADE_HOOKUP_OBJECT (main_window, menu_save, "menu_save"); GLADE_HOOKUP_OBJECT (main_window, menu_save, "menu_save");
GLADE_HOOKUP_OBJECT (main_window, menu_save_as, "menu_save_as"); GLADE_HOOKUP_OBJECT (main_window, menu_save_as, "menu_save_as");
GLADE_HOOKUP_OBJECT (main_window, trennlinie1, "trennlinie1"); GLADE_HOOKUP_OBJECT (main_window, trennlinie1, "trennlinie1");
@ -1748,30 +1756,30 @@ create_main_window (void)
GLADE_HOOKUP_OBJECT (main_window, menu_options, "menu_options"); GLADE_HOOKUP_OBJECT (main_window, menu_options, "menu_options");
GLADE_HOOKUP_OBJECT (main_window, menu_options_menu, "menu_options_menu"); GLADE_HOOKUP_OBJECT (main_window, menu_options_menu, "menu_options_menu");
GLADE_HOOKUP_OBJECT (main_window, menu_preferences, "menu_preferences"); GLADE_HOOKUP_OBJECT (main_window, menu_preferences, "menu_preferences");
GLADE_HOOKUP_OBJECT (main_window, image2644, "image2644"); GLADE_HOOKUP_OBJECT (main_window, image2685, "image2685");
GLADE_HOOKUP_OBJECT (main_window, trennlinie7, "trennlinie7"); GLADE_HOOKUP_OBJECT (main_window, trennlinie7, "trennlinie7");
GLADE_HOOKUP_OBJECT (main_window, menu_job_offers, "menu_job_offers"); GLADE_HOOKUP_OBJECT (main_window, menu_job_offers, "menu_job_offers");
GLADE_HOOKUP_OBJECT (main_window, menu_live_game, "menu_live_game"); GLADE_HOOKUP_OBJECT (main_window, menu_live_game, "menu_live_game");
GLADE_HOOKUP_OBJECT (main_window, menu_overwrite, "menu_overwrite"); GLADE_HOOKUP_OBJECT (main_window, menu_overwrite, "menu_overwrite");
GLADE_HOOKUP_OBJECT (main_window, trennlinie14, "trennlinie14"); GLADE_HOOKUP_OBJECT (main_window, trennlinie14, "trennlinie14");
GLADE_HOOKUP_OBJECT (main_window, menu_save_window_geometry, "menu_save_window_geometry"); GLADE_HOOKUP_OBJECT (main_window, menu_save_window_geometry, "menu_save_window_geometry");
GLADE_HOOKUP_OBJECT (main_window, image2645, "image2645"); GLADE_HOOKUP_OBJECT (main_window, image2686, "image2686");
GLADE_HOOKUP_OBJECT (main_window, menu_figures, "menu_figures"); GLADE_HOOKUP_OBJECT (main_window, menu_figures, "menu_figures");
GLADE_HOOKUP_OBJECT (main_window, menu_figures_menu, "menu_figures_menu"); GLADE_HOOKUP_OBJECT (main_window, menu_figures_menu, "menu_figures_menu");
GLADE_HOOKUP_OBJECT (main_window, menu_fixtures_week, "menu_fixtures_week"); GLADE_HOOKUP_OBJECT (main_window, menu_fixtures_week, "menu_fixtures_week");
GLADE_HOOKUP_OBJECT (main_window, image2646, "image2646"); GLADE_HOOKUP_OBJECT (main_window, image2687, "image2687");
GLADE_HOOKUP_OBJECT (main_window, menu_fixtures, "menu_fixtures"); GLADE_HOOKUP_OBJECT (main_window, menu_fixtures, "menu_fixtures");
GLADE_HOOKUP_OBJECT (main_window, image2647, "image2647"); GLADE_HOOKUP_OBJECT (main_window, image2688, "image2688");
GLADE_HOOKUP_OBJECT (main_window, menu_tables, "menu_tables"); GLADE_HOOKUP_OBJECT (main_window, menu_tables, "menu_tables");
GLADE_HOOKUP_OBJECT (main_window, image2648, "image2648"); GLADE_HOOKUP_OBJECT (main_window, image2689, "image2689");
GLADE_HOOKUP_OBJECT (main_window, menu_my_league_results, "menu_my_league_results"); GLADE_HOOKUP_OBJECT (main_window, menu_my_league_results, "menu_my_league_results");
GLADE_HOOKUP_OBJECT (main_window, image2649, "image2649"); GLADE_HOOKUP_OBJECT (main_window, image2690, "image2690");
GLADE_HOOKUP_OBJECT (main_window, menu_season_results, "menu_season_results"); GLADE_HOOKUP_OBJECT (main_window, menu_season_results, "menu_season_results");
GLADE_HOOKUP_OBJECT (main_window, image2650, "image2650"); GLADE_HOOKUP_OBJECT (main_window, image2691, "image2691");
GLADE_HOOKUP_OBJECT (main_window, menu_team, "menu_team"); GLADE_HOOKUP_OBJECT (main_window, menu_team, "menu_team");
GLADE_HOOKUP_OBJECT (main_window, menu_team_menu, "menu_team_menu"); GLADE_HOOKUP_OBJECT (main_window, menu_team_menu, "menu_team_menu");
GLADE_HOOKUP_OBJECT (main_window, menu_playing_style, "menu_playing_style"); GLADE_HOOKUP_OBJECT (main_window, menu_playing_style, "menu_playing_style");
GLADE_HOOKUP_OBJECT (main_window, image2651, "image2651"); GLADE_HOOKUP_OBJECT (main_window, image2692, "image2692");
GLADE_HOOKUP_OBJECT (main_window, menu_playing_style_menu, "menu_playing_style_menu"); GLADE_HOOKUP_OBJECT (main_window, menu_playing_style_menu, "menu_playing_style_menu");
GLADE_HOOKUP_OBJECT (main_window, menu_all_out_defend, "menu_all_out_defend"); GLADE_HOOKUP_OBJECT (main_window, menu_all_out_defend, "menu_all_out_defend");
GLADE_HOOKUP_OBJECT (main_window, menu_defend, "menu_defend"); GLADE_HOOKUP_OBJECT (main_window, menu_defend, "menu_defend");
@ -1779,21 +1787,21 @@ create_main_window (void)
GLADE_HOOKUP_OBJECT (main_window, menu_attack, "menu_attack"); GLADE_HOOKUP_OBJECT (main_window, menu_attack, "menu_attack");
GLADE_HOOKUP_OBJECT (main_window, menu_all_out_attack, "menu_all_out_attack"); GLADE_HOOKUP_OBJECT (main_window, menu_all_out_attack, "menu_all_out_attack");
GLADE_HOOKUP_OBJECT (main_window, menu_scout, "menu_scout"); GLADE_HOOKUP_OBJECT (main_window, menu_scout, "menu_scout");
GLADE_HOOKUP_OBJECT (main_window, image2652, "image2652"); GLADE_HOOKUP_OBJECT (main_window, image2693, "image2693");
GLADE_HOOKUP_OBJECT (main_window, menu_scout_menu, "menu_scout_menu"); GLADE_HOOKUP_OBJECT (main_window, menu_scout_menu, "menu_scout_menu");
GLADE_HOOKUP_OBJECT (main_window, menu_scout_best, "menu_scout_best"); GLADE_HOOKUP_OBJECT (main_window, menu_scout_best, "menu_scout_best");
GLADE_HOOKUP_OBJECT (main_window, menu_scout_good, "menu_scout_good"); GLADE_HOOKUP_OBJECT (main_window, menu_scout_good, "menu_scout_good");
GLADE_HOOKUP_OBJECT (main_window, menu_scout_average, "menu_scout_average"); GLADE_HOOKUP_OBJECT (main_window, menu_scout_average, "menu_scout_average");
GLADE_HOOKUP_OBJECT (main_window, menu_scout_bad, "menu_scout_bad"); GLADE_HOOKUP_OBJECT (main_window, menu_scout_bad, "menu_scout_bad");
GLADE_HOOKUP_OBJECT (main_window, menu_physio, "menu_physio"); GLADE_HOOKUP_OBJECT (main_window, menu_physio, "menu_physio");
GLADE_HOOKUP_OBJECT (main_window, image2653, "image2653"); GLADE_HOOKUP_OBJECT (main_window, image2694, "image2694");
GLADE_HOOKUP_OBJECT (main_window, menu_physio_menu, "menu_physio_menu"); GLADE_HOOKUP_OBJECT (main_window, menu_physio_menu, "menu_physio_menu");
GLADE_HOOKUP_OBJECT (main_window, menu_physio_best, "menu_physio_best"); GLADE_HOOKUP_OBJECT (main_window, menu_physio_best, "menu_physio_best");
GLADE_HOOKUP_OBJECT (main_window, menu_physio_good, "menu_physio_good"); GLADE_HOOKUP_OBJECT (main_window, menu_physio_good, "menu_physio_good");
GLADE_HOOKUP_OBJECT (main_window, menu_physio_average, "menu_physio_average"); GLADE_HOOKUP_OBJECT (main_window, menu_physio_average, "menu_physio_average");
GLADE_HOOKUP_OBJECT (main_window, menu_physio_bad, "menu_physio_bad"); GLADE_HOOKUP_OBJECT (main_window, menu_physio_bad, "menu_physio_bad");
GLADE_HOOKUP_OBJECT (main_window, menu_youth_academy, "menu_youth_academy"); GLADE_HOOKUP_OBJECT (main_window, menu_youth_academy, "menu_youth_academy");
GLADE_HOOKUP_OBJECT (main_window, image2654, "image2654"); GLADE_HOOKUP_OBJECT (main_window, image2695, "image2695");
GLADE_HOOKUP_OBJECT (main_window, menu_youth_academy_menu, "menu_youth_academy_menu"); GLADE_HOOKUP_OBJECT (main_window, menu_youth_academy_menu, "menu_youth_academy_menu");
GLADE_HOOKUP_OBJECT (main_window, menu_show_youth_academy, "menu_show_youth_academy"); GLADE_HOOKUP_OBJECT (main_window, menu_show_youth_academy, "menu_show_youth_academy");
GLADE_HOOKUP_OBJECT (main_window, youth_coach1, "youth_coach1"); GLADE_HOOKUP_OBJECT (main_window, youth_coach1, "youth_coach1");
@ -1811,7 +1819,7 @@ create_main_window (void)
GLADE_HOOKUP_OBJECT (main_window, menu_recruit4, "menu_recruit4"); GLADE_HOOKUP_OBJECT (main_window, menu_recruit4, "menu_recruit4");
GLADE_HOOKUP_OBJECT (main_window, menu_set_investment, "menu_set_investment"); GLADE_HOOKUP_OBJECT (main_window, menu_set_investment, "menu_set_investment");
GLADE_HOOKUP_OBJECT (main_window, menu_boost, "menu_boost"); GLADE_HOOKUP_OBJECT (main_window, menu_boost, "menu_boost");
GLADE_HOOKUP_OBJECT (main_window, image2655, "image2655"); GLADE_HOOKUP_OBJECT (main_window, image2696, "image2696");
GLADE_HOOKUP_OBJECT (main_window, menu_boost_menu, "menu_boost_menu"); GLADE_HOOKUP_OBJECT (main_window, menu_boost_menu, "menu_boost_menu");
GLADE_HOOKUP_OBJECT (main_window, menu_boost_on, "menu_boost_on"); GLADE_HOOKUP_OBJECT (main_window, menu_boost_on, "menu_boost_on");
GLADE_HOOKUP_OBJECT (main_window, menu_boost_off, "menu_boost_off"); GLADE_HOOKUP_OBJECT (main_window, menu_boost_off, "menu_boost_off");
@ -1820,56 +1828,57 @@ create_main_window (void)
GLADE_HOOKUP_OBJECT (main_window, menu_training_camp, "menu_training_camp"); GLADE_HOOKUP_OBJECT (main_window, menu_training_camp, "menu_training_camp");
GLADE_HOOKUP_OBJECT (main_window, trennlinie18, "trennlinie18"); GLADE_HOOKUP_OBJECT (main_window, trennlinie18, "trennlinie18");
GLADE_HOOKUP_OBJECT (main_window, menu_reset_players, "menu_reset_players"); GLADE_HOOKUP_OBJECT (main_window, menu_reset_players, "menu_reset_players");
GLADE_HOOKUP_OBJECT (main_window, image2656, "image2656"); GLADE_HOOKUP_OBJECT (main_window, image2697, "image2697");
GLADE_HOOKUP_OBJECT (main_window, menu_custom_structure, "menu_custom_structure"); GLADE_HOOKUP_OBJECT (main_window, menu_custom_structure, "menu_custom_structure");
GLADE_HOOKUP_OBJECT (main_window, image2657, "image2657"); GLADE_HOOKUP_OBJECT (main_window, image2698, "image2698");
GLADE_HOOKUP_OBJECT (main_window, menu_rearrange_team, "menu_rearrange_team"); GLADE_HOOKUP_OBJECT (main_window, menu_rearrange_team, "menu_rearrange_team");
GLADE_HOOKUP_OBJECT (main_window, image2658, "image2658"); GLADE_HOOKUP_OBJECT (main_window, image2699, "image2699");
GLADE_HOOKUP_OBJECT (main_window, trennlinie8, "trennlinie8"); GLADE_HOOKUP_OBJECT (main_window, trennlinie8, "trennlinie8");
GLADE_HOOKUP_OBJECT (main_window, menu_browse_teams, "menu_browse_teams"); GLADE_HOOKUP_OBJECT (main_window, menu_browse_teams, "menu_browse_teams");
GLADE_HOOKUP_OBJECT (main_window, image2659, "image2659"); GLADE_HOOKUP_OBJECT (main_window, image2700, "image2700");
GLADE_HOOKUP_OBJECT (main_window, trennlinie16, "trennlinie16"); GLADE_HOOKUP_OBJECT (main_window, trennlinie16, "trennlinie16");
GLADE_HOOKUP_OBJECT (main_window, menu_show_job_exchange, "menu_show_job_exchange"); GLADE_HOOKUP_OBJECT (main_window, menu_show_job_exchange, "menu_show_job_exchange");
GLADE_HOOKUP_OBJECT (main_window, menu_player, "menu_player"); GLADE_HOOKUP_OBJECT (main_window, menu_player, "menu_player");
GLADE_HOOKUP_OBJECT (main_window, menu_player_menu, "menu_player_menu"); GLADE_HOOKUP_OBJECT (main_window, menu_player_menu, "menu_player_menu");
GLADE_HOOKUP_OBJECT (main_window, menu_show_info, "menu_show_info"); GLADE_HOOKUP_OBJECT (main_window, menu_show_info, "menu_show_info");
GLADE_HOOKUP_OBJECT (main_window, image2660, "image2660"); GLADE_HOOKUP_OBJECT (main_window, image2701, "image2701");
GLADE_HOOKUP_OBJECT (main_window, menu_put_on_transfer_list, "menu_put_on_transfer_list"); GLADE_HOOKUP_OBJECT (main_window, menu_put_on_transfer_list, "menu_put_on_transfer_list");
GLADE_HOOKUP_OBJECT (main_window, image2661, "image2661"); GLADE_HOOKUP_OBJECT (main_window, image2702, "image2702");
GLADE_HOOKUP_OBJECT (main_window, menu_remove_from_transfer_list, "menu_remove_from_transfer_list"); GLADE_HOOKUP_OBJECT (main_window, menu_remove_from_transfer_list, "menu_remove_from_transfer_list");
GLADE_HOOKUP_OBJECT (main_window, image2662, "image2662"); GLADE_HOOKUP_OBJECT (main_window, image2703, "image2703");
GLADE_HOOKUP_OBJECT (main_window, menu_offer_new_contract, "menu_offer_new_contract"); GLADE_HOOKUP_OBJECT (main_window, menu_offer_new_contract, "menu_offer_new_contract");
GLADE_HOOKUP_OBJECT (main_window, image2663, "image2663"); GLADE_HOOKUP_OBJECT (main_window, image2704, "image2704");
GLADE_HOOKUP_OBJECT (main_window, menu_fire, "menu_fire"); GLADE_HOOKUP_OBJECT (main_window, menu_fire, "menu_fire");
GLADE_HOOKUP_OBJECT (main_window, image2664, "image2664"); GLADE_HOOKUP_OBJECT (main_window, image2705, "image2705");
GLADE_HOOKUP_OBJECT (main_window, menu_shoots_penalties, "menu_shoots_penalties"); GLADE_HOOKUP_OBJECT (main_window, menu_shoots_penalties, "menu_shoots_penalties");
GLADE_HOOKUP_OBJECT (main_window, image2665, "image2665"); GLADE_HOOKUP_OBJECT (main_window, image2706, "image2706");
GLADE_HOOKUP_OBJECT (main_window, menu_move_to_youth_academy, "menu_move_to_youth_academy"); GLADE_HOOKUP_OBJECT (main_window, menu_move_to_youth_academy, "menu_move_to_youth_academy");
GLADE_HOOKUP_OBJECT (main_window, image2666, "image2666"); GLADE_HOOKUP_OBJECT (main_window, image2707, "image2707");
GLADE_HOOKUP_OBJECT (main_window, menu_edit_name, "menu_edit_name");
GLADE_HOOKUP_OBJECT (main_window, trennlinie10, "trennlinie10"); GLADE_HOOKUP_OBJECT (main_window, trennlinie10, "trennlinie10");
GLADE_HOOKUP_OBJECT (main_window, menu_browse_players, "menu_browse_players"); GLADE_HOOKUP_OBJECT (main_window, menu_browse_players, "menu_browse_players");
GLADE_HOOKUP_OBJECT (main_window, image2667, "image2667"); GLADE_HOOKUP_OBJECT (main_window, image2708, "image2708");
GLADE_HOOKUP_OBJECT (main_window, menu_user, "menu_user"); GLADE_HOOKUP_OBJECT (main_window, menu_user, "menu_user");
GLADE_HOOKUP_OBJECT (main_window, menu_user_menu, "menu_user_menu"); GLADE_HOOKUP_OBJECT (main_window, menu_user_menu, "menu_user_menu");
GLADE_HOOKUP_OBJECT (main_window, menu_user_show_last_match, "menu_user_show_last_match"); GLADE_HOOKUP_OBJECT (main_window, menu_user_show_last_match, "menu_user_show_last_match");
GLADE_HOOKUP_OBJECT (main_window, image2668, "image2668"); GLADE_HOOKUP_OBJECT (main_window, image2709, "image2709");
GLADE_HOOKUP_OBJECT (main_window, menu_user_show_last_stats, "menu_user_show_last_stats"); GLADE_HOOKUP_OBJECT (main_window, menu_user_show_last_stats, "menu_user_show_last_stats");
GLADE_HOOKUP_OBJECT (main_window, image2669, "image2669"); GLADE_HOOKUP_OBJECT (main_window, image2710, "image2710");
GLADE_HOOKUP_OBJECT (main_window, menu_user_show_coming_matches, "menu_user_show_coming_matches"); GLADE_HOOKUP_OBJECT (main_window, menu_user_show_coming_matches, "menu_user_show_coming_matches");
GLADE_HOOKUP_OBJECT (main_window, image2670, "image2670"); GLADE_HOOKUP_OBJECT (main_window, image2711, "image2711");
GLADE_HOOKUP_OBJECT (main_window, trennlinie9, "trennlinie9"); GLADE_HOOKUP_OBJECT (main_window, trennlinie9, "trennlinie9");
GLADE_HOOKUP_OBJECT (main_window, menu_next_user, "menu_next_user"); GLADE_HOOKUP_OBJECT (main_window, menu_next_user, "menu_next_user");
GLADE_HOOKUP_OBJECT (main_window, image2671, "image2671"); GLADE_HOOKUP_OBJECT (main_window, image2712, "image2712");
GLADE_HOOKUP_OBJECT (main_window, menu_previous_user, "menu_previous_user"); GLADE_HOOKUP_OBJECT (main_window, menu_previous_user, "menu_previous_user");
GLADE_HOOKUP_OBJECT (main_window, image2672, "image2672"); GLADE_HOOKUP_OBJECT (main_window, image2713, "image2713");
GLADE_HOOKUP_OBJECT (main_window, menu_manage_users, "menu_manage_users"); GLADE_HOOKUP_OBJECT (main_window, menu_manage_users, "menu_manage_users");
GLADE_HOOKUP_OBJECT (main_window, image2673, "image2673"); GLADE_HOOKUP_OBJECT (main_window, image2714, "image2714");
GLADE_HOOKUP_OBJECT (main_window, menu_finances_stadium, "menu_finances_stadium"); GLADE_HOOKUP_OBJECT (main_window, menu_finances_stadium, "menu_finances_stadium");
GLADE_HOOKUP_OBJECT (main_window, menu_finances_stadium_menu, "menu_finances_stadium_menu"); GLADE_HOOKUP_OBJECT (main_window, menu_finances_stadium_menu, "menu_finances_stadium_menu");
GLADE_HOOKUP_OBJECT (main_window, menu_show_finances, "menu_show_finances"); GLADE_HOOKUP_OBJECT (main_window, menu_show_finances, "menu_show_finances");
GLADE_HOOKUP_OBJECT (main_window, image2674, "image2674"); GLADE_HOOKUP_OBJECT (main_window, image2715, "image2715");
GLADE_HOOKUP_OBJECT (main_window, menu_show_stadium, "menu_show_stadium"); GLADE_HOOKUP_OBJECT (main_window, menu_show_stadium, "menu_show_stadium");
GLADE_HOOKUP_OBJECT (main_window, image2675, "image2675"); GLADE_HOOKUP_OBJECT (main_window, image2716, "image2716");
GLADE_HOOKUP_OBJECT (main_window, automatic_loan_repayment, "automatic_loan_repayment"); GLADE_HOOKUP_OBJECT (main_window, automatic_loan_repayment, "automatic_loan_repayment");
GLADE_HOOKUP_OBJECT (main_window, trennlinie15, "trennlinie15"); GLADE_HOOKUP_OBJECT (main_window, trennlinie15, "trennlinie15");
GLADE_HOOKUP_OBJECT (main_window, menu_betting, "menu_betting"); GLADE_HOOKUP_OBJECT (main_window, menu_betting, "menu_betting");
@ -1877,26 +1886,26 @@ create_main_window (void)
GLADE_HOOKUP_OBJECT (main_window, stats1_menu, "stats1_menu"); GLADE_HOOKUP_OBJECT (main_window, stats1_menu, "stats1_menu");
GLADE_HOOKUP_OBJECT (main_window, menu_news, "menu_news"); GLADE_HOOKUP_OBJECT (main_window, menu_news, "menu_news");
GLADE_HOOKUP_OBJECT (main_window, menu_league_stats, "menu_league_stats"); GLADE_HOOKUP_OBJECT (main_window, menu_league_stats, "menu_league_stats");
GLADE_HOOKUP_OBJECT (main_window, image2676, "image2676"); GLADE_HOOKUP_OBJECT (main_window, image2717, "image2717");
GLADE_HOOKUP_OBJECT (main_window, menu_season_history, "menu_season_history"); GLADE_HOOKUP_OBJECT (main_window, menu_season_history, "menu_season_history");
GLADE_HOOKUP_OBJECT (main_window, image2677, "image2677"); GLADE_HOOKUP_OBJECT (main_window, image2718, "image2718");
GLADE_HOOKUP_OBJECT (main_window, menu_user_show_history, "menu_user_show_history"); GLADE_HOOKUP_OBJECT (main_window, menu_user_show_history, "menu_user_show_history");
GLADE_HOOKUP_OBJECT (main_window, image2678, "image2678"); GLADE_HOOKUP_OBJECT (main_window, image2719, "image2719");
GLADE_HOOKUP_OBJECT (main_window, memorable_matches, "memorable_matches"); GLADE_HOOKUP_OBJECT (main_window, memorable_matches, "memorable_matches");
GLADE_HOOKUP_OBJECT (main_window, image2679, "image2679"); GLADE_HOOKUP_OBJECT (main_window, image2720, "image2720");
GLADE_HOOKUP_OBJECT (main_window, memorable_matches_menu, "memorable_matches_menu"); GLADE_HOOKUP_OBJECT (main_window, memorable_matches_menu, "memorable_matches_menu");
GLADE_HOOKUP_OBJECT (main_window, mm_add_last_match, "mm_add_last_match"); GLADE_HOOKUP_OBJECT (main_window, mm_add_last_match, "mm_add_last_match");
GLADE_HOOKUP_OBJECT (main_window, image2680, "image2680"); GLADE_HOOKUP_OBJECT (main_window, image2721, "image2721");
GLADE_HOOKUP_OBJECT (main_window, mm_manage_matches, "mm_manage_matches"); GLADE_HOOKUP_OBJECT (main_window, mm_manage_matches, "mm_manage_matches");
GLADE_HOOKUP_OBJECT (main_window, image2681, "image2681"); GLADE_HOOKUP_OBJECT (main_window, image2722, "image2722");
GLADE_HOOKUP_OBJECT (main_window, menu_help1, "menu_help1"); GLADE_HOOKUP_OBJECT (main_window, menu_help1, "menu_help1");
GLADE_HOOKUP_OBJECT (main_window, menu_help1_menu, "menu_help1_menu"); GLADE_HOOKUP_OBJECT (main_window, menu_help1_menu, "menu_help1_menu");
GLADE_HOOKUP_OBJECT (main_window, menu_about, "menu_about"); GLADE_HOOKUP_OBJECT (main_window, menu_about, "menu_about");
GLADE_HOOKUP_OBJECT (main_window, image2682, "image2682"); GLADE_HOOKUP_OBJECT (main_window, image2723, "image2723");
GLADE_HOOKUP_OBJECT (main_window, menu_contributors, "menu_contributors"); GLADE_HOOKUP_OBJECT (main_window, menu_contributors, "menu_contributors");
GLADE_HOOKUP_OBJECT (main_window, image2683, "image2683"); GLADE_HOOKUP_OBJECT (main_window, image2724, "image2724");
GLADE_HOOKUP_OBJECT (main_window, menu_help, "menu_help"); GLADE_HOOKUP_OBJECT (main_window, menu_help, "menu_help");
GLADE_HOOKUP_OBJECT (main_window, image2684, "image2684"); GLADE_HOOKUP_OBJECT (main_window, image2725, "image2725");
GLADE_HOOKUP_OBJECT (main_window, hbox1, "hbox1"); GLADE_HOOKUP_OBJECT (main_window, hbox1, "hbox1");
GLADE_HOOKUP_OBJECT (main_window, button_load, "button_load"); GLADE_HOOKUP_OBJECT (main_window, button_load, "button_load");
GLADE_HOOKUP_OBJECT (main_window, image11, "image11"); GLADE_HOOKUP_OBJECT (main_window, image11, "image11");
@ -1988,6 +1997,7 @@ create_menu_player (void)
GtkWidget *player_menu_fire; GtkWidget *player_menu_fire;
GtkWidget *player_menu_shoots_penalties; GtkWidget *player_menu_shoots_penalties;
GtkWidget *player_menu_move_to_youth_academy; GtkWidget *player_menu_move_to_youth_academy;
GtkWidget *player_menu_edit_name;
menu_player = gtk_menu_new (); menu_player = gtk_menu_new ();
@ -2019,6 +2029,10 @@ create_menu_player (void)
gtk_widget_show (player_menu_move_to_youth_academy); gtk_widget_show (player_menu_move_to_youth_academy);
gtk_container_add (GTK_CONTAINER (menu_player), player_menu_move_to_youth_academy); gtk_container_add (GTK_CONTAINER (menu_player), player_menu_move_to_youth_academy);
player_menu_edit_name = gtk_menu_item_new_with_mnemonic (_("Edit name"));
gtk_widget_show (player_menu_edit_name);
gtk_container_add (GTK_CONTAINER (menu_player), player_menu_edit_name);
g_signal_connect ((gpointer) player_menu_show_info, "activate", g_signal_connect ((gpointer) player_menu_show_info, "activate",
G_CALLBACK (on_player_menu_show_info_activate), G_CALLBACK (on_player_menu_show_info_activate),
NULL); NULL);
@ -2040,6 +2054,9 @@ create_menu_player (void)
g_signal_connect ((gpointer) player_menu_move_to_youth_academy, "activate", g_signal_connect ((gpointer) player_menu_move_to_youth_academy, "activate",
G_CALLBACK (on_player_menu_move_to_youth_academy_activate), G_CALLBACK (on_player_menu_move_to_youth_academy_activate),
NULL); NULL);
g_signal_connect ((gpointer) player_menu_edit_name, "activate",
G_CALLBACK (on_player_menu_edit_name_activate),
NULL);
/* Store pointers to all widgets, for use by lookup_widget(). */ /* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (menu_player, menu_player, "menu_player"); GLADE_HOOKUP_OBJECT_NO_REF (menu_player, menu_player, "menu_player");
@ -2050,6 +2067,7 @@ create_menu_player (void)
GLADE_HOOKUP_OBJECT (menu_player, player_menu_fire, "player_menu_fire"); GLADE_HOOKUP_OBJECT (menu_player, player_menu_fire, "player_menu_fire");
GLADE_HOOKUP_OBJECT (menu_player, player_menu_shoots_penalties, "player_menu_shoots_penalties"); GLADE_HOOKUP_OBJECT (menu_player, player_menu_shoots_penalties, "player_menu_shoots_penalties");
GLADE_HOOKUP_OBJECT (menu_player, player_menu_move_to_youth_academy, "player_menu_move_to_youth_academy"); GLADE_HOOKUP_OBJECT (menu_player, player_menu_move_to_youth_academy, "player_menu_move_to_youth_academy");
GLADE_HOOKUP_OBJECT (menu_player, player_menu_edit_name, "player_menu_edit_name");
return menu_player; return menu_player;
} }