Added left click action in tables and fixtures view.

This commit is contained in:
gyboth 2008-11-24 17:34:18 +00:00
parent 43cad935c9
commit cd652289d3
4 changed files with 32 additions and 6 deletions

View File

@ -1,9 +1,12 @@
06/12/2008: v2.3.1
- updated Chinese translations
- updated Romanian translation
- added Multiple tables for leagues feature
- added possibility for multiple tables in leagues (think
apertura/clausura in south america)
- added joined leagues feature (think conferences in US sports)
- Solved some minor bugs
- solved some minor bugs
- added clicking in tables and fixtures mode (switches to the
other view, respectively)
06/11/2008: v2.3.0
- added flag for Montenegro (thanks to Mihai Floran)

View File

@ -288,7 +288,7 @@ callback_show_tables(gint type)
gint clid = -1;
if(type == SHOW_CURRENT)
clid = team_get_table_clid(current_user.tm);
clid = stat1;
else if(type == SHOW_NEXT_LEAGUE)
clid = league_cup_get_next_clid(stat1, FALSE);
else if(type == SHOW_PREVIOUS_LEAGUE)

View File

@ -401,6 +401,9 @@ void
on_menu_fixtures_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
game_gui_print_message(
_("Left click to show table."));
stat0 = STATUS_SHOW_FIXTURES;
callback_show_fixtures(SHOW_TEAM);
@ -430,7 +433,11 @@ on_menu_tables_activate (GtkMenuItem *menuitem,
return;
}
game_gui_print_message(
_("Left click to show fixtures."));
stat0 = STATUS_SHOW_TABLES;
stat1 = team_get_table_clid(current_user.tm);
callback_show_tables(SHOW_CURRENT);
gui_set_arrows();
@ -702,8 +709,24 @@ on_treeview_right_button_press_event (GtkWidget *widget,
setsav0;
}
break;
}
case STATUS_SHOW_TABLES:
stat0 = STATUS_SHOW_FIXTURES;
stat2 = week;
stat3 = week_round;
callback_show_fixtures(SHOW_CURRENT);
break;
case STATUS_SHOW_FIXTURES:
if(stat1 >= ID_CUP_START && cup_has_tables(stat1) == -1)
game_gui_print_message(_("Cup has no tables."));
else
{
stat0 = STATUS_SHOW_TABLES;
callback_show_tables(SHOW_CURRENT);
}
break;
}
gui_set_arrows();
return TRUE;

View File

@ -1041,7 +1041,7 @@ treeview_set_up_fixtures(GtkTreeView *treeview)
GtkCellRenderer *renderer;
gtk_tree_selection_set_mode(gtk_tree_view_get_selection(treeview),
GTK_SELECTION_NONE);
GTK_SELECTION_SINGLE);
gtk_tree_view_set_rules_hint(treeview, FALSE);
gtk_tree_view_set_headers_visible(treeview, FALSE);
@ -1258,7 +1258,7 @@ treeview_set_up_table(GtkTreeView *treeview)
_("PTS")};
gtk_tree_selection_set_mode(gtk_tree_view_get_selection(treeview),
GTK_SELECTION_NONE);
GTK_SELECTION_SINGLE);
gtk_tree_view_set_rules_hint(treeview, FALSE);
gtk_tree_view_set_headers_visible(treeview, TRUE);