2004-12-23 13:58:39 +01:00
/*
* DO NOT EDIT THIS FILE - it is generated by Glade .
*/
# ifdef HAVE_CONFIG_H
# include <config.h>
# endif
# include <sys/types.h>
# include <sys/stat.h>
# include <unistd.h>
# include <string.h>
# include <stdio.h>
# include <gdk/gdkkeysyms.h>
# include <gtk/gtk.h>
# include "callbacks.h"
# include "interface.h"
# include "support.h"
# define GLADE_HOOKUP_OBJECT(component,widget,name) \
g_object_set_data_full ( G_OBJECT ( component ) , name , \
gtk_widget_ref ( widget ) , ( GDestroyNotify ) gtk_widget_unref )
# define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
g_object_set_data ( G_OBJECT ( component ) , name , widget )
GtkWidget *
create_main_window ( void )
{
GtkWidget * main_window ;
GdkPixbuf * main_window_icon_pixbuf ;
GtkWidget * vbox1 ;
GtkWidget * menubar1 ;
2005-03-03 13:46:48 +01:00
GtkWidget * menu_file ;
GtkWidget * menu_file_menu ;
2004-12-23 13:58:39 +01:00
GtkWidget * menu_new ;
GtkWidget * menu_open ;
2005-04-09 21:18:28 +02:00
GtkWidget * menu_load_last_save ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1947 ;
2004-12-23 13:58:39 +01:00
GtkWidget * menu_save ;
GtkWidget * menu_save_as ;
GtkWidget * trennlinie1 ;
GtkWidget * menu_quit ;
2005-03-03 13:46:48 +01:00
GtkWidget * menu_options ;
GtkWidget * menu_options_menu ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_preferences ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1948 ;
2005-01-09 21:21:22 +01:00
GtkWidget * trennlinie7 ;
GtkWidget * menu_job_offers ;
GtkWidget * menu_live_game ;
GtkWidget * menu_overwrite ;
2005-09-27 14:18:46 +02:00
GtkWidget * trennlinie14 ;
GtkWidget * menu_save_window_geometry ;
GtkWidget * image1949 ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_figures ;
GtkWidget * menu_figures_menu ;
2005-04-15 15:55:59 +02:00
GtkWidget * menu_fixtures_week ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1950 ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_fixtures ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1951 ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_tables ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1952 ;
2005-03-15 16:10:57 +01:00
GtkWidget * menu_my_league_results ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1953 ;
2005-04-29 21:48:02 +02:00
GtkWidget * trennlinie13 ;
GtkWidget * menu_league_stats ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1954 ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_season_history ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1955 ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_team ;
GtkWidget * menu_team_menu ;
GtkWidget * menu_playing_style ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1956 ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_playing_style_menu ;
GSList * menu_all_out_defend_group = NULL ;
GtkWidget * menu_all_out_defend ;
GtkWidget * menu_defend ;
GtkWidget * menu_balanced ;
GtkWidget * menu_attack ;
GtkWidget * menu_all_out_attack ;
GtkWidget * menu_scout ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1957 ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_scout_menu ;
GSList * menu_scout_best_group = NULL ;
GtkWidget * menu_scout_best ;
GtkWidget * menu_scout_good ;
GtkWidget * menu_scout_average ;
GtkWidget * menu_scout_bad ;
GtkWidget * menu_physio ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1958 ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_physio_menu ;
GSList * menu_physio_best_group = NULL ;
GtkWidget * menu_physio_best ;
GtkWidget * menu_physio_good ;
GtkWidget * menu_physio_average ;
GtkWidget * menu_physio_bad ;
2005-07-08 11:26:00 +02:00
GtkWidget * menu_youth_academy ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1959 ;
2005-07-08 11:26:00 +02:00
GtkWidget * menu_youth_academy_menu ;
GtkWidget * menu_show_youth_academy ;
GtkWidget * youth_coach1 ;
GtkWidget * youth_coach1_menu ;
GSList * menu_yc_best_group = NULL ;
GtkWidget * menu_yc_best ;
GtkWidget * menu_yc_good ;
GtkWidget * menu_yc_average ;
GtkWidget * menu_yc_bad ;
2005-07-14 18:05:10 +02:00
GtkWidget * recruiting_preference1 ;
GtkWidget * recruiting_preference1_menu ;
GSList * menu_recruit0_group = NULL ;
GtkWidget * menu_recruit0 ;
GtkWidget * menu_recruit1 ;
GtkWidget * menu_recruit2 ;
GtkWidget * menu_recruit3 ;
GtkWidget * menu_recruit4 ;
2005-07-08 11:26:00 +02:00
GtkWidget * menu_set_investment ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_boost ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1960 ;
2005-03-10 21:59:39 +01:00
GtkWidget * menu_boost_menu ;
GSList * menu_boost_on_group = NULL ;
GtkWidget * menu_boost_on ;
GtkWidget * menu_boost_off ;
GtkWidget * menu_boost_anti ;
2005-04-09 21:18:28 +02:00
GtkWidget * trennlinie11 ;
2005-04-26 17:00:26 +02:00
GtkWidget * menu_reset_players ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1961 ;
2005-03-03 13:46:48 +01:00
GtkWidget * menu_custom_structure ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1962 ;
2005-04-09 21:18:28 +02:00
GtkWidget * menu_rearrange_team ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1963 ;
2005-03-03 13:46:48 +01:00
GtkWidget * trennlinie8 ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_browse_teams ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1964 ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_player ;
GtkWidget * menu_player_menu ;
GtkWidget * menu_show_info ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1965 ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_put_on_transfer_list ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1966 ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_remove_from_transfer_list ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1967 ;
2005-03-25 11:54:54 +01:00
GtkWidget * menu_offer_new_contract ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1968 ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_fire ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1969 ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_shoots_penalties ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1970 ;
2005-07-08 11:26:00 +02:00
GtkWidget * menu_move_to_youth_academy ;
2005-03-27 19:59:57 +02:00
GtkWidget * trennlinie10 ;
GtkWidget * menu_browse_players ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1971 ;
2005-03-03 13:46:48 +01:00
GtkWidget * menu_user ;
GtkWidget * menu_user_menu ;
2005-03-11 18:18:51 +01:00
GtkWidget * menu_user_show_last_match ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1972 ;
2005-03-11 18:18:51 +01:00
GtkWidget * menu_user_show_last_stats ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1973 ;
2005-06-14 10:02:46 +02:00
GtkWidget * menu_user_show_coming_matches ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1974 ;
2005-08-20 21:39:36 +02:00
GtkWidget * memorable_matches ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1975 ;
2005-08-20 21:39:36 +02:00
GtkWidget * memorable_matches_menu ;
GtkWidget * mm_add_last_match ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1976 ;
2005-08-20 21:39:36 +02:00
GtkWidget * mm_manage_matches ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1977 ;
2005-04-16 09:46:04 +02:00
GtkWidget * trennlinie12 ;
GtkWidget * menu_user_show_history ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1978 ;
2005-03-11 18:18:51 +01:00
GtkWidget * trennlinie9 ;
2005-03-03 13:46:48 +01:00
GtkWidget * menu_next_user ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1979 ;
2005-03-03 13:46:48 +01:00
GtkWidget * menu_previous_user ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1980 ;
2005-03-03 13:46:48 +01:00
GtkWidget * menu_manage_users ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1981 ;
2005-01-09 21:21:22 +01:00
GtkWidget * menu_finances_stadium ;
GtkWidget * menu_finances_stadium_menu ;
2005-03-16 21:48:25 +01:00
GtkWidget * menu_show_finances ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1982 ;
2005-03-16 21:48:25 +01:00
GtkWidget * menu_show_stadium ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1983 ;
2005-05-22 15:33:24 +02:00
GtkWidget * menu_help1 ;
GtkWidget * menu_help1_menu ;
2004-12-23 13:58:39 +01:00
GtkWidget * menu_about ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1984 ;
2005-05-22 15:33:24 +02:00
GtkWidget * menu_contributors ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1985 ;
2005-05-22 15:33:24 +02:00
GtkWidget * menu_help ;
2005-09-27 14:18:46 +02:00
GtkWidget * image1986 ;
2004-12-23 13:58:39 +01:00
GtkWidget * hbox1 ;
GtkWidget * button_load ;
GtkWidget * image11 ;
GtkWidget * button_save ;
GtkWidget * image12 ;
GtkWidget * button_quit ;
GtkWidget * image13 ;
GtkWidget * vseparator1 ;
GtkWidget * vseparator11 ;
GtkWidget * button_back_to_main ;
GtkWidget * image20 ;
GtkWidget * button_transfers ;
GtkWidget * image32 ;
GtkWidget * vseparator16 ;
GtkWidget * button_new_week ;
GtkWidget * image23 ;
2005-03-03 13:46:48 +01:00
GtkWidget * entry_message ;
2004-12-23 13:58:39 +01:00
GtkWidget * hseparator1 ;
GtkWidget * eventbox_main_info ;
GtkWidget * hbox18 ;
2005-03-03 13:46:48 +01:00
GtkWidget * label_user ;
2004-12-23 13:58:39 +01:00
GtkWidget * label23 ;
GtkWidget * label_season ;
GtkWidget * label25 ;
GtkWidget * label_week ;
2005-03-03 13:46:48 +01:00
GtkWidget * label13114 ;
GtkWidget * label_round ;
2004-12-23 13:58:39 +01:00
GtkWidget * vseparator14 ;
GtkWidget * hbox48 ;
2005-03-11 18:18:51 +01:00
GtkWidget * eventbox_style ;
GtkWidget * image_style ;
GtkWidget * eventbox_boost ;
GtkWidget * image_boost ;
2004-12-23 13:58:39 +01:00
GtkWidget * eventbox_team_name ;
GtkWidget * label_team ;
GtkWidget * label_league ;
GtkWidget * eventbox_rank ;
GtkWidget * hbox49 ;
GtkWidget * label29 ;
GtkWidget * label_rank ;
GtkWidget * vseparator15 ;
GtkWidget * label34 ;
GtkWidget * label_money ;
GtkWidget * vseparator17 ;
GtkWidget * eventbox1 ;
GtkWidget * hbox50 ;
GtkWidget * label69 ;
2005-03-03 13:46:48 +01:00
GtkWidget * label_av_skills ;
2004-12-23 13:58:39 +01:00
GtkWidget * hbox7 ;
GtkWidget * hpaned2 ;
GtkWidget * vbox3 ;
GtkWidget * scrolledwindow2 ;
GtkWidget * viewport1 ;
GtkWidget * notebook_player ;
2005-01-09 21:21:22 +01:00
GtkWidget * player_list1 ;
2004-12-23 13:58:39 +01:00
GtkWidget * label71 ;
GtkWidget * player_list2 ;
GtkWidget * label72 ;
2005-04-26 17:00:26 +02:00
GtkWidget * button_reset_players ;
GtkWidget * image298 ;
2004-12-23 13:58:39 +01:00
GtkWidget * vbox8 ;
GtkWidget * hbox_14 ;
2005-03-14 18:47:27 +01:00
GtkWidget * button_cl_back ;
GtkWidget * image215 ;
GtkWidget * button_cl_forward ;
GtkWidget * image216 ;
2004-12-23 13:58:39 +01:00
GtkWidget * button_browse_back ;
GtkWidget * image10 ;
2005-03-14 18:47:27 +01:00
GtkWidget * button_browse_forward ;
GtkWidget * image9 ;
2005-01-09 21:21:22 +01:00
GtkWidget * scrolledwindow3 ;
GtkWidget * treeview_right ;
2004-12-23 13:58:39 +01:00
GtkAccelGroup * accel_group ;
GtkTooltips * tooltips ;
tooltips = gtk_tooltips_new ( ) ;
accel_group = gtk_accel_group_new ( ) ;
main_window = gtk_window_new ( GTK_WINDOW_TOPLEVEL ) ;
gtk_container_set_border_width ( GTK_CONTAINER ( main_window ) , 6 ) ;
gtk_window_set_position ( GTK_WINDOW ( main_window ) , GTK_WIN_POS_CENTER ) ;
gtk_window_set_default_size ( GTK_WINDOW ( main_window ) , 300 , 600 ) ;
main_window_icon_pixbuf = create_pixbuf ( " bygfoot_icon.png " ) ;
if ( main_window_icon_pixbuf )
{
gtk_window_set_icon ( GTK_WINDOW ( main_window ) , main_window_icon_pixbuf ) ;
gdk_pixbuf_unref ( main_window_icon_pixbuf ) ;
}
vbox1 = gtk_vbox_new ( FALSE , 0 ) ;
gtk_widget_show ( vbox1 ) ;
gtk_container_add ( GTK_CONTAINER ( main_window ) , vbox1 ) ;
menubar1 = gtk_menu_bar_new ( ) ;
gtk_widget_show ( menubar1 ) ;
gtk_box_pack_start ( GTK_BOX ( vbox1 ) , menubar1 , FALSE , FALSE , 0 ) ;
2005-03-03 13:46:48 +01:00
menu_file = gtk_menu_item_new_with_mnemonic ( _ ( " _File " ) ) ;
gtk_widget_show ( menu_file ) ;
gtk_container_add ( GTK_CONTAINER ( menubar1 ) , menu_file ) ;
2004-12-23 13:58:39 +01:00
2005-03-03 13:46:48 +01:00
menu_file_menu = gtk_menu_new ( ) ;
gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( menu_file ) , menu_file_menu ) ;
2004-12-23 13:58:39 +01:00
menu_new = gtk_image_menu_item_new_from_stock ( " gtk-new " , accel_group ) ;
gtk_widget_show ( menu_new ) ;
2005-03-03 13:46:48 +01:00
gtk_container_add ( GTK_CONTAINER ( menu_file_menu ) , menu_new ) ;
2004-12-23 13:58:39 +01:00
menu_open = gtk_image_menu_item_new_from_stock ( " gtk-open " , accel_group ) ;
gtk_widget_show ( menu_open ) ;
2005-03-03 13:46:48 +01:00
gtk_container_add ( GTK_CONTAINER ( menu_file_menu ) , menu_open ) ;
2004-12-23 13:58:39 +01:00
2005-05-24 20:31:07 +02:00
menu_load_last_save = gtk_image_menu_item_new_with_mnemonic ( _ ( " L_oad last save " ) ) ;
2005-04-09 21:18:28 +02:00
gtk_widget_show ( menu_load_last_save ) ;
gtk_container_add ( GTK_CONTAINER ( menu_file_menu ) , menu_load_last_save ) ;
2005-04-13 15:01:59 +02:00
gtk_widget_add_accelerator ( menu_load_last_save , " activate " , accel_group ,
GDK_l , GDK_CONTROL_MASK | GDK_SHIFT_MASK ,
GTK_ACCEL_VISIBLE ) ;
2005-04-09 21:18:28 +02:00
2005-09-27 14:18:46 +02:00
image1947 = gtk_image_new_from_stock ( " gtk-revert-to-saved " , GTK_ICON_SIZE_MENU ) ;
gtk_widget_show ( image1947 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_load_last_save ) , image1947 ) ;
2005-04-09 21:18:28 +02:00
2004-12-23 13:58:39 +01:00
menu_save = gtk_image_menu_item_new_from_stock ( " gtk-save " , accel_group ) ;
gtk_widget_show ( menu_save ) ;
2005-03-03 13:46:48 +01:00
gtk_container_add ( GTK_CONTAINER ( menu_file_menu ) , menu_save ) ;
2004-12-23 13:58:39 +01:00
menu_save_as = gtk_image_menu_item_new_from_stock ( " gtk-save-as " , accel_group ) ;
gtk_widget_show ( menu_save_as ) ;
2005-03-03 13:46:48 +01:00
gtk_container_add ( GTK_CONTAINER ( menu_file_menu ) , menu_save_as ) ;
2004-12-23 13:58:39 +01:00
2005-04-26 17:00:26 +02:00
trennlinie1 = gtk_separator_menu_item_new ( ) ;
2004-12-23 13:58:39 +01:00
gtk_widget_show ( trennlinie1 ) ;
2005-03-03 13:46:48 +01:00
gtk_container_add ( GTK_CONTAINER ( menu_file_menu ) , trennlinie1 ) ;
2004-12-23 13:58:39 +01:00
gtk_widget_set_sensitive ( trennlinie1 , FALSE ) ;
menu_quit = gtk_image_menu_item_new_from_stock ( " gtk-quit " , accel_group ) ;
gtk_widget_show ( menu_quit ) ;
2005-03-03 13:46:48 +01:00
gtk_container_add ( GTK_CONTAINER ( menu_file_menu ) , menu_quit ) ;
2005-01-09 21:21:22 +01:00
2005-05-02 17:14:41 +02:00
menu_options = gtk_menu_item_new_with_mnemonic ( _ ( " _Options " ) ) ;
2005-03-03 13:46:48 +01:00
gtk_widget_show ( menu_options ) ;
gtk_container_add ( GTK_CONTAINER ( menubar1 ) , menu_options ) ;
2005-01-09 21:21:22 +01:00
2005-03-03 13:46:48 +01:00
menu_options_menu = gtk_menu_new ( ) ;
gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( menu_options ) , menu_options_menu ) ;
2005-01-09 21:21:22 +01:00
menu_preferences = gtk_image_menu_item_new_with_mnemonic ( _ ( " Preferences " ) ) ;
gtk_widget_show ( menu_preferences ) ;
2005-03-03 13:46:48 +01:00
gtk_container_add ( GTK_CONTAINER ( menu_options_menu ) , menu_preferences ) ;
2005-03-23 20:03:26 +01:00
gtk_widget_add_accelerator ( menu_preferences , " activate " , accel_group ,
GDK_p , GDK_CONTROL_MASK ,
GTK_ACCEL_VISIBLE ) ;
2005-01-09 21:21:22 +01:00
2005-09-27 14:18:46 +02:00
image1948 = gtk_image_new_from_stock ( " gtk-preferences " , GTK_ICON_SIZE_MENU ) ;
gtk_widget_show ( image1948 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_preferences ) , image1948 ) ;
2005-01-09 21:21:22 +01:00
2005-04-26 17:00:26 +02:00
trennlinie7 = gtk_separator_menu_item_new ( ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( trennlinie7 ) ;
2005-03-03 13:46:48 +01:00
gtk_container_add ( GTK_CONTAINER ( menu_options_menu ) , trennlinie7 ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_set_sensitive ( trennlinie7 , FALSE ) ;
menu_job_offers = gtk_check_menu_item_new_with_mnemonic ( _ ( " Job offers " ) ) ;
gtk_widget_show ( menu_job_offers ) ;
2005-03-03 13:46:48 +01:00
gtk_container_add ( GTK_CONTAINER ( menu_options_menu ) , menu_job_offers ) ;
2005-04-06 12:19:43 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_job_offers ) , TRUE ) ;
2005-01-09 21:21:22 +01:00
menu_live_game = gtk_check_menu_item_new_with_mnemonic ( _ ( " Live game " ) ) ;
gtk_widget_show ( menu_live_game ) ;
2005-03-03 13:46:48 +01:00
gtk_container_add ( GTK_CONTAINER ( menu_options_menu ) , menu_live_game ) ;
2005-01-09 21:21:22 +01:00
menu_overwrite = gtk_check_menu_item_new_with_mnemonic ( _ ( " Overwrite " ) ) ;
gtk_widget_show ( menu_overwrite ) ;
2005-03-03 13:46:48 +01:00
gtk_container_add ( GTK_CONTAINER ( menu_options_menu ) , menu_overwrite ) ;
2005-04-06 12:19:43 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_overwrite ) , TRUE ) ;
2005-01-09 21:21:22 +01:00
2005-09-27 14:18:46 +02:00
trennlinie14 = gtk_separator_menu_item_new ( ) ;
gtk_widget_show ( trennlinie14 ) ;
gtk_container_add ( GTK_CONTAINER ( menu_options_menu ) , trennlinie14 ) ;
gtk_widget_set_sensitive ( trennlinie14 , FALSE ) ;
menu_save_window_geometry = gtk_image_menu_item_new_with_mnemonic ( _ ( " Save window geometry " ) ) ;
gtk_widget_show ( 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 ) ;
image1949 = gtk_image_new_from_stock ( " gtk-save " , GTK_ICON_SIZE_MENU ) ;
gtk_widget_show ( image1949 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_save_window_geometry ) , image1949 ) ;
2005-05-02 17:14:41 +02:00
menu_figures = gtk_menu_item_new_with_mnemonic ( _ ( " F_igures " ) ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( menu_figures ) ;
gtk_container_add ( GTK_CONTAINER ( menubar1 ) , menu_figures ) ;
menu_figures_menu = gtk_menu_new ( ) ;
gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( menu_figures ) , menu_figures_menu ) ;
2005-06-04 15:21:45 +02:00
menu_fixtures_week = gtk_image_menu_item_new_with_mnemonic ( _ ( " Fixtures (week) " ) ) ;
2005-04-15 15:55:59 +02:00
gtk_widget_show ( menu_fixtures_week ) ;
gtk_container_add ( GTK_CONTAINER ( menu_figures_menu ) , menu_fixtures_week ) ;
gtk_widget_add_accelerator ( menu_fixtures_week , " activate " , accel_group ,
GDK_F3 , 0 ,
GTK_ACCEL_VISIBLE ) ;
2005-09-27 14:18:46 +02:00
image1950 = create_pixmap ( main_window , " menu_fixtures.png " ) ;
gtk_widget_show ( image1950 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_fixtures_week ) , image1950 ) ;
2005-06-04 15:21:45 +02:00
menu_fixtures = gtk_image_menu_item_new_with_mnemonic ( _ ( " Fixtures (competitions) " ) ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( menu_fixtures ) ;
gtk_container_add ( GTK_CONTAINER ( menu_figures_menu ) , menu_fixtures ) ;
2005-03-14 18:47:27 +01:00
gtk_widget_add_accelerator ( menu_fixtures , " activate " , accel_group ,
GDK_F4 , 0 ,
GTK_ACCEL_VISIBLE ) ;
2005-01-09 21:21:22 +01:00
2005-09-27 14:18:46 +02:00
image1951 = create_pixmap ( main_window , " menu_fixtures_comp.png " ) ;
gtk_widget_show ( image1951 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_fixtures ) , image1951 ) ;
2005-06-04 15:21:45 +02:00
menu_tables = gtk_image_menu_item_new_with_mnemonic ( _ ( " Tables " ) ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( menu_tables ) ;
gtk_container_add ( GTK_CONTAINER ( menu_figures_menu ) , menu_tables ) ;
2005-03-15 16:10:57 +01:00
gtk_widget_add_accelerator ( menu_tables , " activate " , accel_group ,
GDK_F5 , 0 ,
GTK_ACCEL_VISIBLE ) ;
2005-09-27 14:18:46 +02:00
image1952 = create_pixmap ( main_window , " menu_table.png " ) ;
gtk_widget_show ( image1952 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_tables ) , image1952 ) ;
2005-06-04 15:21:45 +02:00
menu_my_league_results = gtk_image_menu_item_new_with_mnemonic ( _ ( " My league results " ) ) ;
2005-03-15 16:10:57 +01:00
gtk_widget_show ( menu_my_league_results ) ;
gtk_container_add ( GTK_CONTAINER ( menu_figures_menu ) , menu_my_league_results ) ;
2005-05-30 19:50:53 +02:00
gtk_widget_add_accelerator ( menu_my_league_results , " activate " , accel_group ,
GDK_F6 , 0 ,
GTK_ACCEL_VISIBLE ) ;
2005-01-09 21:21:22 +01:00
2005-09-27 14:18:46 +02:00
image1953 = create_pixmap ( main_window , " menu_league_results.png " ) ;
gtk_widget_show ( image1953 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_my_league_results ) , image1953 ) ;
2005-06-04 15:21:45 +02:00
2005-04-29 21:48:02 +02:00
trennlinie13 = gtk_separator_menu_item_new ( ) ;
gtk_widget_show ( trennlinie13 ) ;
gtk_container_add ( GTK_CONTAINER ( menu_figures_menu ) , trennlinie13 ) ;
gtk_widget_set_sensitive ( trennlinie13 , FALSE ) ;
2005-06-09 09:33:57 +02:00
menu_league_stats = gtk_image_menu_item_new_with_mnemonic ( _ ( " League stats " ) ) ;
2005-04-29 21:48:02 +02:00
gtk_widget_show ( menu_league_stats ) ;
gtk_container_add ( GTK_CONTAINER ( menu_figures_menu ) , menu_league_stats ) ;
2005-05-13 20:20:47 +02:00
gtk_widget_add_accelerator ( menu_league_stats , " activate " , accel_group ,
GDK_s , 0 ,
GTK_ACCEL_VISIBLE ) ;
2005-01-09 21:21:22 +01:00
2005-09-27 14:18:46 +02:00
image1954 = create_pixmap ( main_window , " menu_league_stats.png " ) ;
gtk_widget_show ( image1954 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_league_stats ) , image1954 ) ;
2005-06-09 09:33:57 +02:00
2005-06-04 15:21:45 +02:00
menu_season_history = gtk_image_menu_item_new_with_mnemonic ( _ ( " Season history " ) ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( menu_season_history ) ;
gtk_container_add ( GTK_CONTAINER ( menu_figures_menu ) , menu_season_history ) ;
2005-05-13 20:20:47 +02:00
gtk_widget_add_accelerator ( menu_season_history , " activate " , accel_group ,
GDK_h , 0 ,
GTK_ACCEL_VISIBLE ) ;
2005-01-09 21:21:22 +01:00
2005-09-27 14:18:46 +02:00
image1955 = create_pixmap ( main_window , " menu_history.png " ) ;
gtk_widget_show ( image1955 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_season_history ) , image1955 ) ;
2005-06-04 15:21:45 +02:00
2005-05-02 17:14:41 +02:00
menu_team = gtk_menu_item_new_with_mnemonic ( _ ( " _Team " ) ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( menu_team ) ;
gtk_container_add ( GTK_CONTAINER ( menubar1 ) , menu_team ) ;
menu_team_menu = gtk_menu_new ( ) ;
gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( menu_team ) , menu_team_menu ) ;
2005-06-04 15:21:45 +02:00
menu_playing_style = gtk_image_menu_item_new_with_mnemonic ( _ ( " Playing style " ) ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( menu_playing_style ) ;
gtk_container_add ( GTK_CONTAINER ( menu_team_menu ) , menu_playing_style ) ;
2005-09-27 14:18:46 +02:00
image1956 = create_pixmap ( main_window , " menu_style.png " ) ;
gtk_widget_show ( image1956 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_playing_style ) , image1956 ) ;
2005-06-04 15:21:45 +02:00
2005-01-09 21:21:22 +01:00
menu_playing_style_menu = gtk_menu_new ( ) ;
gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( menu_playing_style ) , menu_playing_style_menu ) ;
menu_all_out_defend = gtk_radio_menu_item_new_with_mnemonic ( menu_all_out_defend_group , _ ( " All Out Defend " ) ) ;
menu_all_out_defend_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_all_out_defend ) ) ;
gtk_widget_show ( menu_all_out_defend ) ;
gtk_container_add ( GTK_CONTAINER ( menu_playing_style_menu ) , menu_all_out_defend ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_all_out_defend ) , TRUE ) ;
2005-01-09 21:21:22 +01:00
menu_defend = gtk_radio_menu_item_new_with_mnemonic ( menu_all_out_defend_group , _ ( " Defend " ) ) ;
menu_all_out_defend_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_defend ) ) ;
gtk_widget_show ( menu_defend ) ;
gtk_container_add ( GTK_CONTAINER ( menu_playing_style_menu ) , menu_defend ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_defend ) , TRUE ) ;
2005-01-09 21:21:22 +01:00
menu_balanced = gtk_radio_menu_item_new_with_mnemonic ( menu_all_out_defend_group , _ ( " Balanced " ) ) ;
menu_all_out_defend_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_balanced ) ) ;
gtk_widget_show ( menu_balanced ) ;
gtk_container_add ( GTK_CONTAINER ( menu_playing_style_menu ) , menu_balanced ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_balanced ) , TRUE ) ;
2005-01-09 21:21:22 +01:00
menu_attack = gtk_radio_menu_item_new_with_mnemonic ( menu_all_out_defend_group , _ ( " Attack " ) ) ;
menu_all_out_defend_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_attack ) ) ;
gtk_widget_show ( menu_attack ) ;
gtk_container_add ( GTK_CONTAINER ( menu_playing_style_menu ) , menu_attack ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_attack ) , TRUE ) ;
2005-01-09 21:21:22 +01:00
menu_all_out_attack = gtk_radio_menu_item_new_with_mnemonic ( menu_all_out_defend_group , _ ( " All Out Attack " ) ) ;
menu_all_out_defend_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_all_out_attack ) ) ;
gtk_widget_show ( menu_all_out_attack ) ;
gtk_container_add ( GTK_CONTAINER ( menu_playing_style_menu ) , menu_all_out_attack ) ;
2005-08-20 21:39:36 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_all_out_attack ) , TRUE ) ;
2005-01-09 21:21:22 +01:00
2005-06-09 09:33:57 +02:00
menu_scout = gtk_image_menu_item_new_with_mnemonic ( _ ( " Scout " ) ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( menu_scout ) ;
gtk_container_add ( GTK_CONTAINER ( menu_team_menu ) , menu_scout ) ;
2005-09-27 14:18:46 +02:00
image1957 = create_pixmap ( main_window , " menu_scout.png " ) ;
gtk_widget_show ( image1957 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_scout ) , image1957 ) ;
2005-06-09 09:33:57 +02:00
2005-01-09 21:21:22 +01:00
menu_scout_menu = gtk_menu_new ( ) ;
gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( menu_scout ) , menu_scout_menu ) ;
menu_scout_best = gtk_radio_menu_item_new_with_mnemonic ( menu_scout_best_group , _ ( " Best " ) ) ;
menu_scout_best_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_scout_best ) ) ;
gtk_widget_show ( menu_scout_best ) ;
gtk_container_add ( GTK_CONTAINER ( menu_scout_menu ) , menu_scout_best ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_scout_best ) , TRUE ) ;
2005-01-09 21:21:22 +01:00
menu_scout_good = gtk_radio_menu_item_new_with_mnemonic ( menu_scout_best_group , _ ( " Good " ) ) ;
menu_scout_best_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_scout_good ) ) ;
gtk_widget_show ( menu_scout_good ) ;
gtk_container_add ( GTK_CONTAINER ( menu_scout_menu ) , menu_scout_good ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_scout_good ) , TRUE ) ;
2005-01-09 21:21:22 +01:00
menu_scout_average = gtk_radio_menu_item_new_with_mnemonic ( menu_scout_best_group , _ ( " Average " ) ) ;
menu_scout_best_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_scout_average ) ) ;
gtk_widget_show ( menu_scout_average ) ;
gtk_container_add ( GTK_CONTAINER ( menu_scout_menu ) , menu_scout_average ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_scout_average ) , TRUE ) ;
2005-01-09 21:21:22 +01:00
menu_scout_bad = gtk_radio_menu_item_new_with_mnemonic ( menu_scout_best_group , _ ( " Bad " ) ) ;
menu_scout_best_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_scout_bad ) ) ;
gtk_widget_show ( menu_scout_bad ) ;
gtk_container_add ( GTK_CONTAINER ( menu_scout_menu ) , menu_scout_bad ) ;
2005-08-20 21:39:36 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_scout_bad ) , TRUE ) ;
2005-01-09 21:21:22 +01:00
2005-06-09 09:33:57 +02:00
menu_physio = gtk_image_menu_item_new_with_mnemonic ( _ ( " Physio " ) ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( menu_physio ) ;
gtk_container_add ( GTK_CONTAINER ( menu_team_menu ) , menu_physio ) ;
2005-09-27 14:18:46 +02:00
image1958 = create_pixmap ( main_window , " menu_physio.png " ) ;
gtk_widget_show ( image1958 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_physio ) , image1958 ) ;
2005-06-09 09:33:57 +02:00
2005-01-09 21:21:22 +01:00
menu_physio_menu = gtk_menu_new ( ) ;
gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( menu_physio ) , menu_physio_menu ) ;
menu_physio_best = gtk_radio_menu_item_new_with_mnemonic ( menu_physio_best_group , _ ( " Best " ) ) ;
menu_physio_best_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_physio_best ) ) ;
gtk_widget_show ( menu_physio_best ) ;
gtk_container_add ( GTK_CONTAINER ( menu_physio_menu ) , menu_physio_best ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_physio_best ) , TRUE ) ;
2005-01-09 21:21:22 +01:00
menu_physio_good = gtk_radio_menu_item_new_with_mnemonic ( menu_physio_best_group , _ ( " Good " ) ) ;
menu_physio_best_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_physio_good ) ) ;
gtk_widget_show ( menu_physio_good ) ;
gtk_container_add ( GTK_CONTAINER ( menu_physio_menu ) , menu_physio_good ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_physio_good ) , TRUE ) ;
2005-01-09 21:21:22 +01:00
menu_physio_average = gtk_radio_menu_item_new_with_mnemonic ( menu_physio_best_group , _ ( " Average " ) ) ;
menu_physio_best_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_physio_average ) ) ;
gtk_widget_show ( menu_physio_average ) ;
gtk_container_add ( GTK_CONTAINER ( menu_physio_menu ) , menu_physio_average ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_physio_average ) , TRUE ) ;
2005-01-09 21:21:22 +01:00
menu_physio_bad = gtk_radio_menu_item_new_with_mnemonic ( menu_physio_best_group , _ ( " Bad " ) ) ;
menu_physio_best_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_physio_bad ) ) ;
gtk_widget_show ( menu_physio_bad ) ;
gtk_container_add ( GTK_CONTAINER ( menu_physio_menu ) , menu_physio_bad ) ;
2005-08-20 21:39:36 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_physio_bad ) , TRUE ) ;
2005-01-09 21:21:22 +01:00
2005-08-26 14:41:37 +02:00
menu_youth_academy = gtk_image_menu_item_new_with_mnemonic ( _ ( " Youth academy " ) ) ;
2005-07-08 11:26:00 +02:00
gtk_widget_show ( menu_youth_academy ) ;
gtk_container_add ( GTK_CONTAINER ( menu_team_menu ) , menu_youth_academy ) ;
2005-09-27 14:18:46 +02:00
image1959 = create_pixmap ( main_window , " menu_youth_academy.png " ) ;
gtk_widget_show ( image1959 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_youth_academy ) , image1959 ) ;
2005-08-26 14:41:37 +02:00
2005-07-08 11:26:00 +02:00
menu_youth_academy_menu = gtk_menu_new ( ) ;
gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( menu_youth_academy ) , menu_youth_academy_menu ) ;
menu_show_youth_academy = gtk_menu_item_new_with_mnemonic ( _ ( " Show youth academy " ) ) ;
gtk_widget_show ( menu_show_youth_academy ) ;
gtk_container_add ( GTK_CONTAINER ( menu_youth_academy_menu ) , menu_show_youth_academy ) ;
gtk_widget_add_accelerator ( menu_show_youth_academy , " activate " , accel_group ,
GDK_y , 0 ,
GTK_ACCEL_VISIBLE ) ;
youth_coach1 = gtk_menu_item_new_with_mnemonic ( _ ( " Youth coach " ) ) ;
gtk_widget_show ( youth_coach1 ) ;
gtk_container_add ( GTK_CONTAINER ( menu_youth_academy_menu ) , youth_coach1 ) ;
youth_coach1_menu = gtk_menu_new ( ) ;
gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( youth_coach1 ) , youth_coach1_menu ) ;
menu_yc_best = gtk_radio_menu_item_new_with_mnemonic ( menu_yc_best_group , _ ( " Best " ) ) ;
menu_yc_best_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_yc_best ) ) ;
gtk_widget_show ( menu_yc_best ) ;
gtk_container_add ( GTK_CONTAINER ( youth_coach1_menu ) , menu_yc_best ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_yc_best ) , TRUE ) ;
2005-07-08 11:26:00 +02:00
menu_yc_good = gtk_radio_menu_item_new_with_mnemonic ( menu_yc_best_group , _ ( " Good " ) ) ;
menu_yc_best_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_yc_good ) ) ;
gtk_widget_show ( menu_yc_good ) ;
gtk_container_add ( GTK_CONTAINER ( youth_coach1_menu ) , menu_yc_good ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_yc_good ) , TRUE ) ;
2005-07-08 11:26:00 +02:00
menu_yc_average = gtk_radio_menu_item_new_with_mnemonic ( menu_yc_best_group , _ ( " Average " ) ) ;
menu_yc_best_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_yc_average ) ) ;
gtk_widget_show ( menu_yc_average ) ;
gtk_container_add ( GTK_CONTAINER ( youth_coach1_menu ) , menu_yc_average ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_yc_average ) , TRUE ) ;
2005-07-08 11:26:00 +02:00
menu_yc_bad = gtk_radio_menu_item_new_with_mnemonic ( menu_yc_best_group , _ ( " Bad " ) ) ;
menu_yc_best_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_yc_bad ) ) ;
gtk_widget_show ( menu_yc_bad ) ;
gtk_container_add ( GTK_CONTAINER ( youth_coach1_menu ) , menu_yc_bad ) ;
2005-08-20 21:39:36 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_yc_bad ) , TRUE ) ;
2005-07-14 18:05:10 +02:00
recruiting_preference1 = gtk_menu_item_new_with_mnemonic ( _ ( " Recruiting preference " ) ) ;
gtk_widget_show ( recruiting_preference1 ) ;
gtk_container_add ( GTK_CONTAINER ( menu_youth_academy_menu ) , recruiting_preference1 ) ;
recruiting_preference1_menu = gtk_menu_new ( ) ;
gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( recruiting_preference1 ) , recruiting_preference1_menu ) ;
menu_recruit0 = gtk_radio_menu_item_new_with_mnemonic ( menu_recruit0_group , _ ( " Goalies " ) ) ;
menu_recruit0_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_recruit0 ) ) ;
gtk_widget_show ( menu_recruit0 ) ;
gtk_container_add ( GTK_CONTAINER ( recruiting_preference1_menu ) , menu_recruit0 ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_recruit0 ) , TRUE ) ;
2005-07-14 18:05:10 +02:00
menu_recruit1 = gtk_radio_menu_item_new_with_mnemonic ( menu_recruit0_group , _ ( " Defenders " ) ) ;
menu_recruit0_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_recruit1 ) ) ;
gtk_widget_show ( menu_recruit1 ) ;
gtk_container_add ( GTK_CONTAINER ( recruiting_preference1_menu ) , menu_recruit1 ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_recruit1 ) , TRUE ) ;
2005-07-14 18:05:10 +02:00
menu_recruit2 = gtk_radio_menu_item_new_with_mnemonic ( menu_recruit0_group , _ ( " Midfielders " ) ) ;
menu_recruit0_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_recruit2 ) ) ;
gtk_widget_show ( menu_recruit2 ) ;
gtk_container_add ( GTK_CONTAINER ( recruiting_preference1_menu ) , menu_recruit2 ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_recruit2 ) , TRUE ) ;
2005-07-14 18:05:10 +02:00
menu_recruit3 = gtk_radio_menu_item_new_with_mnemonic ( menu_recruit0_group , _ ( " Forwards " ) ) ;
menu_recruit0_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_recruit3 ) ) ;
gtk_widget_show ( menu_recruit3 ) ;
gtk_container_add ( GTK_CONTAINER ( recruiting_preference1_menu ) , menu_recruit3 ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_recruit3 ) , TRUE ) ;
2005-07-14 18:05:10 +02:00
menu_recruit4 = gtk_radio_menu_item_new_with_mnemonic ( menu_recruit0_group , _ ( " Any " ) ) ;
menu_recruit0_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_recruit4 ) ) ;
gtk_widget_show ( menu_recruit4 ) ;
gtk_container_add ( GTK_CONTAINER ( recruiting_preference1_menu ) , menu_recruit4 ) ;
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_recruit4 ) , TRUE ) ;
2005-07-08 11:26:00 +02:00
menu_set_investment = gtk_menu_item_new_with_mnemonic ( _ ( " Set investment " ) ) ;
gtk_widget_show ( menu_set_investment ) ;
gtk_container_add ( GTK_CONTAINER ( menu_youth_academy_menu ) , menu_set_investment ) ;
2005-07-15 14:42:57 +02:00
gtk_tooltips_set_tip ( tooltips , menu_set_investment , _ ( " Set the percentage of your income you want to devote to your youth academy. " ) , NULL ) ;
2005-07-08 11:26:00 +02:00
2005-06-04 15:21:45 +02:00
menu_boost = gtk_image_menu_item_new_with_mnemonic ( _ ( " Boost " ) ) ;
2005-03-10 21:59:39 +01:00
gtk_widget_show ( menu_boost ) ;
gtk_container_add ( GTK_CONTAINER ( menu_team_menu ) , menu_boost ) ;
2005-03-09 14:10:28 +01:00
2005-09-27 14:18:46 +02:00
image1960 = create_pixmap ( main_window , " menu_boost.png " ) ;
gtk_widget_show ( image1960 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_boost ) , image1960 ) ;
2005-06-04 15:21:45 +02:00
2005-03-10 21:59:39 +01:00
menu_boost_menu = gtk_menu_new ( ) ;
gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( menu_boost ) , menu_boost_menu ) ;
2005-03-09 14:10:28 +01:00
2005-03-10 21:59:39 +01:00
menu_boost_on = gtk_radio_menu_item_new_with_mnemonic ( menu_boost_on_group , _ ( " On " ) ) ;
menu_boost_on_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_boost_on ) ) ;
gtk_widget_show ( menu_boost_on ) ;
gtk_container_add ( GTK_CONTAINER ( menu_boost_menu ) , menu_boost_on ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_boost_on ) , TRUE ) ;
2005-03-09 14:10:28 +01:00
2005-03-10 21:59:39 +01:00
menu_boost_off = gtk_radio_menu_item_new_with_mnemonic ( menu_boost_on_group , _ ( " Off " ) ) ;
menu_boost_on_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_boost_off ) ) ;
gtk_widget_show ( menu_boost_off ) ;
gtk_container_add ( GTK_CONTAINER ( menu_boost_menu ) , menu_boost_off ) ;
2005-08-22 21:38:54 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_boost_off ) , TRUE ) ;
2005-03-09 14:10:28 +01:00
2005-03-10 21:59:39 +01:00
menu_boost_anti = gtk_radio_menu_item_new_with_mnemonic ( menu_boost_on_group , _ ( " Anti " ) ) ;
menu_boost_on_group = gtk_radio_menu_item_get_group ( GTK_RADIO_MENU_ITEM ( menu_boost_anti ) ) ;
gtk_widget_show ( menu_boost_anti ) ;
gtk_container_add ( GTK_CONTAINER ( menu_boost_menu ) , menu_boost_anti ) ;
2005-08-20 21:39:36 +02:00
gtk_check_menu_item_set_active ( GTK_CHECK_MENU_ITEM ( menu_boost_anti ) , TRUE ) ;
2005-01-09 21:21:22 +01:00
2005-04-26 17:00:26 +02:00
trennlinie11 = gtk_separator_menu_item_new ( ) ;
2005-04-09 21:18:28 +02:00
gtk_widget_show ( trennlinie11 ) ;
gtk_container_add ( GTK_CONTAINER ( menu_team_menu ) , trennlinie11 ) ;
gtk_widget_set_sensitive ( trennlinie11 , FALSE ) ;
2005-06-04 15:21:45 +02:00
menu_reset_players = gtk_image_menu_item_new_with_mnemonic ( _ ( " Reset player list " ) ) ;
2005-04-26 17:00:26 +02:00
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 ) ;
2005-09-27 14:18:46 +02:00
image1961 = gtk_image_new_from_stock ( " gtk-undo " , GTK_ICON_SIZE_MENU ) ;
gtk_widget_show ( image1961 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_reset_players ) , image1961 ) ;
2005-06-04 15:21:45 +02:00
menu_custom_structure = gtk_image_menu_item_new_with_mnemonic ( _ ( " Enter custom structure " ) ) ;
2005-03-03 13:46:48 +01:00
gtk_widget_show ( menu_custom_structure ) ;
gtk_container_add ( GTK_CONTAINER ( menu_team_menu ) , menu_custom_structure ) ;
2005-09-27 14:18:46 +02:00
image1962 = create_pixmap ( main_window , " menu_structure.png " ) ;
gtk_widget_show ( image1962 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_custom_structure ) , image1962 ) ;
2005-06-04 15:21:45 +02:00
menu_rearrange_team = gtk_image_menu_item_new_with_mnemonic ( _ ( " Rearrange team " ) ) ;
2005-04-09 21:18:28 +02:00
gtk_widget_show ( menu_rearrange_team ) ;
gtk_container_add ( GTK_CONTAINER ( menu_team_menu ) , menu_rearrange_team ) ;
gtk_tooltips_set_tip ( tooltips , menu_rearrange_team , _ ( " Try to put the startup players onto their favoured positions and sort the substitutes (Ctrl-R or middle click) " ) , NULL ) ;
gtk_widget_add_accelerator ( menu_rearrange_team , " activate " , accel_group ,
GDK_r , GDK_CONTROL_MASK ,
GTK_ACCEL_VISIBLE ) ;
2005-09-27 14:18:46 +02:00
image1963 = create_pixmap ( main_window , " menu_rearrange.png " ) ;
gtk_widget_show ( image1963 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_rearrange_team ) , image1963 ) ;
2005-06-04 15:21:45 +02:00
2005-04-26 17:00:26 +02:00
trennlinie8 = gtk_separator_menu_item_new ( ) ;
2005-03-03 13:46:48 +01:00
gtk_widget_show ( trennlinie8 ) ;
gtk_container_add ( GTK_CONTAINER ( menu_team_menu ) , trennlinie8 ) ;
gtk_widget_set_sensitive ( trennlinie8 , FALSE ) ;
2005-06-09 09:33:57 +02:00
menu_browse_teams = gtk_image_menu_item_new_with_mnemonic ( _ ( " Browse teams " ) ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( menu_browse_teams ) ;
gtk_container_add ( GTK_CONTAINER ( menu_team_menu ) , menu_browse_teams ) ;
2005-09-27 14:18:46 +02:00
image1964 = create_pixmap ( main_window , " menu_browse_tms.png " ) ;
gtk_widget_show ( image1964 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_browse_teams ) , image1964 ) ;
2005-06-09 09:33:57 +02:00
2005-05-02 17:14:41 +02:00
menu_player = gtk_menu_item_new_with_mnemonic ( _ ( " _Player " ) ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( menu_player ) ;
gtk_container_add ( GTK_CONTAINER ( menubar1 ) , menu_player ) ;
menu_player_menu = gtk_menu_new ( ) ;
gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( menu_player ) , menu_player_menu ) ;
2005-06-04 15:21:45 +02:00
menu_show_info = gtk_image_menu_item_new_with_mnemonic ( _ ( " Show info " ) ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( menu_show_info ) ;
gtk_container_add ( GTK_CONTAINER ( menu_player_menu ) , menu_show_info ) ;
2005-09-27 14:18:46 +02:00
image1965 = create_pixmap ( main_window , " menu_player_info.png " ) ;
gtk_widget_show ( image1965 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_show_info ) , image1965 ) ;
2005-06-04 15:21:45 +02:00
menu_put_on_transfer_list = gtk_image_menu_item_new_with_mnemonic ( _ ( " Put on transfer list " ) ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( menu_put_on_transfer_list ) ;
gtk_container_add ( GTK_CONTAINER ( menu_player_menu ) , menu_put_on_transfer_list ) ;
2005-09-27 14:18:46 +02:00
image1966 = create_pixmap ( main_window , " menu_player_put_transfer.png " ) ;
gtk_widget_show ( image1966 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_put_on_transfer_list ) , image1966 ) ;
2005-06-04 15:21:45 +02:00
menu_remove_from_transfer_list = gtk_image_menu_item_new_with_mnemonic ( _ ( " Remove from transfer list " ) ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( menu_remove_from_transfer_list ) ;
gtk_container_add ( GTK_CONTAINER ( menu_player_menu ) , menu_remove_from_transfer_list ) ;
2005-09-27 14:18:46 +02:00
image1967 = create_pixmap ( main_window , " menu_player_remove_transfer.png " ) ;
gtk_widget_show ( image1967 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_remove_from_transfer_list ) , image1967 ) ;
2005-06-04 15:21:45 +02:00
2005-06-09 09:33:57 +02:00
menu_offer_new_contract = gtk_image_menu_item_new_with_mnemonic ( _ ( " Offer new contract " ) ) ;
2005-03-25 11:54:54 +01:00
gtk_widget_show ( menu_offer_new_contract ) ;
gtk_container_add ( GTK_CONTAINER ( menu_player_menu ) , menu_offer_new_contract ) ;
2005-09-27 14:18:46 +02:00
image1968 = create_pixmap ( main_window , " menu_player_contract.png " ) ;
gtk_widget_show ( image1968 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_offer_new_contract ) , image1968 ) ;
2005-06-09 09:33:57 +02:00
2005-06-04 15:21:45 +02:00
menu_fire = gtk_image_menu_item_new_with_mnemonic ( _ ( " Fire " ) ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( menu_fire ) ;
gtk_container_add ( GTK_CONTAINER ( menu_player_menu ) , menu_fire ) ;
2005-09-27 14:18:46 +02:00
image1969 = create_pixmap ( main_window , " menu_player_fire.png " ) ;
gtk_widget_show ( image1969 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_fire ) , image1969 ) ;
2005-06-04 15:21:45 +02:00
menu_shoots_penalties = gtk_image_menu_item_new_with_mnemonic ( _ ( " Shoots penalties " ) ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( menu_shoots_penalties ) ;
gtk_container_add ( GTK_CONTAINER ( menu_player_menu ) , menu_shoots_penalties ) ;
2005-09-27 14:18:46 +02:00
image1970 = create_pixmap ( main_window , " menu_player_shoots.png " ) ;
gtk_widget_show ( image1970 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_shoots_penalties ) , image1970 ) ;
2005-07-08 11:26:00 +02:00
menu_move_to_youth_academy = gtk_menu_item_new_with_mnemonic ( _ ( " 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 ) ;
2005-06-04 15:21:45 +02:00
2005-04-26 17:00:26 +02:00
trennlinie10 = gtk_separator_menu_item_new ( ) ;
2005-03-27 19:59:57 +02:00
gtk_widget_show ( trennlinie10 ) ;
gtk_container_add ( GTK_CONTAINER ( menu_player_menu ) , trennlinie10 ) ;
gtk_widget_set_sensitive ( trennlinie10 , FALSE ) ;
2005-06-09 09:33:57 +02:00
menu_browse_players = gtk_image_menu_item_new_with_mnemonic ( _ ( " Browse players " ) ) ;
2005-03-27 19:59:57 +02:00
gtk_widget_show ( menu_browse_players ) ;
gtk_container_add ( GTK_CONTAINER ( menu_player_menu ) , menu_browse_players ) ;
2005-09-27 14:18:46 +02:00
image1971 = create_pixmap ( main_window , " menu_player_browse.png " ) ;
gtk_widget_show ( image1971 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_browse_players ) , image1971 ) ;
2005-06-09 09:33:57 +02:00
2005-05-02 17:14:41 +02:00
menu_user = gtk_menu_item_new_with_mnemonic ( _ ( " _User " ) ) ;
2005-03-03 13:46:48 +01:00
gtk_widget_show ( menu_user ) ;
gtk_container_add ( GTK_CONTAINER ( menubar1 ) , menu_user ) ;
menu_user_menu = gtk_menu_new ( ) ;
gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( menu_user ) , menu_user_menu ) ;
2005-06-09 09:33:57 +02:00
menu_user_show_last_match = gtk_image_menu_item_new_with_mnemonic ( _ ( " Show last match " ) ) ;
2005-03-11 18:18:51 +01:00
gtk_widget_show ( menu_user_show_last_match ) ;
gtk_container_add ( GTK_CONTAINER ( menu_user_menu ) , menu_user_show_last_match ) ;
2005-06-04 15:21:45 +02:00
gtk_widget_add_accelerator ( menu_user_show_last_match , " activate " , accel_group ,
2005-08-22 15:37:02 +02:00
GDK_v , GDK_CONTROL_MASK ,
2005-06-04 15:21:45 +02:00
GTK_ACCEL_VISIBLE ) ;
2005-03-11 18:18:51 +01:00
2005-09-27 14:18:46 +02:00
image1972 = create_pixmap ( main_window , " menu_last_match.png " ) ;
gtk_widget_show ( image1972 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_user_show_last_match ) , image1972 ) ;
2005-06-09 09:33:57 +02:00
2005-06-11 16:19:02 +02:00
menu_user_show_last_stats = gtk_image_menu_item_new_with_mnemonic ( _ ( " Show last match stats " ) ) ;
2005-03-11 18:18:51 +01:00
gtk_widget_show ( menu_user_show_last_stats ) ;
gtk_container_add ( GTK_CONTAINER ( menu_user_menu ) , menu_user_show_last_stats ) ;
gtk_widget_add_accelerator ( menu_user_show_last_stats , " activate " , accel_group ,
GDK_F2 , 0 ,
GTK_ACCEL_VISIBLE ) ;
2005-09-27 14:18:46 +02:00
image1973 = create_pixmap ( main_window , " menu_match_stats.png " ) ;
gtk_widget_show ( image1973 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_user_show_last_stats ) , image1973 ) ;
2005-06-14 10:02:46 +02:00
menu_user_show_coming_matches = gtk_image_menu_item_new_with_mnemonic ( _ ( " Show coming matches " ) ) ;
gtk_widget_show ( menu_user_show_coming_matches ) ;
gtk_container_add ( GTK_CONTAINER ( menu_user_menu ) , menu_user_show_coming_matches ) ;
2005-08-22 15:37:02 +02:00
gtk_widget_add_accelerator ( menu_user_show_coming_matches , " activate " , accel_group ,
GDK_F1 , 0 ,
GTK_ACCEL_VISIBLE ) ;
2005-06-14 10:02:46 +02:00
2005-09-27 14:18:46 +02:00
image1974 = gtk_image_new_from_stock ( " gtk-jump-to " , GTK_ICON_SIZE_MENU ) ;
gtk_widget_show ( image1974 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_user_show_coming_matches ) , image1974 ) ;
2005-08-20 21:39:36 +02:00
2005-09-07 09:13:38 +02:00
memorable_matches = gtk_image_menu_item_new_with_mnemonic ( _ ( " Memorable matches " ) ) ;
2005-08-20 21:39:36 +02:00
gtk_widget_show ( memorable_matches ) ;
gtk_container_add ( GTK_CONTAINER ( menu_user_menu ) , memorable_matches ) ;
2005-09-27 14:18:46 +02:00
image1975 = create_pixmap ( main_window , " menu_mmatches.png " ) ;
gtk_widget_show ( image1975 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( memorable_matches ) , image1975 ) ;
2005-09-07 09:13:38 +02:00
2005-08-20 21:39:36 +02:00
memorable_matches_menu = gtk_menu_new ( ) ;
gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( memorable_matches ) , memorable_matches_menu ) ;
mm_add_last_match = gtk_image_menu_item_new_with_mnemonic ( _ ( " Add last match " ) ) ;
gtk_widget_show ( mm_add_last_match ) ;
gtk_container_add ( GTK_CONTAINER ( memorable_matches_menu ) , mm_add_last_match ) ;
gtk_tooltips_set_tip ( tooltips , mm_add_last_match , _ ( " Add last recorded match to the current memorable matches file. " ) , NULL ) ;
2005-08-22 15:37:02 +02:00
gtk_widget_add_accelerator ( mm_add_last_match , " activate " , accel_group ,
GDK_a , GDK_CONTROL_MASK ,
GTK_ACCEL_VISIBLE ) ;
2005-08-20 21:39:36 +02:00
2005-09-27 14:18:46 +02:00
image1976 = gtk_image_new_from_stock ( " gtk-add " , GTK_ICON_SIZE_MENU ) ;
gtk_widget_show ( image1976 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( mm_add_last_match ) , image1976 ) ;
2005-08-20 21:39:36 +02:00
mm_manage_matches = gtk_image_menu_item_new_with_mnemonic ( _ ( " Manage matches " ) ) ;
gtk_widget_show ( mm_manage_matches ) ;
gtk_container_add ( GTK_CONTAINER ( memorable_matches_menu ) , mm_manage_matches ) ;
2005-08-22 21:38:54 +02:00
gtk_tooltips_set_tip ( tooltips , mm_manage_matches , _ ( " Replay, delete or add memorable matches. " ) , NULL ) ;
2005-08-22 15:37:02 +02:00
gtk_widget_add_accelerator ( mm_manage_matches , " activate " , accel_group ,
GDK_m , GDK_CONTROL_MASK ,
GTK_ACCEL_VISIBLE ) ;
2005-08-20 21:39:36 +02:00
2005-09-27 14:18:46 +02:00
image1977 = gtk_image_new_from_stock ( " gtk-preferences " , GTK_ICON_SIZE_MENU ) ;
gtk_widget_show ( image1977 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( mm_manage_matches ) , image1977 ) ;
2005-06-11 16:19:02 +02:00
2005-04-26 17:00:26 +02:00
trennlinie12 = gtk_separator_menu_item_new ( ) ;
2005-04-16 09:46:04 +02:00
gtk_widget_show ( trennlinie12 ) ;
gtk_container_add ( GTK_CONTAINER ( menu_user_menu ) , trennlinie12 ) ;
gtk_widget_set_sensitive ( trennlinie12 , FALSE ) ;
2005-06-09 09:33:57 +02:00
menu_user_show_history = gtk_image_menu_item_new_with_mnemonic ( _ ( " Show history " ) ) ;
2005-04-16 09:46:04 +02:00
gtk_widget_show ( menu_user_show_history ) ;
gtk_container_add ( GTK_CONTAINER ( menu_user_menu ) , menu_user_show_history ) ;
gtk_widget_add_accelerator ( menu_user_show_history , " activate " , accel_group ,
GDK_h , GDK_CONTROL_MASK ,
GTK_ACCEL_VISIBLE ) ;
2005-09-27 14:18:46 +02:00
image1978 = create_pixmap ( main_window , " menu_history.png " ) ;
gtk_widget_show ( image1978 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_user_show_history ) , image1978 ) ;
2005-06-09 09:33:57 +02:00
2005-04-26 17:00:26 +02:00
trennlinie9 = gtk_separator_menu_item_new ( ) ;
2005-03-11 18:18:51 +01:00
gtk_widget_show ( trennlinie9 ) ;
gtk_container_add ( GTK_CONTAINER ( menu_user_menu ) , trennlinie9 ) ;
gtk_widget_set_sensitive ( trennlinie9 , FALSE ) ;
2005-03-03 13:46:48 +01:00
menu_next_user = gtk_image_menu_item_new_with_mnemonic ( _ ( " Next user " ) ) ;
gtk_widget_show ( menu_next_user ) ;
gtk_container_add ( GTK_CONTAINER ( menu_user_menu ) , menu_next_user ) ;
gtk_widget_add_accelerator ( menu_next_user , " activate " , accel_group ,
GDK_F9 , 0 ,
GTK_ACCEL_VISIBLE ) ;
2005-09-27 14:18:46 +02:00
image1979 = gtk_image_new_from_stock ( " gtk-media-forward " , GTK_ICON_SIZE_MENU ) ;
gtk_widget_show ( image1979 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_next_user ) , image1979 ) ;
2005-03-03 13:46:48 +01:00
menu_previous_user = gtk_image_menu_item_new_with_mnemonic ( _ ( " Previous user " ) ) ;
gtk_widget_show ( menu_previous_user ) ;
gtk_container_add ( GTK_CONTAINER ( menu_user_menu ) , menu_previous_user ) ;
gtk_widget_add_accelerator ( menu_previous_user , " activate " , accel_group ,
GDK_F8 , 0 ,
GTK_ACCEL_VISIBLE ) ;
2005-09-27 14:18:46 +02:00
image1980 = gtk_image_new_from_stock ( " gtk-go-back " , GTK_ICON_SIZE_MENU ) ;
gtk_widget_show ( image1980 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_previous_user ) , image1980 ) ;
2005-03-03 13:46:48 +01:00
menu_manage_users = gtk_image_menu_item_new_with_mnemonic ( _ ( " Manage users " ) ) ;
gtk_widget_show ( menu_manage_users ) ;
gtk_container_add ( GTK_CONTAINER ( menu_user_menu ) , menu_manage_users ) ;
gtk_widget_add_accelerator ( menu_manage_users , " activate " , accel_group ,
GDK_F12 , 0 ,
GTK_ACCEL_VISIBLE ) ;
2005-09-27 14:18:46 +02:00
image1981 = gtk_image_new_from_stock ( " gtk-justify-fill " , GTK_ICON_SIZE_MENU ) ;
gtk_widget_show ( image1981 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_manage_users ) , image1981 ) ;
2005-03-03 13:46:48 +01:00
2005-05-02 17:14:41 +02:00
menu_finances_stadium = gtk_menu_item_new_with_mnemonic ( _ ( " Fin_Stad " ) ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( menu_finances_stadium ) ;
gtk_container_add ( GTK_CONTAINER ( menubar1 ) , menu_finances_stadium ) ;
menu_finances_stadium_menu = gtk_menu_new ( ) ;
gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( menu_finances_stadium ) , menu_finances_stadium_menu ) ;
2005-06-04 15:21:45 +02:00
menu_show_finances = gtk_image_menu_item_new_with_mnemonic ( _ ( " Show finances " ) ) ;
2005-03-16 21:48:25 +01:00
gtk_widget_show ( menu_show_finances ) ;
gtk_container_add ( GTK_CONTAINER ( menu_finances_stadium_menu ) , menu_show_finances ) ;
gtk_widget_add_accelerator ( menu_show_finances , " activate " , accel_group ,
GDK_f , 0 ,
GTK_ACCEL_VISIBLE ) ;
2005-01-09 21:21:22 +01:00
2005-09-27 14:18:46 +02:00
image1982 = create_pixmap ( main_window , " menu_finances.png " ) ;
gtk_widget_show ( image1982 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_show_finances ) , image1982 ) ;
2005-06-04 15:21:45 +02:00
menu_show_stadium = gtk_image_menu_item_new_with_mnemonic ( _ ( " Show stadium " ) ) ;
2005-03-16 21:48:25 +01:00
gtk_widget_show ( menu_show_stadium ) ;
gtk_container_add ( GTK_CONTAINER ( menu_finances_stadium_menu ) , menu_show_stadium ) ;
gtk_widget_add_accelerator ( menu_show_stadium , " activate " , accel_group ,
GDK_f , GDK_CONTROL_MASK ,
GTK_ACCEL_VISIBLE ) ;
2005-09-27 14:18:46 +02:00
image1983 = create_pixmap ( main_window , " menu_stadium.png " ) ;
gtk_widget_show ( image1983 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_show_stadium ) , image1983 ) ;
2005-06-04 15:21:45 +02:00
2005-05-22 15:33:24 +02:00
menu_help1 = gtk_menu_item_new_with_mnemonic ( _ ( " _Help " ) ) ;
gtk_widget_show ( menu_help1 ) ;
gtk_container_add ( GTK_CONTAINER ( menubar1 ) , menu_help1 ) ;
2004-12-23 13:58:39 +01:00
2005-05-22 15:33:24 +02:00
menu_help1_menu = gtk_menu_new ( ) ;
gtk_menu_item_set_submenu ( GTK_MENU_ITEM ( menu_help1 ) , menu_help1_menu ) ;
2004-12-23 13:58:39 +01:00
2005-05-24 20:31:07 +02:00
menu_about = gtk_image_menu_item_new_with_mnemonic ( _ ( " About " ) ) ;
2004-12-23 13:58:39 +01:00
gtk_widget_show ( menu_about ) ;
2005-05-22 15:33:24 +02:00
gtk_container_add ( GTK_CONTAINER ( menu_help1_menu ) , menu_about ) ;
2005-09-27 14:18:46 +02:00
image1984 = gtk_image_new_from_stock ( " gtk-dialog-info " , GTK_ICON_SIZE_MENU ) ;
gtk_widget_show ( image1984 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_about ) , image1984 ) ;
2005-05-24 20:31:07 +02:00
2005-05-22 15:33:24 +02:00
menu_contributors = gtk_image_menu_item_new_with_mnemonic ( _ ( " Contributors " ) ) ;
gtk_widget_show ( menu_contributors ) ;
gtk_container_add ( GTK_CONTAINER ( menu_help1_menu ) , menu_contributors ) ;
2005-09-27 14:18:46 +02:00
image1985 = gtk_image_new_from_stock ( " gtk-add " , GTK_ICON_SIZE_MENU ) ;
gtk_widget_show ( image1985 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_contributors ) , image1985 ) ;
2005-05-22 15:33:24 +02:00
menu_help = gtk_image_menu_item_new_with_mnemonic ( _ ( " Help " ) ) ;
gtk_widget_show ( menu_help ) ;
gtk_container_add ( GTK_CONTAINER ( menu_help1_menu ) , menu_help ) ;
2005-09-27 14:18:46 +02:00
image1986 = gtk_image_new_from_stock ( " gtk-help " , GTK_ICON_SIZE_MENU ) ;
gtk_widget_show ( image1986 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_help ) , image1986 ) ;
2004-12-23 13:58:39 +01:00
hbox1 = gtk_hbox_new ( FALSE , 0 ) ;
gtk_widget_show ( hbox1 ) ;
gtk_box_pack_start ( GTK_BOX ( vbox1 ) , hbox1 , FALSE , FALSE , 0 ) ;
button_load = gtk_button_new ( ) ;
gtk_widget_show ( button_load ) ;
gtk_box_pack_start ( GTK_BOX ( hbox1 ) , button_load , FALSE , FALSE , 2 ) ;
gtk_container_set_border_width ( GTK_CONTAINER ( button_load ) , 2 ) ;
2005-04-09 21:18:28 +02:00
gtk_tooltips_set_tip ( tooltips , button_load , _ ( " Load game (Ctrl - O) " ) , NULL ) ;
2004-12-23 13:58:39 +01:00
image11 = gtk_image_new_from_stock ( " gtk-open " , GTK_ICON_SIZE_BUTTON ) ;
gtk_widget_show ( image11 ) ;
gtk_container_add ( GTK_CONTAINER ( button_load ) , image11 ) ;
button_save = gtk_button_new ( ) ;
gtk_widget_show ( button_save ) ;
gtk_box_pack_start ( GTK_BOX ( hbox1 ) , button_save , FALSE , FALSE , 0 ) ;
gtk_container_set_border_width ( GTK_CONTAINER ( button_save ) , 2 ) ;
2005-04-07 18:44:33 +02:00
gtk_tooltips_set_tip ( tooltips , button_save , _ ( " Save game (Ctrl - S) " ) , NULL ) ;
2004-12-23 13:58:39 +01:00
image12 = gtk_image_new_from_stock ( " gtk-save " , GTK_ICON_SIZE_BUTTON ) ;
gtk_widget_show ( image12 ) ;
gtk_container_add ( GTK_CONTAINER ( button_save ) , image12 ) ;
button_quit = gtk_button_new ( ) ;
gtk_widget_show ( button_quit ) ;
gtk_box_pack_start ( GTK_BOX ( hbox1 ) , button_quit , FALSE , FALSE , 0 ) ;
gtk_container_set_border_width ( GTK_CONTAINER ( button_quit ) , 2 ) ;
2005-01-09 21:21:22 +01:00
gtk_tooltips_set_tip ( tooltips , button_quit , _ ( " Quit (Ctrl - Q) " ) , NULL ) ;
2004-12-23 13:58:39 +01:00
image13 = gtk_image_new_from_stock ( " gtk-quit " , GTK_ICON_SIZE_BUTTON ) ;
gtk_widget_show ( image13 ) ;
gtk_container_add ( GTK_CONTAINER ( button_quit ) , image13 ) ;
vseparator1 = gtk_vseparator_new ( ) ;
gtk_widget_show ( vseparator1 ) ;
gtk_box_pack_start ( GTK_BOX ( hbox1 ) , vseparator1 , FALSE , FALSE , 0 ) ;
gtk_widget_set_size_request ( vseparator1 , 10 , 1 ) ;
vseparator11 = gtk_vseparator_new ( ) ;
gtk_widget_show ( vseparator11 ) ;
gtk_box_pack_start ( GTK_BOX ( hbox1 ) , vseparator11 , FALSE , FALSE , 0 ) ;
gtk_widget_set_size_request ( vseparator11 , 10 , 1 ) ;
button_back_to_main = gtk_button_new ( ) ;
gtk_widget_show ( button_back_to_main ) ;
gtk_box_pack_start ( GTK_BOX ( hbox1 ) , button_back_to_main , FALSE , FALSE , 0 ) ;
gtk_container_set_border_width ( GTK_CONTAINER ( button_back_to_main ) , 2 ) ;
gtk_tooltips_set_tip ( tooltips , button_back_to_main , _ ( " Back to main menu (Esc) " ) , NULL ) ;
gtk_widget_add_accelerator ( button_back_to_main , " clicked " , accel_group ,
GDK_Escape , 0 ,
GTK_ACCEL_VISIBLE ) ;
image20 = gtk_image_new_from_stock ( " gtk-home " , GTK_ICON_SIZE_BUTTON ) ;
gtk_widget_show ( image20 ) ;
gtk_container_add ( GTK_CONTAINER ( button_back_to_main ) , image20 ) ;
button_transfers = gtk_button_new ( ) ;
gtk_widget_show ( button_transfers ) ;
gtk_box_pack_start ( GTK_BOX ( hbox1 ) , button_transfers , FALSE , FALSE , 0 ) ;
gtk_container_set_border_width ( GTK_CONTAINER ( button_transfers ) , 2 ) ;
gtk_tooltips_set_tip ( tooltips , button_transfers , _ ( " Show transferlist (T) " ) , NULL ) ;
gtk_widget_add_accelerator ( button_transfers , " clicked " , accel_group ,
GDK_t , 0 ,
GTK_ACCEL_VISIBLE ) ;
image32 = create_pixmap ( main_window , " transfers.png " ) ;
gtk_widget_show ( image32 ) ;
gtk_container_add ( GTK_CONTAINER ( button_transfers ) , image32 ) ;
vseparator16 = gtk_vseparator_new ( ) ;
gtk_widget_show ( vseparator16 ) ;
gtk_box_pack_start ( GTK_BOX ( hbox1 ) , vseparator16 , FALSE , FALSE , 0 ) ;
2005-06-14 10:02:46 +02:00
gtk_widget_set_size_request ( vseparator16 , 40 , 1 ) ;
2004-12-23 13:58:39 +01:00
button_new_week = gtk_button_new ( ) ;
gtk_widget_show ( button_new_week ) ;
gtk_box_pack_start ( GTK_BOX ( hbox1 ) , button_new_week , FALSE , FALSE , 0 ) ;
gtk_container_set_border_width ( GTK_CONTAINER ( button_new_week ) , 2 ) ;
gtk_tooltips_set_tip ( tooltips , button_new_week , _ ( " Begin a new week (Space) " ) , NULL ) ;
gtk_widget_add_accelerator ( button_new_week , " clicked " , accel_group ,
GDK_space , 0 ,
GTK_ACCEL_VISIBLE ) ;
image23 = create_pixmap ( main_window , " new_week.png " ) ;
gtk_widget_show ( image23 ) ;
gtk_container_add ( GTK_CONTAINER ( button_new_week ) , image23 ) ;
2005-03-03 13:46:48 +01:00
entry_message = gtk_entry_new ( ) ;
gtk_widget_show ( entry_message ) ;
gtk_box_pack_start ( GTK_BOX ( hbox1 ) , entry_message , TRUE , TRUE , 5 ) ;
gtk_editable_set_editable ( GTK_EDITABLE ( entry_message ) , FALSE ) ;
2005-01-09 21:21:22 +01:00
2004-12-23 13:58:39 +01:00
hseparator1 = gtk_hseparator_new ( ) ;
gtk_widget_show ( hseparator1 ) ;
gtk_box_pack_start ( GTK_BOX ( vbox1 ) , hseparator1 , FALSE , FALSE , 0 ) ;
gtk_widget_set_size_request ( hseparator1 , 1 , 10 ) ;
eventbox_main_info = gtk_event_box_new ( ) ;
gtk_widget_show ( eventbox_main_info ) ;
gtk_box_pack_start ( GTK_BOX ( vbox1 ) , eventbox_main_info , FALSE , FALSE , 0 ) ;
hbox18 = gtk_hbox_new ( FALSE , 0 ) ;
gtk_widget_show ( hbox18 ) ;
gtk_container_add ( GTK_CONTAINER ( eventbox_main_info ) , hbox18 ) ;
2005-05-24 20:31:07 +02:00
label_user = gtk_label_new ( " " ) ;
2005-03-03 13:46:48 +01:00
gtk_widget_show ( label_user ) ;
gtk_box_pack_start ( GTK_BOX ( hbox18 ) , label_user , FALSE , FALSE , 0 ) ;
label23 = gtk_label_new ( _ ( " Season " ) ) ;
2004-12-23 13:58:39 +01:00
gtk_widget_show ( label23 ) ;
gtk_box_pack_start ( GTK_BOX ( hbox18 ) , label23 , FALSE , FALSE , 0 ) ;
2005-09-27 14:18:46 +02:00
gtk_label_set_line_wrap ( GTK_LABEL ( label23 ) , TRUE ) ;
2004-12-23 13:58:39 +01:00
gtk_misc_set_padding ( GTK_MISC ( label23 ) , 5 , 0 ) ;
2005-07-15 14:42:57 +02:00
label_season = gtk_label_new ( " " ) ;
2004-12-23 13:58:39 +01:00
gtk_widget_show ( label_season ) ;
gtk_box_pack_start ( GTK_BOX ( hbox18 ) , label_season , FALSE , FALSE , 0 ) ;
label25 = gtk_label_new ( _ ( " Week " ) ) ;
gtk_widget_show ( label25 ) ;
gtk_box_pack_start ( GTK_BOX ( hbox18 ) , label25 , FALSE , FALSE , 0 ) ;
2005-09-27 14:18:46 +02:00
gtk_label_set_line_wrap ( GTK_LABEL ( label25 ) , TRUE ) ;
2004-12-23 13:58:39 +01:00
gtk_misc_set_padding ( GTK_MISC ( label25 ) , 5 , 0 ) ;
2005-07-15 14:42:57 +02:00
label_week = gtk_label_new ( " " ) ;
2004-12-23 13:58:39 +01:00
gtk_widget_show ( label_week ) ;
gtk_box_pack_start ( GTK_BOX ( hbox18 ) , label_week , FALSE , FALSE , 0 ) ;
2005-03-03 13:46:48 +01:00
label13114 = gtk_label_new ( _ ( " Round " ) ) ;
gtk_widget_show ( label13114 ) ;
gtk_box_pack_start ( GTK_BOX ( hbox18 ) , label13114 , FALSE , FALSE , 0 ) ;
2005-09-27 14:18:46 +02:00
gtk_label_set_line_wrap ( GTK_LABEL ( label13114 ) , TRUE ) ;
2005-03-03 13:46:48 +01:00
2005-07-15 14:42:57 +02:00
label_round = gtk_label_new ( " " ) ;
2005-03-03 13:46:48 +01:00
gtk_widget_show ( label_round ) ;
gtk_box_pack_start ( GTK_BOX ( hbox18 ) , label_round , FALSE , FALSE , 0 ) ;
2004-12-23 13:58:39 +01:00
vseparator14 = gtk_vseparator_new ( ) ;
gtk_widget_show ( vseparator14 ) ;
gtk_box_pack_start ( GTK_BOX ( hbox18 ) , vseparator14 , FALSE , FALSE , 0 ) ;
gtk_widget_set_size_request ( vseparator14 , 15 , 1 ) ;
hbox48 = gtk_hbox_new ( FALSE , 0 ) ;
gtk_widget_show ( hbox48 ) ;
gtk_box_pack_start ( GTK_BOX ( hbox18 ) , hbox48 , FALSE , FALSE , 0 ) ;
2005-03-11 18:18:51 +01:00
eventbox_style = gtk_event_box_new ( ) ;
gtk_widget_show ( eventbox_style ) ;
gtk_box_pack_start ( GTK_BOX ( hbox48 ) , eventbox_style , TRUE , TRUE , 0 ) ;
2005-04-10 11:19:38 +02:00
gtk_tooltips_set_tip ( tooltips , eventbox_style , _ ( " Right click and left click to change your playing style " ) , NULL ) ;
2005-03-11 18:18:51 +01:00
image_style = create_pixmap ( main_window , NULL ) ;
gtk_widget_show ( image_style ) ;
gtk_container_add ( GTK_CONTAINER ( eventbox_style ) , image_style ) ;
gtk_misc_set_padding ( GTK_MISC ( image_style ) , 2 , 0 ) ;
eventbox_boost = gtk_event_box_new ( ) ;
gtk_widget_show ( eventbox_boost ) ;
gtk_box_pack_start ( GTK_BOX ( hbox48 ) , eventbox_boost , TRUE , TRUE , 0 ) ;
2005-04-10 11:19:38 +02:00
gtk_tooltips_set_tip ( tooltips , eventbox_boost , _ ( " Right click and left click to change boost state " ) , NULL ) ;
2005-03-11 18:18:51 +01:00
image_boost = create_pixmap ( main_window , NULL ) ;
gtk_widget_show ( image_boost ) ;
gtk_container_add ( GTK_CONTAINER ( eventbox_boost ) , image_boost ) ;
gtk_misc_set_padding ( GTK_MISC ( image_boost ) , 2 , 0 ) ;
2004-12-23 13:58:39 +01:00
eventbox_team_name = gtk_event_box_new ( ) ;
gtk_widget_show ( eventbox_team_name ) ;
gtk_box_pack_start ( GTK_BOX ( hbox48 ) , eventbox_team_name , FALSE , FALSE , 0 ) ;
2005-05-24 20:31:07 +02:00
label_team = gtk_label_new ( " " ) ;
2004-12-23 13:58:39 +01:00
gtk_widget_show ( label_team ) ;
gtk_container_add ( GTK_CONTAINER ( eventbox_team_name ) , label_team ) ;
gtk_misc_set_padding ( GTK_MISC ( label_team ) , 5 , 0 ) ;
2005-05-24 20:31:07 +02:00
label_league = gtk_label_new ( " " ) ;
2004-12-23 13:58:39 +01:00
gtk_widget_show ( label_league ) ;
gtk_box_pack_start ( GTK_BOX ( hbox18 ) , label_league , FALSE , FALSE , 0 ) ;
2005-09-27 14:18:46 +02:00
gtk_label_set_line_wrap ( GTK_LABEL ( label_league ) , TRUE ) ;
2004-12-23 13:58:39 +01:00
gtk_misc_set_padding ( GTK_MISC ( label_league ) , 5 , 0 ) ;
eventbox_rank = gtk_event_box_new ( ) ;
gtk_widget_show ( eventbox_rank ) ;
gtk_box_pack_start ( GTK_BOX ( hbox18 ) , eventbox_rank , FALSE , FALSE , 0 ) ;
hbox49 = gtk_hbox_new ( FALSE , 0 ) ;
gtk_widget_show ( hbox49 ) ;
gtk_container_add ( GTK_CONTAINER ( eventbox_rank ) , hbox49 ) ;
label29 = gtk_label_new ( _ ( " Rank " ) ) ;
gtk_widget_show ( label29 ) ;
gtk_box_pack_start ( GTK_BOX ( hbox49 ) , label29 , FALSE , FALSE , 0 ) ;
2005-09-27 14:18:46 +02:00
gtk_label_set_line_wrap ( GTK_LABEL ( label29 ) , TRUE ) ;
2004-12-23 13:58:39 +01:00
gtk_misc_set_padding ( GTK_MISC ( label29 ) , 5 , 0 ) ;
2005-07-15 14:42:57 +02:00
label_rank = gtk_label_new ( " " ) ;
2004-12-23 13:58:39 +01:00
gtk_widget_show ( label_rank ) ;
gtk_box_pack_start ( GTK_BOX ( hbox49 ) , label_rank , FALSE , FALSE , 0 ) ;
vseparator15 = gtk_vseparator_new ( ) ;
gtk_widget_show ( vseparator15 ) ;
gtk_box_pack_start ( GTK_BOX ( hbox18 ) , vseparator15 , FALSE , TRUE , 0 ) ;
gtk_widget_set_size_request ( vseparator15 , 15 , 1 ) ;
label34 = gtk_label_new ( _ ( " Money " ) ) ;
gtk_widget_show ( label34 ) ;
gtk_box_pack_start ( GTK_BOX ( hbox18 ) , label34 , FALSE , FALSE , 0 ) ;
2005-09-27 14:18:46 +02:00
gtk_label_set_line_wrap ( GTK_LABEL ( label34 ) , TRUE ) ;
2004-12-23 13:58:39 +01:00
gtk_misc_set_padding ( GTK_MISC ( label34 ) , 5 , 0 ) ;
2005-07-15 14:42:57 +02:00
label_money = gtk_label_new ( " " ) ;
2004-12-23 13:58:39 +01:00
gtk_widget_show ( label_money ) ;
gtk_box_pack_start ( GTK_BOX ( hbox18 ) , label_money , FALSE , FALSE , 0 ) ;
vseparator17 = gtk_vseparator_new ( ) ;
gtk_widget_show ( vseparator17 ) ;
gtk_box_pack_start ( GTK_BOX ( hbox18 ) , vseparator17 , FALSE , FALSE , 0 ) ;
gtk_widget_set_size_request ( vseparator17 , 15 , 1 ) ;
eventbox1 = gtk_event_box_new ( ) ;
gtk_widget_show ( eventbox1 ) ;
gtk_box_pack_start ( GTK_BOX ( hbox18 ) , eventbox1 , TRUE , TRUE , 0 ) ;
gtk_tooltips_set_tip ( tooltips , eventbox1 , _ ( " First value: average current skill of the first 11 players. Second value: average skill of all players. " ) , NULL ) ;
hbox50 = gtk_hbox_new ( FALSE , 0 ) ;
gtk_widget_show ( hbox50 ) ;
gtk_container_add ( GTK_CONTAINER ( eventbox1 ) , hbox50 ) ;
label69 = gtk_label_new ( _ ( " Av. skills: " ) ) ;
gtk_widget_show ( label69 ) ;
gtk_box_pack_start ( GTK_BOX ( hbox50 ) , label69 , FALSE , FALSE , 0 ) ;
2005-09-27 14:18:46 +02:00
gtk_label_set_line_wrap ( GTK_LABEL ( label69 ) , TRUE ) ;
2004-12-23 13:58:39 +01:00
2005-05-24 20:31:07 +02:00
label_av_skills = gtk_label_new ( " " ) ;
2005-03-03 13:46:48 +01:00
gtk_widget_show ( label_av_skills ) ;
gtk_box_pack_start ( GTK_BOX ( hbox50 ) , label_av_skills , FALSE , FALSE , 0 ) ;
gtk_misc_set_padding ( GTK_MISC ( label_av_skills ) , 5 , 0 ) ;
2004-12-23 13:58:39 +01:00
hbox7 = gtk_hbox_new ( FALSE , 0 ) ;
gtk_widget_show ( hbox7 ) ;
gtk_box_pack_start ( GTK_BOX ( vbox1 ) , hbox7 , TRUE , TRUE , 0 ) ;
hpaned2 = gtk_hpaned_new ( ) ;
gtk_widget_show ( hpaned2 ) ;
gtk_box_pack_start ( GTK_BOX ( hbox7 ) , hpaned2 , TRUE , TRUE , 3 ) ;
gtk_paned_set_position ( GTK_PANED ( hpaned2 ) , 470 ) ;
vbox3 = gtk_vbox_new ( FALSE , 0 ) ;
gtk_widget_show ( vbox3 ) ;
gtk_paned_pack1 ( GTK_PANED ( hpaned2 ) , vbox3 , FALSE , TRUE ) ;
scrolledwindow2 = gtk_scrolled_window_new ( NULL , NULL ) ;
gtk_widget_show ( scrolledwindow2 ) ;
gtk_box_pack_start ( GTK_BOX ( vbox3 ) , scrolledwindow2 , TRUE , TRUE , 0 ) ;
gtk_container_set_border_width ( GTK_CONTAINER ( scrolledwindow2 ) , 2 ) ;
gtk_scrolled_window_set_policy ( GTK_SCROLLED_WINDOW ( scrolledwindow2 ) , GTK_POLICY_AUTOMATIC , GTK_POLICY_AUTOMATIC ) ;
gtk_scrolled_window_set_shadow_type ( GTK_SCROLLED_WINDOW ( scrolledwindow2 ) , GTK_SHADOW_IN ) ;
viewport1 = gtk_viewport_new ( NULL , NULL ) ;
gtk_widget_show ( viewport1 ) ;
gtk_container_add ( GTK_CONTAINER ( scrolledwindow2 ) , viewport1 ) ;
notebook_player = gtk_notebook_new ( ) ;
gtk_widget_show ( notebook_player ) ;
gtk_container_add ( GTK_CONTAINER ( viewport1 ) , notebook_player ) ;
gtk_notebook_set_show_border ( GTK_NOTEBOOK ( notebook_player ) , FALSE ) ;
2005-01-09 21:21:22 +01:00
player_list1 = gtk_tree_view_new ( ) ;
gtk_widget_show ( player_list1 ) ;
gtk_container_add ( GTK_CONTAINER ( notebook_player ) , player_list1 ) ;
2004-12-23 13:58:39 +01:00
label71 = gtk_label_new ( _ ( " Player list 1 " ) ) ;
gtk_widget_show ( label71 ) ;
gtk_notebook_set_tab_label ( GTK_NOTEBOOK ( notebook_player ) , gtk_notebook_get_nth_page ( GTK_NOTEBOOK ( notebook_player ) , 0 ) , label71 ) ;
player_list2 = gtk_tree_view_new ( ) ;
gtk_widget_show ( player_list2 ) ;
gtk_container_add ( GTK_CONTAINER ( notebook_player ) , player_list2 ) ;
label72 = gtk_label_new ( _ ( " Player list 2 " ) ) ;
gtk_widget_show ( label72 ) ;
gtk_notebook_set_tab_label ( GTK_NOTEBOOK ( notebook_player ) , gtk_notebook_get_nth_page ( GTK_NOTEBOOK ( notebook_player ) , 1 ) , label72 ) ;
2005-04-26 17:00:26 +02:00
button_reset_players = gtk_button_new ( ) ;
gtk_box_pack_start ( GTK_BOX ( vbox3 ) , button_reset_players , FALSE , FALSE , 0 ) ;
gtk_tooltips_set_tip ( tooltips , button_reset_players , _ ( " Reset player list to the formation at the beginning of the live game pause (right click on player list) " ) , NULL ) ;
image298 = gtk_image_new_from_stock ( " gtk-undo " , GTK_ICON_SIZE_BUTTON ) ;
gtk_widget_show ( image298 ) ;
gtk_container_add ( GTK_CONTAINER ( button_reset_players ) , image298 ) ;
2004-12-23 13:58:39 +01:00
2005-01-09 21:21:22 +01:00
vbox8 = gtk_vbox_new ( FALSE , 0 ) ;
gtk_widget_show ( vbox8 ) ;
gtk_paned_pack2 ( GTK_PANED ( hpaned2 ) , vbox8 , TRUE , TRUE ) ;
2004-12-23 13:58:39 +01:00
2005-03-14 18:47:27 +01:00
hbox_14 = gtk_hbox_new ( FALSE , 2 ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_show ( hbox_14 ) ;
2005-03-14 18:47:27 +01:00
gtk_box_pack_start ( GTK_BOX ( vbox8 ) , hbox_14 , FALSE , FALSE , 4 ) ;
button_cl_back = gtk_button_new ( ) ;
gtk_widget_show ( button_cl_back ) ;
gtk_box_pack_start ( GTK_BOX ( hbox_14 ) , button_cl_back , TRUE , TRUE , 0 ) ;
2005-05-15 17:00:15 +02:00
gtk_widget_set_sensitive ( button_cl_back , FALSE ) ;
2005-03-14 18:47:27 +01:00
gtk_tooltips_set_tip ( tooltips , button_cl_back , _ ( " Previous league/cup (1) " ) , NULL ) ;
gtk_widget_add_accelerator ( button_cl_back , " clicked " , accel_group ,
GDK_1 , 0 ,
GTK_ACCEL_VISIBLE ) ;
2004-12-23 13:58:39 +01:00
2005-03-14 18:47:27 +01:00
image215 = gtk_image_new_from_stock ( " gtk-go-back " , GTK_ICON_SIZE_BUTTON ) ;
gtk_widget_show ( image215 ) ;
gtk_container_add ( GTK_CONTAINER ( button_cl_back ) , image215 ) ;
2004-12-23 13:58:39 +01:00
2005-03-14 18:47:27 +01:00
button_cl_forward = gtk_button_new ( ) ;
gtk_widget_show ( button_cl_forward ) ;
gtk_box_pack_start ( GTK_BOX ( hbox_14 ) , button_cl_forward , TRUE , TRUE , 0 ) ;
2005-05-15 17:00:15 +02:00
gtk_widget_set_sensitive ( button_cl_forward , FALSE ) ;
2005-03-14 18:47:27 +01:00
gtk_tooltips_set_tip ( tooltips , button_cl_forward , _ ( " Next league/cup (2) " ) , NULL ) ;
gtk_widget_add_accelerator ( button_cl_forward , " clicked " , accel_group ,
GDK_2 , 0 ,
GTK_ACCEL_VISIBLE ) ;
2004-12-23 13:58:39 +01:00
2005-03-14 18:47:27 +01:00
image216 = gtk_image_new_from_stock ( " gtk-go-forward " , GTK_ICON_SIZE_BUTTON ) ;
gtk_widget_show ( image216 ) ;
gtk_container_add ( GTK_CONTAINER ( button_cl_forward ) , image216 ) ;
2004-12-23 13:58:39 +01:00
2005-03-14 18:47:27 +01:00
button_browse_back = gtk_button_new ( ) ;
gtk_widget_show ( button_browse_back ) ;
gtk_box_pack_start ( GTK_BOX ( hbox_14 ) , button_browse_back , TRUE , TRUE , 0 ) ;
2005-05-15 17:00:15 +02:00
gtk_widget_set_sensitive ( button_browse_back , FALSE ) ;
2005-03-14 18:47:27 +01:00
gtk_tooltips_set_tip ( tooltips , button_browse_back , _ ( " Previous (Q) " ) , NULL ) ;
gtk_widget_add_accelerator ( button_browse_back , " clicked " , accel_group ,
GDK_q , 0 ,
GTK_ACCEL_VISIBLE ) ;
2004-12-23 13:58:39 +01:00
2005-03-14 18:47:27 +01:00
image10 = gtk_image_new_from_stock ( " gtk-go-back " , GTK_ICON_SIZE_BUTTON ) ;
gtk_widget_show ( image10 ) ;
gtk_container_add ( GTK_CONTAINER ( button_browse_back ) , image10 ) ;
2004-12-23 13:58:39 +01:00
2005-01-09 21:21:22 +01:00
button_browse_forward = gtk_button_new ( ) ;
gtk_widget_show ( button_browse_forward ) ;
2005-03-14 18:47:27 +01:00
gtk_box_pack_start ( GTK_BOX ( hbox_14 ) , button_browse_forward , TRUE , TRUE , 0 ) ;
2005-05-15 17:00:15 +02:00
gtk_widget_set_sensitive ( button_browse_forward , FALSE ) ;
2005-01-09 21:21:22 +01:00
gtk_tooltips_set_tip ( tooltips , button_browse_forward , _ ( " Next (W) " ) , NULL ) ;
gtk_widget_add_accelerator ( button_browse_forward , " clicked " , accel_group ,
GDK_w , 0 ,
GTK_ACCEL_VISIBLE ) ;
image9 = gtk_image_new_from_stock ( " gtk-go-forward " , GTK_ICON_SIZE_BUTTON ) ;
gtk_widget_show ( image9 ) ;
gtk_container_add ( GTK_CONTAINER ( button_browse_forward ) , image9 ) ;
2004-12-23 13:58:39 +01:00
2005-01-09 21:21:22 +01:00
scrolledwindow3 = gtk_scrolled_window_new ( NULL , NULL ) ;
gtk_widget_show ( scrolledwindow3 ) ;
gtk_box_pack_start ( GTK_BOX ( vbox8 ) , scrolledwindow3 , TRUE , TRUE , 0 ) ;
gtk_container_set_border_width ( GTK_CONTAINER ( scrolledwindow3 ) , 2 ) ;
gtk_scrolled_window_set_policy ( GTK_SCROLLED_WINDOW ( scrolledwindow3 ) , GTK_POLICY_AUTOMATIC , GTK_POLICY_AUTOMATIC ) ;
gtk_scrolled_window_set_shadow_type ( GTK_SCROLLED_WINDOW ( scrolledwindow3 ) , GTK_SHADOW_IN ) ;
2004-12-23 13:58:39 +01:00
2005-01-09 21:21:22 +01:00
treeview_right = gtk_tree_view_new ( ) ;
gtk_widget_show ( treeview_right ) ;
gtk_container_add ( GTK_CONTAINER ( scrolledwindow3 ) , treeview_right ) ;
gtk_tree_view_set_enable_search ( GTK_TREE_VIEW ( treeview_right ) , FALSE ) ;
2004-12-23 13:58:39 +01:00
g_signal_connect ( ( gpointer ) main_window , " delete_event " ,
G_CALLBACK ( on_button_quit_clicked ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) menu_new , " activate " ,
G_CALLBACK ( on_menu_new_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) menu_open , " activate " ,
G_CALLBACK ( on_menu_open_activate ) ,
NULL ) ;
2005-04-09 21:18:28 +02:00
g_signal_connect ( ( gpointer ) menu_load_last_save , " activate " ,
G_CALLBACK ( on_menu_load_last_save_activate ) ,
NULL ) ;
2004-12-23 13:58:39 +01:00
g_signal_connect ( ( gpointer ) menu_save , " activate " ,
G_CALLBACK ( on_menu_save_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) menu_save_as , " activate " ,
G_CALLBACK ( on_menu_save_as_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) menu_quit , " activate " ,
G_CALLBACK ( on_menu_quit_activate ) ,
NULL ) ;
2005-01-09 21:21:22 +01:00
g_signal_connect ( ( gpointer ) menu_preferences , " activate " ,
G_CALLBACK ( on_menu_preferences_activate ) ,
NULL ) ;
2005-03-24 14:00:01 +01:00
g_signal_connect ( ( gpointer ) menu_job_offers , " button_press_event " ,
G_CALLBACK ( on_menu_check_button_press_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-03-24 14:00:01 +01:00
g_signal_connect ( ( gpointer ) menu_live_game , " button_press_event " ,
G_CALLBACK ( on_menu_check_button_press_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-03-24 14:00:01 +01:00
g_signal_connect ( ( gpointer ) menu_overwrite , " button_press_event " ,
G_CALLBACK ( on_menu_check_button_press_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-09-27 14:18:46 +02:00
g_signal_connect ( ( gpointer ) menu_save_window_geometry , " activate " ,
G_CALLBACK ( on_menu_save_window_geometry_activate ) ,
NULL ) ;
2005-04-15 15:55:59 +02:00
g_signal_connect ( ( gpointer ) menu_fixtures_week , " activate " ,
G_CALLBACK ( on_menu_fixtures_week_activate ) ,
NULL ) ;
2005-01-09 21:21:22 +01:00
g_signal_connect ( ( gpointer ) menu_fixtures , " activate " ,
G_CALLBACK ( on_menu_fixtures_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) menu_tables , " activate " ,
G_CALLBACK ( on_menu_tables_activate ) ,
NULL ) ;
2005-03-15 16:10:57 +01:00
g_signal_connect ( ( gpointer ) menu_my_league_results , " activate " ,
G_CALLBACK ( on_menu_my_league_results_activate ) ,
NULL ) ;
2005-04-29 21:48:02 +02:00
g_signal_connect ( ( gpointer ) menu_league_stats , " activate " ,
G_CALLBACK ( on_menu_league_stats_activate ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
g_signal_connect ( ( gpointer ) menu_season_history , " activate " ,
G_CALLBACK ( on_menu_season_history_activate ) ,
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_all_out_defend , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_defend , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_balanced , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_attack , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_all_out_attack , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_scout_best , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_scout_good , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_scout_average , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_scout_bad , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_physio_best , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_physio_good , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_physio_average , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_physio_bad , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-07-08 11:26:00 +02:00
g_signal_connect ( ( gpointer ) menu_show_youth_academy , " activate " ,
G_CALLBACK ( on_menu_show_youth_academy_activate ) ,
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_yc_best , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-07-08 11:26:00 +02:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_yc_good , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-07-08 11:26:00 +02:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_yc_average , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-07-08 11:26:00 +02:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_yc_bad , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-07-08 11:26:00 +02:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_recruit0 , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-07-14 18:05:10 +02:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_recruit1 , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-07-14 18:05:10 +02:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_recruit2 , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-07-14 18:05:10 +02:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_recruit3 , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-07-14 18:05:10 +02:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_recruit4 , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-07-14 18:05:10 +02:00
NULL ) ;
2005-07-08 11:26:00 +02:00
g_signal_connect ( ( gpointer ) menu_set_investment , " activate " ,
G_CALLBACK ( on_menu_set_investment_activate ) ,
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_boost_on , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-03-09 14:10:28 +01:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_boost_off , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-03-09 14:10:28 +01:00
NULL ) ;
2005-07-15 16:36:23 +02:00
g_signal_connect ( ( gpointer ) menu_boost_anti , " button_release_event " ,
G_CALLBACK ( on_menu_team_button_release_event ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-04-26 17:00:26 +02:00
g_signal_connect ( ( gpointer ) menu_reset_players , " activate " ,
G_CALLBACK ( on_menu_reset_players_activate ) ,
NULL ) ;
2005-03-03 13:46:48 +01:00
g_signal_connect ( ( gpointer ) menu_custom_structure , " activate " ,
G_CALLBACK ( on_menu_custom_structure_activate ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-04-09 21:18:28 +02:00
g_signal_connect ( ( gpointer ) menu_rearrange_team , " activate " ,
G_CALLBACK ( on_menu_rearrange_team_activate ) ,
NULL ) ;
2005-01-09 21:21:22 +01:00
g_signal_connect ( ( gpointer ) menu_browse_teams , " activate " ,
G_CALLBACK ( on_menu_browse_teams_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) menu_show_info , " activate " ,
G_CALLBACK ( on_menu_show_info_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) menu_put_on_transfer_list , " activate " ,
G_CALLBACK ( on_menu_put_on_transfer_list_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) menu_remove_from_transfer_list , " activate " ,
G_CALLBACK ( on_menu_remove_from_transfer_list_activate ) ,
NULL ) ;
2005-03-25 11:54:54 +01:00
g_signal_connect ( ( gpointer ) menu_offer_new_contract , " activate " ,
G_CALLBACK ( on_menu_offer_new_contract_activate ) ,
NULL ) ;
2005-01-09 21:21:22 +01:00
g_signal_connect ( ( gpointer ) menu_fire , " activate " ,
G_CALLBACK ( on_menu_fire_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) menu_shoots_penalties , " activate " ,
G_CALLBACK ( on_menu_shoots_penalties_activate ) ,
NULL ) ;
2005-07-08 11:26:00 +02:00
g_signal_connect ( ( gpointer ) menu_move_to_youth_academy , " activate " ,
G_CALLBACK ( on_menu_move_to_youth_academy_activate ) ,
NULL ) ;
2005-03-27 19:59:57 +02:00
g_signal_connect ( ( gpointer ) menu_browse_players , " activate " ,
G_CALLBACK ( on_menu_browse_players_activate ) ,
NULL ) ;
2005-03-11 18:18:51 +01:00
g_signal_connect ( ( gpointer ) menu_user_show_last_match , " activate " ,
G_CALLBACK ( on_menu_user_show_last_match_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) menu_user_show_last_stats , " activate " ,
G_CALLBACK ( on_menu_user_show_last_stats_activate ) ,
NULL ) ;
2005-06-14 10:02:46 +02:00
g_signal_connect ( ( gpointer ) menu_user_show_coming_matches , " activate " ,
G_CALLBACK ( on_menu_user_show_coming_matches_activate ) ,
NULL ) ;
2005-08-20 21:39:36 +02:00
g_signal_connect ( ( gpointer ) mm_add_last_match , " activate " ,
G_CALLBACK ( on_mm_add_last_match_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) mm_manage_matches , " activate " ,
G_CALLBACK ( on_mm_manage_matches_activate ) ,
NULL ) ;
2005-04-16 09:46:04 +02:00
g_signal_connect ( ( gpointer ) menu_user_show_history , " activate " ,
G_CALLBACK ( on_menu_user_show_history_activate ) ,
NULL ) ;
2005-03-03 13:46:48 +01:00
g_signal_connect ( ( gpointer ) menu_next_user , " activate " ,
G_CALLBACK ( on_menu_next_user_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) menu_previous_user , " activate " ,
G_CALLBACK ( on_menu_previous_user_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) menu_manage_users , " activate " ,
G_CALLBACK ( on_menu_manage_users_activate ) ,
NULL ) ;
2005-03-16 21:48:25 +01:00
g_signal_connect ( ( gpointer ) menu_show_finances , " activate " ,
G_CALLBACK ( on_menu_show_finances_activate ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
2005-03-16 21:48:25 +01:00
g_signal_connect ( ( gpointer ) menu_show_stadium , " activate " ,
G_CALLBACK ( on_menu_show_stadium_activate ) ,
NULL ) ;
2004-12-23 13:58:39 +01:00
g_signal_connect ( ( gpointer ) menu_about , " activate " ,
G_CALLBACK ( on_menu_about_activate ) ,
NULL ) ;
2005-05-22 15:33:24 +02:00
g_signal_connect ( ( gpointer ) menu_contributors , " activate " ,
G_CALLBACK ( on_menu_contributors_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) menu_help , " activate " ,
G_CALLBACK ( on_menu_help_activate ) ,
NULL ) ;
2004-12-23 13:58:39 +01:00
g_signal_connect ( ( gpointer ) button_load , " clicked " ,
G_CALLBACK ( on_button_load_clicked ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) button_save , " clicked " ,
G_CALLBACK ( on_button_save_clicked ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) button_quit , " clicked " ,
G_CALLBACK ( on_button_quit_clicked ) ,
NULL ) ;
2005-05-13 20:20:47 +02:00
g_signal_connect ( ( gpointer ) button_quit , " button_press_event " ,
G_CALLBACK ( on_button_quit_button_press_event ) ,
NULL ) ;
2004-12-23 13:58:39 +01:00
g_signal_connect ( ( gpointer ) button_back_to_main , " clicked " ,
G_CALLBACK ( on_button_back_to_main_clicked ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) button_transfers , " clicked " ,
G_CALLBACK ( on_button_transfers_clicked ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) button_new_week , " clicked " ,
G_CALLBACK ( on_button_new_week_clicked ) ,
NULL ) ;
2005-03-11 18:18:51 +01:00
g_signal_connect ( ( gpointer ) eventbox_style , " button_press_event " ,
G_CALLBACK ( on_eventbox_style_button_press_event ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) eventbox_boost , " button_press_event " ,
G_CALLBACK ( on_eventbox_boost_button_press_event ) ,
NULL ) ;
2005-01-09 21:21:22 +01:00
g_signal_connect ( ( gpointer ) player_list1 , " button_press_event " ,
2005-03-03 13:46:48 +01:00
G_CALLBACK ( on_player_list1_button_press_event ) ,
2004-12-23 13:58:39 +01:00
NULL ) ;
g_signal_connect ( ( gpointer ) player_list2 , " button_press_event " ,
2005-03-19 21:04:08 +01:00
G_CALLBACK ( on_player_list1_button_press_event ) ,
2004-12-23 13:58:39 +01:00
NULL ) ;
2005-04-26 17:00:26 +02:00
g_signal_connect ( ( gpointer ) button_reset_players , " clicked " ,
G_CALLBACK ( on_button_reset_players_clicked ) ,
NULL ) ;
2005-03-14 18:47:27 +01:00
g_signal_connect ( ( gpointer ) button_cl_back , " clicked " ,
G_CALLBACK ( on_button_cl_back_clicked ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) button_cl_forward , " clicked " ,
G_CALLBACK ( on_button_cl_forward_clicked ) ,
2005-01-09 21:21:22 +01:00
NULL ) ;
g_signal_connect ( ( gpointer ) button_browse_back , " clicked " ,
G_CALLBACK ( on_button_browse_back_clicked ) ,
2004-12-23 13:58:39 +01:00
NULL ) ;
2005-03-14 18:47:27 +01:00
g_signal_connect ( ( gpointer ) button_browse_forward , " clicked " ,
G_CALLBACK ( on_button_browse_forward_clicked ) ,
NULL ) ;
2005-01-09 21:21:22 +01:00
g_signal_connect ( ( gpointer ) treeview_right , " button_press_event " ,
G_CALLBACK ( on_treeview_right_button_press_event ) ,
2004-12-23 13:58:39 +01:00
NULL ) ;
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF ( main_window , main_window , " main_window " ) ;
GLADE_HOOKUP_OBJECT ( main_window , vbox1 , " vbox1 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menubar1 , " menubar1 " ) ;
2005-03-03 13:46:48 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_file , " menu_file " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_file_menu , " menu_file_menu " ) ;
2004-12-23 13:58:39 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_new , " menu_new " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_open , " menu_open " ) ;
2005-04-09 21:18:28 +02:00
GLADE_HOOKUP_OBJECT ( main_window , menu_load_last_save , " menu_load_last_save " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1947 , " image1947 " ) ;
2004-12-23 13:58:39 +01:00
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 , trennlinie1 , " trennlinie1 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_quit , " menu_quit " ) ;
2005-03-03 13:46:48 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_options , " menu_options " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_options_menu , " menu_options_menu " ) ;
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_preferences , " menu_preferences " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1948 , " image1948 " ) ;
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT ( main_window , trennlinie7 , " trennlinie7 " ) ;
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_overwrite , " menu_overwrite " ) ;
2005-09-27 14:18:46 +02:00
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 , image1949 , " image1949 " ) ;
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_figures , " menu_figures " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_figures_menu , " menu_figures_menu " ) ;
2005-04-15 15:55:59 +02:00
GLADE_HOOKUP_OBJECT ( main_window , menu_fixtures_week , " menu_fixtures_week " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1950 , " image1950 " ) ;
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_fixtures , " menu_fixtures " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1951 , " image1951 " ) ;
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_tables , " menu_tables " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1952 , " image1952 " ) ;
2005-03-15 16:10:57 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_my_league_results , " menu_my_league_results " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1953 , " image1953 " ) ;
2005-04-29 21:48:02 +02:00
GLADE_HOOKUP_OBJECT ( main_window , trennlinie13 , " trennlinie13 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_league_stats , " menu_league_stats " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1954 , " image1954 " ) ;
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_season_history , " menu_season_history " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1955 , " image1955 " ) ;
2005-01-09 21:21:22 +01:00
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_playing_style , " menu_playing_style " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1956 , " image1956 " ) ;
2005-01-09 21:21:22 +01:00
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_defend , " menu_defend " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_balanced , " menu_balanced " ) ;
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_scout , " menu_scout " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1957 , " image1957 " ) ;
2005-01-09 21:21:22 +01:00
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_good , " menu_scout_good " ) ;
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_physio , " menu_physio " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1958 , " image1958 " ) ;
2005-01-09 21:21:22 +01:00
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_good , " menu_physio_good " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_physio_average , " menu_physio_average " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_physio_bad , " menu_physio_bad " ) ;
2005-07-08 11:26:00 +02:00
GLADE_HOOKUP_OBJECT ( main_window , menu_youth_academy , " menu_youth_academy " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1959 , " image1959 " ) ;
2005-07-08 11:26:00 +02:00
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 , youth_coach1 , " youth_coach1 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , youth_coach1_menu , " youth_coach1_menu " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_yc_best , " menu_yc_best " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_yc_good , " menu_yc_good " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_yc_average , " menu_yc_average " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_yc_bad , " menu_yc_bad " ) ;
2005-07-14 18:05:10 +02:00
GLADE_HOOKUP_OBJECT ( main_window , recruiting_preference1 , " recruiting_preference1 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , recruiting_preference1_menu , " recruiting_preference1_menu " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_recruit0 , " menu_recruit0 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_recruit1 , " menu_recruit1 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_recruit2 , " menu_recruit2 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_recruit3 , " menu_recruit3 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_recruit4 , " menu_recruit4 " ) ;
2005-07-08 11:26:00 +02:00
GLADE_HOOKUP_OBJECT ( main_window , menu_set_investment , " menu_set_investment " ) ;
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_boost , " menu_boost " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1960 , " image1960 " ) ;
2005-03-10 21:59:39 +01:00
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_off , " menu_boost_off " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_boost_anti , " menu_boost_anti " ) ;
2005-04-09 21:18:28 +02:00
GLADE_HOOKUP_OBJECT ( main_window , trennlinie11 , " trennlinie11 " ) ;
2005-04-26 17:00:26 +02:00
GLADE_HOOKUP_OBJECT ( main_window , menu_reset_players , " menu_reset_players " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1961 , " image1961 " ) ;
2005-03-03 13:46:48 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_custom_structure , " menu_custom_structure " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1962 , " image1962 " ) ;
2005-04-09 21:18:28 +02:00
GLADE_HOOKUP_OBJECT ( main_window , menu_rearrange_team , " menu_rearrange_team " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1963 , " image1963 " ) ;
2005-03-03 13:46:48 +01:00
GLADE_HOOKUP_OBJECT ( main_window , trennlinie8 , " trennlinie8 " ) ;
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_browse_teams , " menu_browse_teams " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1964 , " image1964 " ) ;
2005-01-09 21:21:22 +01:00
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_show_info , " menu_show_info " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1965 , " image1965 " ) ;
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_put_on_transfer_list , " menu_put_on_transfer_list " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1966 , " image1966 " ) ;
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_remove_from_transfer_list , " menu_remove_from_transfer_list " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1967 , " image1967 " ) ;
2005-03-25 11:54:54 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_offer_new_contract , " menu_offer_new_contract " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1968 , " image1968 " ) ;
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_fire , " menu_fire " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1969 , " image1969 " ) ;
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_shoots_penalties , " menu_shoots_penalties " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1970 , " image1970 " ) ;
2005-07-08 11:26:00 +02:00
GLADE_HOOKUP_OBJECT ( main_window , menu_move_to_youth_academy , " menu_move_to_youth_academy " ) ;
2005-03-27 19:59:57 +02:00
GLADE_HOOKUP_OBJECT ( main_window , trennlinie10 , " trennlinie10 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_browse_players , " menu_browse_players " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1971 , " image1971 " ) ;
2005-03-03 13:46:48 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_user , " menu_user " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_user_menu , " menu_user_menu " ) ;
2005-03-11 18:18:51 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_user_show_last_match , " menu_user_show_last_match " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1972 , " image1972 " ) ;
2005-03-11 18:18:51 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_user_show_last_stats , " menu_user_show_last_stats " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1973 , " image1973 " ) ;
2005-06-14 10:02:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , menu_user_show_coming_matches , " menu_user_show_coming_matches " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1974 , " image1974 " ) ;
2005-08-20 21:39:36 +02:00
GLADE_HOOKUP_OBJECT ( main_window , memorable_matches , " memorable_matches " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1975 , " image1975 " ) ;
2005-08-20 21:39:36 +02:00
GLADE_HOOKUP_OBJECT ( main_window , memorable_matches_menu , " memorable_matches_menu " ) ;
GLADE_HOOKUP_OBJECT ( main_window , mm_add_last_match , " mm_add_last_match " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1976 , " image1976 " ) ;
2005-08-20 21:39:36 +02:00
GLADE_HOOKUP_OBJECT ( main_window , mm_manage_matches , " mm_manage_matches " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1977 , " image1977 " ) ;
2005-04-16 09:46:04 +02:00
GLADE_HOOKUP_OBJECT ( main_window , trennlinie12 , " trennlinie12 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_user_show_history , " menu_user_show_history " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1978 , " image1978 " ) ;
2005-03-11 18:18:51 +01:00
GLADE_HOOKUP_OBJECT ( main_window , trennlinie9 , " trennlinie9 " ) ;
2005-03-03 13:46:48 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_next_user , " menu_next_user " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1979 , " image1979 " ) ;
2005-03-03 13:46:48 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_previous_user , " menu_previous_user " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1980 , " image1980 " ) ;
2005-03-03 13:46:48 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_manage_users , " menu_manage_users " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1981 , " image1981 " ) ;
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_finances_stadium , " menu_finances_stadium " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_finances_stadium_menu , " menu_finances_stadium_menu " ) ;
2005-03-16 21:48:25 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_show_finances , " menu_show_finances " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1982 , " image1982 " ) ;
2005-03-16 21:48:25 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_show_stadium , " menu_show_stadium " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1983 , " image1983 " ) ;
2005-05-22 15:33:24 +02:00
GLADE_HOOKUP_OBJECT ( main_window , menu_help1 , " menu_help1 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , menu_help1_menu , " menu_help1_menu " ) ;
2004-12-23 13:58:39 +01:00
GLADE_HOOKUP_OBJECT ( main_window , menu_about , " menu_about " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1984 , " image1984 " ) ;
2005-05-22 15:33:24 +02:00
GLADE_HOOKUP_OBJECT ( main_window , menu_contributors , " menu_contributors " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1985 , " image1985 " ) ;
2005-05-22 15:33:24 +02:00
GLADE_HOOKUP_OBJECT ( main_window , menu_help , " menu_help " ) ;
2005-09-27 14:18:46 +02:00
GLADE_HOOKUP_OBJECT ( main_window , image1986 , " image1986 " ) ;
2004-12-23 13:58:39 +01:00
GLADE_HOOKUP_OBJECT ( main_window , hbox1 , " hbox1 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , button_load , " button_load " ) ;
GLADE_HOOKUP_OBJECT ( main_window , image11 , " image11 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , button_save , " button_save " ) ;
GLADE_HOOKUP_OBJECT ( main_window , image12 , " image12 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , button_quit , " button_quit " ) ;
GLADE_HOOKUP_OBJECT ( main_window , image13 , " image13 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , vseparator1 , " vseparator1 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , vseparator11 , " vseparator11 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , button_back_to_main , " button_back_to_main " ) ;
GLADE_HOOKUP_OBJECT ( main_window , image20 , " image20 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , button_transfers , " button_transfers " ) ;
GLADE_HOOKUP_OBJECT ( main_window , image32 , " image32 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , vseparator16 , " vseparator16 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , button_new_week , " button_new_week " ) ;
GLADE_HOOKUP_OBJECT ( main_window , image23 , " image23 " ) ;
2005-03-03 13:46:48 +01:00
GLADE_HOOKUP_OBJECT ( main_window , entry_message , " entry_message " ) ;
2004-12-23 13:58:39 +01:00
GLADE_HOOKUP_OBJECT ( main_window , hseparator1 , " hseparator1 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , eventbox_main_info , " eventbox_main_info " ) ;
GLADE_HOOKUP_OBJECT ( main_window , hbox18 , " hbox18 " ) ;
2005-03-03 13:46:48 +01:00
GLADE_HOOKUP_OBJECT ( main_window , label_user , " label_user " ) ;
2004-12-23 13:58:39 +01:00
GLADE_HOOKUP_OBJECT ( main_window , label23 , " label23 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , label_season , " label_season " ) ;
GLADE_HOOKUP_OBJECT ( main_window , label25 , " label25 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , label_week , " label_week " ) ;
2005-03-03 13:46:48 +01:00
GLADE_HOOKUP_OBJECT ( main_window , label13114 , " label13114 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , label_round , " label_round " ) ;
2004-12-23 13:58:39 +01:00
GLADE_HOOKUP_OBJECT ( main_window , vseparator14 , " vseparator14 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , hbox48 , " hbox48 " ) ;
2005-03-11 18:18:51 +01:00
GLADE_HOOKUP_OBJECT ( main_window , eventbox_style , " eventbox_style " ) ;
GLADE_HOOKUP_OBJECT ( main_window , image_style , " image_style " ) ;
GLADE_HOOKUP_OBJECT ( main_window , eventbox_boost , " eventbox_boost " ) ;
GLADE_HOOKUP_OBJECT ( main_window , image_boost , " image_boost " ) ;
2004-12-23 13:58:39 +01:00
GLADE_HOOKUP_OBJECT ( main_window , eventbox_team_name , " eventbox_team_name " ) ;
GLADE_HOOKUP_OBJECT ( main_window , label_team , " label_team " ) ;
GLADE_HOOKUP_OBJECT ( main_window , label_league , " label_league " ) ;
GLADE_HOOKUP_OBJECT ( main_window , eventbox_rank , " eventbox_rank " ) ;
GLADE_HOOKUP_OBJECT ( main_window , hbox49 , " hbox49 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , label29 , " label29 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , label_rank , " label_rank " ) ;
GLADE_HOOKUP_OBJECT ( main_window , vseparator15 , " vseparator15 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , label34 , " label34 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , label_money , " label_money " ) ;
GLADE_HOOKUP_OBJECT ( main_window , vseparator17 , " vseparator17 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , eventbox1 , " eventbox1 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , hbox50 , " hbox50 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , label69 , " label69 " ) ;
2005-03-03 13:46:48 +01:00
GLADE_HOOKUP_OBJECT ( main_window , label_av_skills , " label_av_skills " ) ;
2004-12-23 13:58:39 +01:00
GLADE_HOOKUP_OBJECT ( main_window , hbox7 , " hbox7 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , hpaned2 , " hpaned2 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , vbox3 , " vbox3 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , scrolledwindow2 , " scrolledwindow2 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , viewport1 , " viewport1 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , notebook_player , " notebook_player " ) ;
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT ( main_window , player_list1 , " player_list1 " ) ;
2004-12-23 13:58:39 +01:00
GLADE_HOOKUP_OBJECT ( main_window , label71 , " label71 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , player_list2 , " player_list2 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , label72 , " label72 " ) ;
2005-04-26 17:00:26 +02:00
GLADE_HOOKUP_OBJECT ( main_window , button_reset_players , " button_reset_players " ) ;
GLADE_HOOKUP_OBJECT ( main_window , image298 , " image298 " ) ;
2004-12-23 13:58:39 +01:00
GLADE_HOOKUP_OBJECT ( main_window , vbox8 , " vbox8 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , hbox_14 , " hbox_14 " ) ;
2005-03-14 18:47:27 +01:00
GLADE_HOOKUP_OBJECT ( main_window , button_cl_back , " button_cl_back " ) ;
GLADE_HOOKUP_OBJECT ( main_window , image215 , " image215 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , button_cl_forward , " button_cl_forward " ) ;
GLADE_HOOKUP_OBJECT ( main_window , image216 , " image216 " ) ;
2004-12-23 13:58:39 +01:00
GLADE_HOOKUP_OBJECT ( main_window , button_browse_back , " button_browse_back " ) ;
GLADE_HOOKUP_OBJECT ( main_window , image10 , " image10 " ) ;
2005-03-14 18:47:27 +01:00
GLADE_HOOKUP_OBJECT ( main_window , button_browse_forward , " button_browse_forward " ) ;
GLADE_HOOKUP_OBJECT ( main_window , image9 , " image9 " ) ;
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT ( main_window , scrolledwindow3 , " scrolledwindow3 " ) ;
GLADE_HOOKUP_OBJECT ( main_window , treeview_right , " treeview_right " ) ;
2004-12-23 13:58:39 +01:00
GLADE_HOOKUP_OBJECT_NO_REF ( main_window , tooltips , " tooltips " ) ;
2005-01-09 21:21:22 +01:00
gtk_widget_grab_focus ( hbox1 ) ;
2004-12-23 13:58:39 +01:00
gtk_window_add_accel_group ( GTK_WINDOW ( main_window ) , accel_group ) ;
return main_window ;
}
2005-03-27 19:59:57 +02:00
GtkWidget *
create_menu_player ( void )
{
GtkWidget * menu_player ;
GtkWidget * player_menu_show_info ;
GtkWidget * player_menu_put_on_transfer_list ;
GtkWidget * player_menu_remove_from_transfer_list ;
GtkWidget * player_menu_offer_new_contract ;
GtkWidget * player_menu_fire ;
GtkWidget * player_menu_shoots_penalties ;
2005-07-08 11:26:00 +02:00
GtkWidget * player_menu_move_to_youth_academy ;
2005-03-27 19:59:57 +02:00
menu_player = gtk_menu_new ( ) ;
player_menu_show_info = gtk_menu_item_new_with_mnemonic ( _ ( " Show info " ) ) ;
gtk_widget_show ( player_menu_show_info ) ;
gtk_container_add ( GTK_CONTAINER ( menu_player ) , player_menu_show_info ) ;
player_menu_put_on_transfer_list = gtk_menu_item_new_with_mnemonic ( _ ( " Put on transfer list " ) ) ;
gtk_widget_show ( player_menu_put_on_transfer_list ) ;
gtk_container_add ( GTK_CONTAINER ( menu_player ) , player_menu_put_on_transfer_list ) ;
player_menu_remove_from_transfer_list = gtk_menu_item_new_with_mnemonic ( _ ( " Remove from transfer list " ) ) ;
gtk_widget_show ( player_menu_remove_from_transfer_list ) ;
gtk_container_add ( GTK_CONTAINER ( menu_player ) , player_menu_remove_from_transfer_list ) ;
player_menu_offer_new_contract = gtk_menu_item_new_with_mnemonic ( _ ( " Offer new contract " ) ) ;
gtk_widget_show ( player_menu_offer_new_contract ) ;
gtk_container_add ( GTK_CONTAINER ( menu_player ) , player_menu_offer_new_contract ) ;
player_menu_fire = gtk_menu_item_new_with_mnemonic ( _ ( " Fire " ) ) ;
gtk_widget_show ( player_menu_fire ) ;
gtk_container_add ( GTK_CONTAINER ( menu_player ) , player_menu_fire ) ;
player_menu_shoots_penalties = gtk_menu_item_new_with_mnemonic ( _ ( " Shoots penalties " ) ) ;
gtk_widget_show ( player_menu_shoots_penalties ) ;
gtk_container_add ( GTK_CONTAINER ( menu_player ) , player_menu_shoots_penalties ) ;
2005-07-08 11:26:00 +02:00
player_menu_move_to_youth_academy = gtk_menu_item_new_with_mnemonic ( _ ( " 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 ) ;
2005-03-27 19:59:57 +02:00
g_signal_connect ( ( gpointer ) player_menu_show_info , " activate " ,
G_CALLBACK ( on_player_menu_show_info_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) player_menu_put_on_transfer_list , " activate " ,
G_CALLBACK ( on_player_menu_put_on_transfer_list_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) player_menu_remove_from_transfer_list , " activate " ,
G_CALLBACK ( on_player_menu_remove_from_transfer_list_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) player_menu_offer_new_contract , " activate " ,
G_CALLBACK ( on_player_menu_offer_new_contract_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) player_menu_fire , " activate " ,
G_CALLBACK ( on_player_menu_fire_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) player_menu_shoots_penalties , " activate " ,
G_CALLBACK ( on_player_menu_shoots_penalties_activate ) ,
NULL ) ;
2005-07-08 11:26:00 +02:00
g_signal_connect ( ( gpointer ) player_menu_move_to_youth_academy , " activate " ,
G_CALLBACK ( on_player_menu_move_to_youth_academy_activate ) ,
NULL ) ;
2005-03-27 19:59:57 +02:00
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF ( menu_player , menu_player , " menu_player " ) ;
GLADE_HOOKUP_OBJECT ( menu_player , player_menu_show_info , " player_menu_show_info " ) ;
GLADE_HOOKUP_OBJECT ( menu_player , player_menu_put_on_transfer_list , " player_menu_put_on_transfer_list " ) ;
GLADE_HOOKUP_OBJECT ( menu_player , player_menu_remove_from_transfer_list , " player_menu_remove_from_transfer_list " ) ;
GLADE_HOOKUP_OBJECT ( menu_player , player_menu_offer_new_contract , " player_menu_offer_new_contract " ) ;
GLADE_HOOKUP_OBJECT ( menu_player , player_menu_fire , " player_menu_fire " ) ;
GLADE_HOOKUP_OBJECT ( menu_player , player_menu_shoots_penalties , " player_menu_shoots_penalties " ) ;
2005-07-08 11:26:00 +02:00
GLADE_HOOKUP_OBJECT ( menu_player , player_menu_move_to_youth_academy , " player_menu_move_to_youth_academy " ) ;
2005-03-27 19:59:57 +02:00
return menu_player ;
}
2005-07-08 11:26:00 +02:00
GtkWidget *
create_menu_youth ( void )
{
GtkWidget * menu_youth ;
GtkWidget * menu_youth_move_to_team ;
GtkWidget * image1420 ;
GtkWidget * menu_youth_kick_out_of_academy ;
GtkWidget * image1421 ;
menu_youth = gtk_menu_new ( ) ;
menu_youth_move_to_team = gtk_image_menu_item_new_with_mnemonic ( _ ( " Move to team " ) ) ;
gtk_widget_show ( menu_youth_move_to_team ) ;
gtk_container_add ( GTK_CONTAINER ( menu_youth ) , menu_youth_move_to_team ) ;
image1420 = gtk_image_new_from_stock ( " gtk-go-back " , GTK_ICON_SIZE_MENU ) ;
gtk_widget_show ( image1420 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_youth_move_to_team ) , image1420 ) ;
menu_youth_kick_out_of_academy = gtk_image_menu_item_new_with_mnemonic ( _ ( " Kick out of academy " ) ) ;
gtk_widget_show ( menu_youth_kick_out_of_academy ) ;
gtk_container_add ( GTK_CONTAINER ( menu_youth ) , menu_youth_kick_out_of_academy ) ;
image1421 = gtk_image_new_from_stock ( " gtk-delete " , GTK_ICON_SIZE_MENU ) ;
gtk_widget_show ( image1421 ) ;
gtk_image_menu_item_set_image ( GTK_IMAGE_MENU_ITEM ( menu_youth_kick_out_of_academy ) , image1421 ) ;
g_signal_connect ( ( gpointer ) menu_youth_move_to_team , " activate " ,
G_CALLBACK ( on_menu_youth_move_to_team_activate ) ,
NULL ) ;
g_signal_connect ( ( gpointer ) menu_youth_kick_out_of_academy , " activate " ,
G_CALLBACK ( on_menu_youth_kick_out_of_academy_activate ) ,
NULL ) ;
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF ( menu_youth , menu_youth , " menu_youth " ) ;
GLADE_HOOKUP_OBJECT ( menu_youth , menu_youth_move_to_team , " menu_youth_move_to_team " ) ;
GLADE_HOOKUP_OBJECT ( menu_youth , image1420 , " image1420 " ) ;
GLADE_HOOKUP_OBJECT ( menu_youth , menu_youth_kick_out_of_academy , " menu_youth_kick_out_of_academy " ) ;
GLADE_HOOKUP_OBJECT ( menu_youth , image1421 , " image1421 " ) ;
return menu_youth ;
}