bygfoot/src/interface.c

1411 lines
64 KiB
C
Raw Normal View History

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;
GtkWidget *menu_file;
GtkWidget *menu_file_menu;
2004-12-23 13:58:39 +01:00
GtkWidget *menu_new;
GtkWidget *menu_open;
GtkWidget *menu_save;
GtkWidget *menu_save_as;
GtkWidget *trennlinie1;
GtkWidget *separatormenuitem1;
GtkWidget *start_editor;
2005-03-17 21:26:01 +01:00
GtkWidget *image227;
2004-12-23 13:58:39 +01:00
GtkWidget *start_update;
2005-03-17 21:26:01 +01:00
GtkWidget *image228;
2004-12-23 13:58:39 +01:00
GtkWidget *trennlinie2;
GtkWidget *menu_quit;
GtkWidget *menu_options;
GtkWidget *menu_options_menu;
2005-01-09 21:21:22 +01:00
GtkWidget *menu_preferences;
2005-03-17 21:26:01 +01:00
GtkWidget *image229;
2005-01-09 21:21:22 +01:00
GtkWidget *trennlinie7;
GtkWidget *menu_notify;
GtkWidget *menu_job_offers;
GtkWidget *menu_live_game;
GtkWidget *menu_overwrite;
GtkWidget *menu_figures;
GtkWidget *menu_figures_menu;
GtkWidget *menu_fixtures;
GtkWidget *menu_tables;
GtkWidget *menu_my_league_results;
2005-01-09 21:21:22 +01:00
GtkWidget *players1;
GtkWidget *menu_season_history;
GtkWidget *menu_team;
GtkWidget *menu_team_menu;
GtkWidget *menu_playing_style;
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;
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;
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;
GtkWidget *menu_boost;
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;
GtkWidget *menu_custom_structure;
GtkWidget *trennlinie8;
2005-01-09 21:21:22 +01:00
GtkWidget *menu_browse_teams;
GtkWidget *menu_player;
GtkWidget *menu_player_menu;
GtkWidget *menu_show_info;
GtkWidget *menu_put_on_transfer_list;
GtkWidget *menu_remove_from_transfer_list;
GtkWidget *menu_fire;
GtkWidget *menu_shoots_penalties;
GtkWidget *menu_user;
GtkWidget *menu_user_menu;
2005-03-11 18:18:51 +01:00
GtkWidget *menu_user_show_last_match;
GtkWidget *menu_user_show_last_stats;
GtkWidget *trennlinie9;
GtkWidget *menu_next_user;
2005-03-17 21:26:01 +01:00
GtkWidget *image230;
GtkWidget *menu_previous_user;
2005-03-17 21:26:01 +01:00
GtkWidget *image231;
GtkWidget *menu_manage_users;
2005-03-17 21:26:01 +01:00
GtkWidget *image232;
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-01-09 21:21:22 +01:00
GtkWidget *menu_get_loan;
GtkWidget *menu_pay_loan;
2005-03-16 21:48:25 +01:00
GtkWidget *menu_show_stadium;
GtkWidget *menu_help;
GtkWidget *menu_help_menu;
2004-12-23 13:58:39 +01:00
GtkWidget *menu_about;
GtkWidget *team_editor_help1;
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 *button_fin_stad;
GtkWidget *image33;
GtkWidget *button_preview;
GtkWidget *image36;
GtkWidget *vseparator16;
GtkWidget *button_new_week;
GtkWidget *image23;
GtkWidget *button_help;
GtkWidget *image39;
GtkWidget *entry_message;
2004-12-23 13:58:39 +01:00
GtkWidget *hseparator1;
GtkWidget *eventbox_main_info;
GtkWidget *hbox18;
GtkWidget *label_user;
2004-12-23 13:58:39 +01:00
GtkWidget *label23;
GtkWidget *label_season;
GtkWidget *label25;
GtkWidget *label_week;
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;
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;
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);
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
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);
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);
gtk_container_add (GTK_CONTAINER (menu_file_menu), menu_open);
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);
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);
gtk_container_add (GTK_CONTAINER (menu_file_menu), menu_save_as);
2004-12-23 13:58:39 +01:00
trennlinie1 = gtk_separator_menu_item_new ();
2004-12-23 13:58:39 +01:00
gtk_widget_show (trennlinie1);
gtk_container_add (GTK_CONTAINER (menu_file_menu), trennlinie1);
2004-12-23 13:58:39 +01:00
gtk_widget_set_sensitive (trennlinie1, FALSE);
separatormenuitem1 = gtk_separator_menu_item_new ();
2004-12-23 13:58:39 +01:00
gtk_widget_show (separatormenuitem1);
gtk_container_add (GTK_CONTAINER (menu_file_menu), separatormenuitem1);
2004-12-23 13:58:39 +01:00
gtk_widget_set_sensitive (separatormenuitem1, FALSE);
start_editor = gtk_image_menu_item_new_with_mnemonic (_("Start Bygfoot Team Editor"));
gtk_widget_show (start_editor);
gtk_container_add (GTK_CONTAINER (menu_file_menu), start_editor);
2004-12-23 13:58:39 +01:00
2005-03-17 21:26:01 +01:00
image227 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_MENU);
gtk_widget_show (image227);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (start_editor), image227);
2004-12-23 13:58:39 +01:00
start_update = gtk_image_menu_item_new_with_mnemonic (_("Start Bygfoot Online Update"));
gtk_widget_show (start_update);
gtk_container_add (GTK_CONTAINER (menu_file_menu), start_update);
2004-12-23 13:58:39 +01:00
2005-03-17 21:26:01 +01:00
image228 = gtk_image_new_from_stock ("gtk-refresh", GTK_ICON_SIZE_MENU);
gtk_widget_show (image228);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (start_update), image228);
2004-12-23 13:58:39 +01:00
trennlinie2 = gtk_separator_menu_item_new ();
2004-12-23 13:58:39 +01:00
gtk_widget_show (trennlinie2);
gtk_container_add (GTK_CONTAINER (menu_file_menu), trennlinie2);
2004-12-23 13:58:39 +01:00
gtk_widget_set_sensitive (trennlinie2, FALSE);
menu_quit = gtk_image_menu_item_new_from_stock ("gtk-quit", accel_group);
gtk_widget_show (menu_quit);
gtk_container_add (GTK_CONTAINER (menu_file_menu), menu_quit);
2005-01-09 21:21:22 +01:00
menu_options = gtk_menu_item_new_with_mnemonic (_("Options"));
gtk_widget_show (menu_options);
gtk_container_add (GTK_CONTAINER (menubar1), menu_options);
2005-01-09 21:21:22 +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);
gtk_container_add (GTK_CONTAINER (menu_options_menu), menu_preferences);
2005-01-09 21:21:22 +01:00
2005-03-17 21:26:01 +01:00
image229 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_MENU);
gtk_widget_show (image229);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_preferences), image229);
2005-01-09 21:21:22 +01:00
trennlinie7 = gtk_separator_menu_item_new ();
2005-01-09 21:21:22 +01:00
gtk_widget_show (trennlinie7);
gtk_container_add (GTK_CONTAINER (menu_options_menu), trennlinie7);
2005-01-09 21:21:22 +01:00
gtk_widget_set_sensitive (trennlinie7, FALSE);
menu_notify = gtk_check_menu_item_new_with_mnemonic (_("Notify"));
gtk_widget_show (menu_notify);
gtk_container_add (GTK_CONTAINER (menu_options_menu), menu_notify);
2005-01-09 21:21:22 +01:00
menu_job_offers = gtk_check_menu_item_new_with_mnemonic (_("Job offers"));
gtk_widget_show (menu_job_offers);
gtk_container_add (GTK_CONTAINER (menu_options_menu), menu_job_offers);
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);
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);
gtk_container_add (GTK_CONTAINER (menu_options_menu), menu_overwrite);
2005-01-09 21:21:22 +01:00
menu_figures = gtk_menu_item_new_with_mnemonic (_("Figures"));
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);
menu_fixtures = gtk_menu_item_new_with_mnemonic (_("My fixtures"));
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
menu_tables = gtk_menu_item_new_with_mnemonic (_("Tables"));
gtk_widget_show (menu_tables);
gtk_container_add (GTK_CONTAINER (menu_figures_menu), menu_tables);
gtk_widget_add_accelerator (menu_tables, "activate", accel_group,
GDK_F5, 0,
GTK_ACCEL_VISIBLE);
menu_my_league_results = gtk_menu_item_new_with_mnemonic (_("My league results"));
gtk_widget_show (menu_my_league_results);
gtk_container_add (GTK_CONTAINER (menu_figures_menu), menu_my_league_results);
2005-01-09 21:21:22 +01:00
players1 = gtk_menu_item_new_with_mnemonic (_("Players"));
gtk_widget_show (players1);
gtk_container_add (GTK_CONTAINER (menu_figures_menu), players1);
menu_season_history = gtk_menu_item_new_with_mnemonic (_("Season history"));
gtk_widget_show (menu_season_history);
gtk_container_add (GTK_CONTAINER (menu_figures_menu), menu_season_history);
menu_team = gtk_menu_item_new_with_mnemonic (_("Team"));
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);
menu_playing_style = gtk_menu_item_new_with_mnemonic (_("Playing style"));
gtk_widget_show (menu_playing_style);
gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_playing_style);
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-03-14 18:47:27 +01: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-03-14 18:47:27 +01: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-03-14 18:47:27 +01: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-03-14 18:47:27 +01: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);
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_all_out_attack), TRUE);
menu_scout = gtk_menu_item_new_with_mnemonic (_("Scout"));
gtk_widget_show (menu_scout);
gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_scout);
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-03-14 18:47:27 +01: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-03-14 18:47:27 +01: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-03-14 18:47:27 +01: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);
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_scout_bad), TRUE);
menu_physio = gtk_menu_item_new_with_mnemonic (_("Physio"));
gtk_widget_show (menu_physio);
gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_physio);
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-03-14 18:47:27 +01: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-03-14 18:47:27 +01: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-03-14 18:47:27 +01: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);
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_physio_bad), TRUE);
2005-03-10 21:59:39 +01:00
menu_boost = gtk_menu_item_new_with_mnemonic (_("Boost"));
gtk_widget_show (menu_boost);
gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_boost);
2005-03-09 14:10:28 +01: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-03-14 18:47:27 +01: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-03-14 18:47:27 +01: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);
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_boost_anti), TRUE);
2005-01-09 21:21:22 +01:00
menu_custom_structure = gtk_menu_item_new_with_mnemonic (_("Enter custom structure"));
gtk_widget_show (menu_custom_structure);
gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_custom_structure);
trennlinie8 = gtk_separator_menu_item_new ();
gtk_widget_show (trennlinie8);
gtk_container_add (GTK_CONTAINER (menu_team_menu), trennlinie8);
gtk_widget_set_sensitive (trennlinie8, FALSE);
2005-01-09 21:21:22 +01:00
menu_browse_teams = gtk_menu_item_new_with_mnemonic (_("Browse teams"));
gtk_widget_show (menu_browse_teams);
gtk_container_add (GTK_CONTAINER (menu_team_menu), menu_browse_teams);
menu_player = gtk_menu_item_new_with_mnemonic (_("Player"));
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);
menu_show_info = gtk_menu_item_new_with_mnemonic (_("Show info"));
gtk_widget_show (menu_show_info);
gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_show_info);
menu_put_on_transfer_list = gtk_menu_item_new_with_mnemonic (_("Put on transfer list"));
gtk_widget_show (menu_put_on_transfer_list);
gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_put_on_transfer_list);
menu_remove_from_transfer_list = gtk_menu_item_new_with_mnemonic (_("Remove from transfer list"));
gtk_widget_show (menu_remove_from_transfer_list);
gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_remove_from_transfer_list);
menu_fire = gtk_menu_item_new_with_mnemonic (_("Fire"));
gtk_widget_show (menu_fire);
gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_fire);
menu_shoots_penalties = gtk_menu_item_new_with_mnemonic (_("Shoots penalties"));
gtk_widget_show (menu_shoots_penalties);
gtk_container_add (GTK_CONTAINER (menu_player_menu), menu_shoots_penalties);
menu_user = gtk_menu_item_new_with_mnemonic (_("User"));
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-03-11 18:18:51 +01:00
menu_user_show_last_match = gtk_menu_item_new_with_mnemonic (_("Show last match"));
gtk_widget_show (menu_user_show_last_match);
gtk_container_add (GTK_CONTAINER (menu_user_menu), menu_user_show_last_match);
menu_user_show_last_stats = gtk_menu_item_new_with_mnemonic (_("Show last match stats"));
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);
trennlinie9 = gtk_separator_menu_item_new ();
gtk_widget_show (trennlinie9);
gtk_container_add (GTK_CONTAINER (menu_user_menu), trennlinie9);
gtk_widget_set_sensitive (trennlinie9, FALSE);
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-03-17 21:26:01 +01:00
image230 = gtk_image_new_from_stock ("gtk-go-forward", GTK_ICON_SIZE_MENU);
gtk_widget_show (image230);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_next_user), image230);
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-03-17 21:26:01 +01:00
image231 = gtk_image_new_from_stock ("gtk-go-back", GTK_ICON_SIZE_MENU);
gtk_widget_show (image231);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_previous_user), image231);
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-03-17 21:26:01 +01:00
image232 = gtk_image_new_from_stock ("gtk-justify-fill", GTK_ICON_SIZE_MENU);
gtk_widget_show (image232);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_manage_users), image232);
2005-01-09 21:21:22 +01:00
menu_finances_stadium = gtk_menu_item_new_with_mnemonic (_("FinStad"));
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-03-16 21:48:25 +01:00
menu_show_finances = gtk_menu_item_new_with_mnemonic (_("Show finances"));
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
menu_get_loan = gtk_menu_item_new_with_mnemonic (_("Get loan"));
gtk_widget_show (menu_get_loan);
gtk_container_add (GTK_CONTAINER (menu_finances_stadium_menu), menu_get_loan);
menu_pay_loan = gtk_menu_item_new_with_mnemonic (_("Pay loan"));
gtk_widget_show (menu_pay_loan);
gtk_container_add (GTK_CONTAINER (menu_finances_stadium_menu), menu_pay_loan);
2004-12-23 13:58:39 +01:00
2005-03-16 21:48:25 +01:00
menu_show_stadium = gtk_menu_item_new_with_mnemonic (_("Show stadium"));
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);
menu_help = gtk_menu_item_new_with_mnemonic (_("_Help"));
gtk_widget_show (menu_help);
gtk_container_add (GTK_CONTAINER (menubar1), menu_help);
2004-12-23 13:58:39 +01:00
menu_help_menu = gtk_menu_new ();
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_help), menu_help_menu);
2004-12-23 13:58:39 +01:00
menu_about = gtk_image_menu_item_new_from_stock ("gtk-dialog-info", accel_group);
gtk_widget_show (menu_about);
gtk_container_add (GTK_CONTAINER (menu_help_menu), menu_about);
2004-12-23 13:58:39 +01:00
team_editor_help1 = gtk_menu_item_new_with_mnemonic (_("Team Editor Help"));
gtk_widget_show (team_editor_help1);
gtk_container_add (GTK_CONTAINER (menu_help_menu), team_editor_help1);
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);
gtk_tooltips_set_tip (tooltips, button_load, _("Load game (L or Ctrl - O)"), NULL);
gtk_widget_add_accelerator (button_load, "clicked", accel_group,
GDK_l, 0,
GTK_ACCEL_VISIBLE);
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);
gtk_tooltips_set_tip (tooltips, button_save, _("Save game (S or Ctrl - S)"), NULL);
gtk_widget_add_accelerator (button_save, "clicked", accel_group,
GDK_s, 0,
GTK_ACCEL_VISIBLE);
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);
button_fin_stad = gtk_button_new ();
gtk_widget_show (button_fin_stad);
gtk_box_pack_start (GTK_BOX (hbox1), button_fin_stad, FALSE, FALSE, 0);
gtk_container_set_border_width (GTK_CONTAINER (button_fin_stad), 2);
gtk_tooltips_set_tip (tooltips, button_fin_stad, _("Finances and stadium (F)"), NULL);
gtk_widget_add_accelerator (button_fin_stad, "clicked", accel_group,
GDK_f, 0,
GTK_ACCEL_VISIBLE);
image33 = create_pixmap (main_window, "fin_stad.png");
gtk_widget_show (image33);
gtk_container_add (GTK_CONTAINER (button_fin_stad), image33);
button_preview = gtk_button_new ();
gtk_widget_show (button_preview);
gtk_box_pack_start (GTK_BOX (hbox1), button_preview, FALSE, FALSE, 0);
gtk_container_set_border_width (GTK_CONTAINER (button_preview), 2);
gtk_tooltips_set_tip (tooltips, button_preview, _("Show my last games and a preview of my next games (P or F1)"), NULL);
gtk_widget_add_accelerator (button_preview, "clicked", accel_group,
GDK_p, 0,
GTK_ACCEL_VISIBLE);
gtk_widget_add_accelerator (button_preview, "clicked", accel_group,
GDK_F1, 0,
GTK_ACCEL_VISIBLE);
image36 = create_pixmap (main_window, "preview.png");
gtk_widget_show (image36);
gtk_container_add (GTK_CONTAINER (button_preview), image36);
vseparator16 = gtk_vseparator_new ();
gtk_widget_show (vseparator16);
gtk_box_pack_start (GTK_BOX (hbox1), vseparator16, FALSE, FALSE, 0);
gtk_widget_set_size_request (vseparator16, 60, 1);
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);
button_help = gtk_button_new ();
gtk_widget_show (button_help);
gtk_box_pack_end (GTK_BOX (hbox1), button_help, FALSE, FALSE, 0);
gtk_container_set_border_width (GTK_CONTAINER (button_help), 2);
gtk_tooltips_set_tip (tooltips, button_help, _("Help (H)"), NULL);
gtk_widget_add_accelerator (button_help, "clicked", accel_group,
GDK_h, 0,
GTK_ACCEL_VISIBLE);
image39 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_BUTTON);
gtk_widget_show (image39);
gtk_container_add (GTK_CONTAINER (button_help), image39);
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);
label_user = gtk_label_new (_("user"));
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);
gtk_misc_set_padding (GTK_MISC (label23), 5, 0);
label_season = gtk_label_new (_("1"));
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);
gtk_misc_set_padding (GTK_MISC (label25), 5, 0);
label_week = gtk_label_new (_("1"));
gtk_widget_show (label_week);
gtk_box_pack_start (GTK_BOX (hbox18), label_week, FALSE, FALSE, 0);
label13114 = gtk_label_new (_(" Round "));
gtk_widget_show (label13114);
gtk_box_pack_start (GTK_BOX (hbox18), label13114, FALSE, FALSE, 0);
label_round = gtk_label_new (_("1"));
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);
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);
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);
label_team = gtk_label_new (_("Arsenal"));
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);
label_league = gtk_label_new (_("Premier Division"));
gtk_widget_show (label_league);
gtk_box_pack_start (GTK_BOX (hbox18), label_league, FALSE, FALSE, 0);
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);
gtk_misc_set_padding (GTK_MISC (label29), 5, 0);
label_rank = gtk_label_new (_("1"));
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);
gtk_misc_set_padding (GTK_MISC (label34), 5, 0);
label_money = gtk_label_new (_("2000"));
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);
label_av_skills = gtk_label_new (_("label70"));
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-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);
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);
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);
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-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) main_window, "destroy_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);
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) start_editor, "activate",
G_CALLBACK (on_start_editor_activate),
NULL);
g_signal_connect ((gpointer) start_update, "activate",
G_CALLBACK (on_start_update_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);
g_signal_connect ((gpointer) menu_notify, "activate",
G_CALLBACK (on_menu_notify_activate),
NULL);
g_signal_connect ((gpointer) menu_job_offers, "activate",
G_CALLBACK (on_menu_job_offers_activate),
NULL);
g_signal_connect ((gpointer) menu_live_game, "activate",
G_CALLBACK (on_menu_live_game_activate),
NULL);
g_signal_connect ((gpointer) menu_overwrite, "activate",
G_CALLBACK (on_menu_overwrite_activate),
NULL);
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);
g_signal_connect ((gpointer) menu_my_league_results, "activate",
G_CALLBACK (on_menu_my_league_results_activate),
NULL);
2005-01-09 21:21:22 +01:00
g_signal_connect ((gpointer) players1, "activate",
G_CALLBACK (on_players1_activate),
NULL);
g_signal_connect ((gpointer) menu_season_history, "activate",
G_CALLBACK (on_menu_season_history_activate),
NULL);
g_signal_connect ((gpointer) menu_all_out_defend, "button_press_event",
G_CALLBACK (on_menu_team_button_press_event),
2005-01-09 21:21:22 +01:00
NULL);
g_signal_connect ((gpointer) menu_defend, "button_press_event",
G_CALLBACK (on_menu_team_button_press_event),
2005-01-09 21:21:22 +01:00
NULL);
g_signal_connect ((gpointer) menu_balanced, "button_press_event",
G_CALLBACK (on_menu_team_button_press_event),
2005-01-09 21:21:22 +01:00
NULL);
g_signal_connect ((gpointer) menu_attack, "button_press_event",
G_CALLBACK (on_menu_team_button_press_event),
2005-01-09 21:21:22 +01:00
NULL);
g_signal_connect ((gpointer) menu_all_out_attack, "button_press_event",
G_CALLBACK (on_menu_team_button_press_event),
2005-01-09 21:21:22 +01:00
NULL);
g_signal_connect ((gpointer) menu_scout_best, "button_press_event",
G_CALLBACK (on_menu_team_button_press_event),
2005-01-09 21:21:22 +01:00
NULL);
g_signal_connect ((gpointer) menu_scout_good, "button_press_event",
G_CALLBACK (on_menu_team_button_press_event),
2005-01-09 21:21:22 +01:00
NULL);
g_signal_connect ((gpointer) menu_scout_average, "button_press_event",
G_CALLBACK (on_menu_team_button_press_event),
2005-01-09 21:21:22 +01:00
NULL);
g_signal_connect ((gpointer) menu_scout_bad, "button_press_event",
G_CALLBACK (on_menu_team_button_press_event),
2005-01-09 21:21:22 +01:00
NULL);
g_signal_connect ((gpointer) menu_physio_best, "button_press_event",
G_CALLBACK (on_menu_team_button_press_event),
2005-01-09 21:21:22 +01:00
NULL);
g_signal_connect ((gpointer) menu_physio_good, "button_press_event",
G_CALLBACK (on_menu_team_button_press_event),
2005-01-09 21:21:22 +01:00
NULL);
g_signal_connect ((gpointer) menu_physio_average, "button_press_event",
G_CALLBACK (on_menu_team_button_press_event),
2005-01-09 21:21:22 +01:00
NULL);
g_signal_connect ((gpointer) menu_physio_bad, "button_press_event",
G_CALLBACK (on_menu_team_button_press_event),
2005-01-09 21:21:22 +01:00
NULL);
2005-03-10 21:59:39 +01:00
g_signal_connect ((gpointer) menu_boost_on, "button_press_event",
2005-03-09 14:10:28 +01:00
G_CALLBACK (on_menu_team_button_press_event),
NULL);
2005-03-10 21:59:39 +01:00
g_signal_connect ((gpointer) menu_boost_off, "button_press_event",
2005-03-09 14:10:28 +01:00
G_CALLBACK (on_menu_team_button_press_event),
NULL);
2005-03-10 21:59:39 +01:00
g_signal_connect ((gpointer) menu_boost_anti, "button_press_event",
G_CALLBACK (on_menu_team_button_press_event),
2005-01-09 21:21:22 +01:00
NULL);
g_signal_connect ((gpointer) menu_custom_structure, "activate",
G_CALLBACK (on_menu_custom_structure_activate),
2005-01-09 21:21:22 +01:00
NULL);
g_signal_connect ((gpointer) menu_browse_teams, "activate",
G_CALLBACK (on_menu_browse_teams_activate),
NULL);
g_signal_connect ((gpointer) menu_player, "activate",
G_CALLBACK (on_menu_player_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);
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-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);
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);
g_signal_connect ((gpointer) menu_get_loan, "activate",
G_CALLBACK (on_menu_get_loan_activate),
NULL);
g_signal_connect ((gpointer) menu_pay_loan, "activate",
G_CALLBACK (on_menu_pay_loan_activate),
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);
g_signal_connect ((gpointer) team_editor_help1, "activate",
G_CALLBACK (on_menu_team_editor_help_activate),
NULL);
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);
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_fin_stad, "clicked",
G_CALLBACK (on_button_fin_stad_clicked),
NULL);
g_signal_connect ((gpointer) button_preview, "clicked",
G_CALLBACK (on_button_preview_clicked),
NULL);
g_signal_connect ((gpointer) button_new_week, "clicked",
G_CALLBACK (on_button_new_week_clicked),
NULL);
g_signal_connect ((gpointer) button_help, "clicked",
G_CALLBACK (on_button_help_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",
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",
G_CALLBACK (on_player_list2_button_press_event),
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");
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");
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, separatormenuitem1, "separatormenuitem1");
GLADE_HOOKUP_OBJECT (main_window, start_editor, "start_editor");
2005-03-17 21:26:01 +01:00
GLADE_HOOKUP_OBJECT (main_window, image227, "image227");
2004-12-23 13:58:39 +01:00
GLADE_HOOKUP_OBJECT (main_window, start_update, "start_update");
2005-03-17 21:26:01 +01:00
GLADE_HOOKUP_OBJECT (main_window, image228, "image228");
2004-12-23 13:58:39 +01:00
GLADE_HOOKUP_OBJECT (main_window, trennlinie2, "trennlinie2");
GLADE_HOOKUP_OBJECT (main_window, menu_quit, "menu_quit");
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-03-17 21:26:01 +01:00
GLADE_HOOKUP_OBJECT (main_window, image229, "image229");
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT (main_window, trennlinie7, "trennlinie7");
GLADE_HOOKUP_OBJECT (main_window, menu_notify, "menu_notify");
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");
GLADE_HOOKUP_OBJECT (main_window, menu_figures, "menu_figures");
GLADE_HOOKUP_OBJECT (main_window, menu_figures_menu, "menu_figures_menu");
GLADE_HOOKUP_OBJECT (main_window, menu_fixtures, "menu_fixtures");
GLADE_HOOKUP_OBJECT (main_window, menu_tables, "menu_tables");
GLADE_HOOKUP_OBJECT (main_window, menu_my_league_results, "menu_my_league_results");
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT (main_window, players1, "players1");
GLADE_HOOKUP_OBJECT (main_window, menu_season_history, "menu_season_history");
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");
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");
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");
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");
GLADE_HOOKUP_OBJECT (main_window, menu_boost, "menu_boost");
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");
GLADE_HOOKUP_OBJECT (main_window, menu_custom_structure, "menu_custom_structure");
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");
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");
GLADE_HOOKUP_OBJECT (main_window, menu_put_on_transfer_list, "menu_put_on_transfer_list");
GLADE_HOOKUP_OBJECT (main_window, menu_remove_from_transfer_list, "menu_remove_from_transfer_list");
GLADE_HOOKUP_OBJECT (main_window, menu_fire, "menu_fire");
GLADE_HOOKUP_OBJECT (main_window, menu_shoots_penalties, "menu_shoots_penalties");
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");
GLADE_HOOKUP_OBJECT (main_window, menu_user_show_last_stats, "menu_user_show_last_stats");
GLADE_HOOKUP_OBJECT (main_window, trennlinie9, "trennlinie9");
GLADE_HOOKUP_OBJECT (main_window, menu_next_user, "menu_next_user");
2005-03-17 21:26:01 +01:00
GLADE_HOOKUP_OBJECT (main_window, image230, "image230");
GLADE_HOOKUP_OBJECT (main_window, menu_previous_user, "menu_previous_user");
2005-03-17 21:26:01 +01:00
GLADE_HOOKUP_OBJECT (main_window, image231, "image231");
GLADE_HOOKUP_OBJECT (main_window, menu_manage_users, "menu_manage_users");
2005-03-17 21:26:01 +01:00
GLADE_HOOKUP_OBJECT (main_window, image232, "image232");
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-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT (main_window, menu_get_loan, "menu_get_loan");
GLADE_HOOKUP_OBJECT (main_window, menu_pay_loan, "menu_pay_loan");
2005-03-16 21:48:25 +01:00
GLADE_HOOKUP_OBJECT (main_window, menu_show_stadium, "menu_show_stadium");
GLADE_HOOKUP_OBJECT (main_window, menu_help, "menu_help");
GLADE_HOOKUP_OBJECT (main_window, menu_help_menu, "menu_help_menu");
2004-12-23 13:58:39 +01:00
GLADE_HOOKUP_OBJECT (main_window, menu_about, "menu_about");
GLADE_HOOKUP_OBJECT (main_window, team_editor_help1, "team_editor_help1");
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, button_fin_stad, "button_fin_stad");
GLADE_HOOKUP_OBJECT (main_window, image33, "image33");
GLADE_HOOKUP_OBJECT (main_window, button_preview, "button_preview");
GLADE_HOOKUP_OBJECT (main_window, image36, "image36");
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");
GLADE_HOOKUP_OBJECT (main_window, button_help, "button_help");
GLADE_HOOKUP_OBJECT (main_window, image39, "image39");
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");
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");
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");
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");
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;
}