bygfoot/src/interface.c

1684 lines
78 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;
2005-04-09 21:18:28 +02:00
GtkWidget *menu_load_last_save;
2005-06-09 09:33:57 +02:00
GtkWidget *image415;
2004-12-23 13:58:39 +01:00
GtkWidget *menu_save;
GtkWidget *menu_save_as;
GtkWidget *trennlinie1;
GtkWidget *menu_quit;
GtkWidget *menu_options;
GtkWidget *menu_options_menu;
2005-01-09 21:21:22 +01:00
GtkWidget *menu_preferences;
2005-06-09 09:33:57 +02:00
GtkWidget *image416;
2005-01-09 21:21:22 +01:00
GtkWidget *trennlinie7;
GtkWidget *menu_job_offers;
GtkWidget *menu_live_game;
GtkWidget *menu_overwrite;
GtkWidget *menu_figures;
GtkWidget *menu_figures_menu;
GtkWidget *menu_fixtures_week;
2005-06-09 09:33:57 +02:00
GtkWidget *image417;
2005-01-09 21:21:22 +01:00
GtkWidget *menu_fixtures;
2005-06-09 09:33:57 +02:00
GtkWidget *image418;
2005-01-09 21:21:22 +01:00
GtkWidget *menu_tables;
2005-06-09 09:33:57 +02:00
GtkWidget *image419;
GtkWidget *menu_my_league_results;
2005-06-09 09:33:57 +02:00
GtkWidget *image420;
2005-04-29 21:48:02 +02:00
GtkWidget *trennlinie13;
GtkWidget *menu_league_stats;
2005-06-09 09:33:57 +02:00
GtkWidget *image421;
2005-01-09 21:21:22 +01:00
GtkWidget *menu_season_history;
2005-06-09 09:33:57 +02:00
GtkWidget *image422;
2005-01-09 21:21:22 +01:00
GtkWidget *menu_team;
GtkWidget *menu_team_menu;
GtkWidget *menu_playing_style;
2005-06-09 09:33:57 +02:00
GtkWidget *image423;
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-06-09 09:33:57 +02:00
GtkWidget *image424;
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-06-09 09:33:57 +02:00
GtkWidget *image425;
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;
GtkWidget *menu_boost;
2005-06-09 09:33:57 +02:00
GtkWidget *image426;
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-06-09 09:33:57 +02:00
GtkWidget *image427;
GtkWidget *menu_custom_structure;
2005-06-09 09:33:57 +02:00
GtkWidget *image428;
2005-04-09 21:18:28 +02:00
GtkWidget *menu_rearrange_team;
2005-06-09 09:33:57 +02:00
GtkWidget *image429;
GtkWidget *trennlinie8;
2005-01-09 21:21:22 +01:00
GtkWidget *menu_browse_teams;
2005-06-09 09:33:57 +02:00
GtkWidget *image430;
2005-01-09 21:21:22 +01:00
GtkWidget *menu_player;
GtkWidget *menu_player_menu;
GtkWidget *menu_show_info;
2005-06-09 09:33:57 +02:00
GtkWidget *image431;
2005-01-09 21:21:22 +01:00
GtkWidget *menu_put_on_transfer_list;
2005-06-09 09:33:57 +02:00
GtkWidget *image432;
2005-01-09 21:21:22 +01:00
GtkWidget *menu_remove_from_transfer_list;
2005-06-09 09:33:57 +02:00
GtkWidget *image433;
2005-03-25 11:54:54 +01:00
GtkWidget *menu_offer_new_contract;
2005-06-09 09:33:57 +02:00
GtkWidget *image434;
2005-01-09 21:21:22 +01:00
GtkWidget *menu_fire;
2005-06-09 09:33:57 +02:00
GtkWidget *image435;
2005-01-09 21:21:22 +01:00
GtkWidget *menu_shoots_penalties;
2005-06-09 09:33:57 +02:00
GtkWidget *image436;
2005-03-27 19:59:57 +02:00
GtkWidget *trennlinie10;
GtkWidget *menu_browse_players;
2005-06-09 09:33:57 +02:00
GtkWidget *image437;
GtkWidget *menu_user;
GtkWidget *menu_user_menu;
2005-03-11 18:18:51 +01:00
GtkWidget *menu_user_show_last_match;
2005-06-09 09:33:57 +02:00
GtkWidget *image438;
2005-03-11 18:18:51 +01:00
GtkWidget *menu_user_show_last_stats;
2005-04-16 09:46:04 +02:00
GtkWidget *trennlinie12;
GtkWidget *menu_user_show_history;
2005-06-09 09:33:57 +02:00
GtkWidget *image439;
2005-03-11 18:18:51 +01:00
GtkWidget *trennlinie9;
GtkWidget *menu_next_user;
2005-06-09 09:33:57 +02:00
GtkWidget *image440;
GtkWidget *menu_previous_user;
2005-06-09 09:33:57 +02:00
GtkWidget *image441;
GtkWidget *menu_manage_users;
2005-06-09 09:33:57 +02:00
GtkWidget *image442;
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-06-09 09:33:57 +02:00
GtkWidget *image443;
2005-03-16 21:48:25 +01:00
GtkWidget *menu_show_stadium;
2005-06-09 09:33:57 +02:00
GtkWidget *image444;
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-06-09 09:33:57 +02:00
GtkWidget *image445;
2005-05-22 15:33:24 +02:00
GtkWidget *menu_contributors;
2005-06-09 09:33:57 +02:00
GtkWidget *image446;
2005-05-22 15:33:24 +02:00
GtkWidget *menu_help;
2005-06-09 09:33:57 +02:00
GtkWidget *image447;
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 *button_preview;
GtkWidget *image36;
GtkWidget *vseparator16;
GtkWidget *button_new_week;
GtkWidget *image23;
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;
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);
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
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-06-09 09:33:57 +02:00
image415 = gtk_image_new_from_stock ("gtk-revert-to-saved", GTK_ICON_SIZE_MENU);
gtk_widget_show (image415);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_load_last_save), image415);
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);
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
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);
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);
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"));
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-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-06-09 09:33:57 +02:00
image416 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_MENU);
gtk_widget_show (image416);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_preferences), image416);
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);
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);
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);
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-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-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)"));
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-06-09 09:33:57 +02:00
image417 = create_pixmap (main_window, "menu_fixtures.png");
gtk_widget_show (image417);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_fixtures_week), image417);
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-06-09 09:33:57 +02:00
image418 = create_pixmap (main_window, "menu_fixtures.png");
gtk_widget_show (image418);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_fixtures), image418);
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);
gtk_widget_add_accelerator (menu_tables, "activate", accel_group,
GDK_F5, 0,
GTK_ACCEL_VISIBLE);
2005-06-09 09:33:57 +02:00
image419 = create_pixmap (main_window, "menu_table.png");
gtk_widget_show (image419);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_tables), image419);
2005-06-04 15:21:45 +02:00
menu_my_league_results = gtk_image_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-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-06-09 09:33:57 +02:00
image420 = create_pixmap (main_window, "menu_league_results.png");
gtk_widget_show (image420);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_my_league_results), image420);
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-06-09 09:33:57 +02:00
image421 = create_pixmap (main_window, "menu_league_stats.png");
gtk_widget_show (image421);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_league_stats), image421);
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-06-09 09:33:57 +02:00
image422 = create_pixmap (main_window, "menu_history.png");
gtk_widget_show (image422);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_season_history), image422);
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-06-09 09:33:57 +02:00
image423 = create_pixmap (main_window, "menu_style.png");
gtk_widget_show (image423);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_playing_style), image423);
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-05-24 20:31:07 +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-05-24 20:31:07 +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-05-24 20:31:07 +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-05-24 20:31:07 +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);
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_all_out_attack), TRUE);
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-06-09 09:33:57 +02:00
image424 = create_pixmap (main_window, "menu_scout.png");
gtk_widget_show (image424);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_scout), image424);
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-05-24 20:31:07 +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-05-24 20:31:07 +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-05-24 20:31:07 +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);
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_scout_bad), TRUE);
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-06-09 09:33:57 +02:00
image425 = create_pixmap (main_window, "menu_physio.png");
gtk_widget_show (image425);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_physio), image425);
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-05-24 20:31:07 +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-05-24 20:31:07 +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-05-24 20:31:07 +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);
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_physio_bad), TRUE);
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-06-09 09:33:57 +02:00
image426 = create_pixmap (main_window, "menu_boost.png");
gtk_widget_show (image426);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_boost), image426);
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-05-24 20:31:07 +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-05-24 20:31:07 +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);
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-06-09 09:33:57 +02:00
image427 = gtk_image_new_from_stock ("gtk-undo", GTK_ICON_SIZE_MENU);
gtk_widget_show (image427);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_reset_players), image427);
2005-06-04 15:21:45 +02:00
menu_custom_structure = gtk_image_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);
2005-06-09 09:33:57 +02:00
image428 = create_pixmap (main_window, "menu_structure.png");
gtk_widget_show (image428);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_custom_structure), image428);
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-06-09 09:33:57 +02:00
image429 = create_pixmap (main_window, "menu_rearrange.png");
gtk_widget_show (image429);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_rearrange_team), image429);
2005-06-04 15:21:45 +02:00
2005-04-26 17:00:26 +02:00
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-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-06-09 09:33:57 +02:00
image430 = create_pixmap (main_window, "menu_browse_tms.png");
gtk_widget_show (image430);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_browse_teams), image430);
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-06-09 09:33:57 +02:00
image431 = create_pixmap (main_window, "menu_player_info.png");
gtk_widget_show (image431);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_show_info), image431);
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-06-09 09:33:57 +02:00
image432 = create_pixmap (main_window, "menu_player_put_transfer.png");
gtk_widget_show (image432);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_put_on_transfer_list), image432);
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-06-09 09:33:57 +02:00
image433 = create_pixmap (main_window, "menu_player_remove_transfer.png");
gtk_widget_show (image433);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_remove_from_transfer_list), image433);
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-06-09 09:33:57 +02:00
image434 = create_pixmap (main_window, "menu_player_contract.png");
gtk_widget_show (image434);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_offer_new_contract), image434);
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-06-09 09:33:57 +02:00
image435 = create_pixmap (main_window, "menu_player_fire.png");
gtk_widget_show (image435);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_fire), image435);
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-06-09 09:33:57 +02:00
image436 = create_pixmap (main_window, "menu_player_shoots.png");
gtk_widget_show (image436);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_shoots_penalties), image436);
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-06-09 09:33:57 +02:00
image437 = create_pixmap (main_window, "menu_player_browse.png");
gtk_widget_show (image437);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_browse_players), image437);
2005-05-02 17:14:41 +02:00
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-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,
GDK_m, GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE);
2005-03-11 18:18:51 +01:00
2005-06-09 09:33:57 +02:00
image438 = create_pixmap (main_window, "menu_last_match.png");
gtk_widget_show (image438);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_user_show_last_match), image438);
2005-03-11 18:18:51 +01:00
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);
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-06-09 09:33:57 +02:00
image439 = create_pixmap (main_window, "menu_history.png");
gtk_widget_show (image439);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_user_show_history), image439);
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);
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-06-09 09:33:57 +02:00
image440 = gtk_image_new_from_stock ("gtk-go-forward", GTK_ICON_SIZE_MENU);
gtk_widget_show (image440);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_next_user), image440);
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-06-09 09:33:57 +02:00
image441 = gtk_image_new_from_stock ("gtk-go-back", GTK_ICON_SIZE_MENU);
gtk_widget_show (image441);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_previous_user), image441);
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-06-09 09:33:57 +02:00
image442 = gtk_image_new_from_stock ("gtk-justify-fill", GTK_ICON_SIZE_MENU);
gtk_widget_show (image442);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_manage_users), image442);
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-06-09 09:33:57 +02:00
image443 = create_pixmap (main_window, "menu_finances.png");
gtk_widget_show (image443);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_show_finances), image443);
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-06-09 09:33:57 +02:00
image444 = create_pixmap (main_window, "menu_stadium.png");
gtk_widget_show (image444);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_show_stadium), image444);
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-06-09 09:33:57 +02:00
image445 = gtk_image_new_from_stock ("gtk-dialog-info", GTK_ICON_SIZE_MENU);
gtk_widget_show (image445);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_about), image445);
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-06-09 09:33:57 +02:00
image446 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_MENU);
gtk_widget_show (image446);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_contributors), image446);
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-06-09 09:33:57 +02:00
image447 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_MENU);
gtk_widget_show (image447);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_help), image447);
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);
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);
2005-05-16 09:09:53 +02:00
gtk_tooltips_set_tip (tooltips, button_preview, _("Show a preview of my next games (F1)"), NULL);
2004-12-23 13:58:39 +01:00
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);
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 ("");
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);
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);
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);
2005-05-24 20:31:07 +02:00
label_av_skills = gtk_label_new ("");
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) 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);
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);
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);
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);
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);
2005-04-26 17:00:26 +02:00
g_signal_connect ((gpointer) menu_reset_players, "activate",
G_CALLBACK (on_menu_reset_players_activate),
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);
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-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-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);
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_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);
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",
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");
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-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image415, "image415");
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");
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-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image416, "image416");
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");
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_week, "menu_fixtures_week");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image417, "image417");
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT (main_window, menu_fixtures, "menu_fixtures");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image418, "image418");
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT (main_window, menu_tables, "menu_tables");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image419, "image419");
GLADE_HOOKUP_OBJECT (main_window, menu_my_league_results, "menu_my_league_results");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image420, "image420");
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-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image421, "image421");
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT (main_window, menu_season_history, "menu_season_history");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image422, "image422");
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-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image423, "image423");
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-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image424, "image424");
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-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image425, "image425");
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");
GLADE_HOOKUP_OBJECT (main_window, menu_boost, "menu_boost");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image426, "image426");
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-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image427, "image427");
GLADE_HOOKUP_OBJECT (main_window, menu_custom_structure, "menu_custom_structure");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image428, "image428");
2005-04-09 21:18:28 +02:00
GLADE_HOOKUP_OBJECT (main_window, menu_rearrange_team, "menu_rearrange_team");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image429, "image429");
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-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image430, "image430");
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-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image431, "image431");
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT (main_window, menu_put_on_transfer_list, "menu_put_on_transfer_list");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image432, "image432");
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT (main_window, menu_remove_from_transfer_list, "menu_remove_from_transfer_list");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image433, "image433");
2005-03-25 11:54:54 +01:00
GLADE_HOOKUP_OBJECT (main_window, menu_offer_new_contract, "menu_offer_new_contract");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image434, "image434");
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT (main_window, menu_fire, "menu_fire");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image435, "image435");
2005-01-09 21:21:22 +01:00
GLADE_HOOKUP_OBJECT (main_window, menu_shoots_penalties, "menu_shoots_penalties");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image436, "image436");
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-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image437, "image437");
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-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image438, "image438");
2005-03-11 18:18:51 +01:00
GLADE_HOOKUP_OBJECT (main_window, menu_user_show_last_stats, "menu_user_show_last_stats");
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-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image439, "image439");
2005-03-11 18:18:51 +01:00
GLADE_HOOKUP_OBJECT (main_window, trennlinie9, "trennlinie9");
GLADE_HOOKUP_OBJECT (main_window, menu_next_user, "menu_next_user");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image440, "image440");
GLADE_HOOKUP_OBJECT (main_window, menu_previous_user, "menu_previous_user");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image441, "image441");
GLADE_HOOKUP_OBJECT (main_window, menu_manage_users, "menu_manage_users");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image442, "image442");
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-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image443, "image443");
2005-03-16 21:48:25 +01:00
GLADE_HOOKUP_OBJECT (main_window, menu_show_stadium, "menu_show_stadium");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image444, "image444");
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-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image445, "image445");
2005-05-22 15:33:24 +02:00
GLADE_HOOKUP_OBJECT (main_window, menu_contributors, "menu_contributors");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image446, "image446");
2005-05-22 15:33:24 +02:00
GLADE_HOOKUP_OBJECT (main_window, menu_help, "menu_help");
2005-06-09 09:33:57 +02:00
GLADE_HOOKUP_OBJECT (main_window, image447, "image447");
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, 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, 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");
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;
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);
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);
/* 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");
return menu_player;
}