mirror of https://github.com/tstellar/bygfoot.git
Failed player name editing callback.
This commit is contained in:
parent
7e6150688e
commit
18901260a4
102
bygfoot.glade
102
bygfoot.glade
|
@ -69,7 +69,7 @@
|
|||
<accelerator key="l" modifiers="GDK_CONTROL_MASK" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2643">
|
||||
<widget class="GtkImage" id="image2684">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-revert-to-saved</property>
|
||||
<property name="icon_size">1</property>
|
||||
|
@ -137,7 +137,7 @@
|
|||
<accelerator key="p" modifiers="GDK_CONTROL_MASK" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2644">
|
||||
<widget class="GtkImage" id="image2685">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-preferences</property>
|
||||
<property name="icon_size">1</property>
|
||||
|
@ -201,7 +201,7 @@
|
|||
<signal name="activate" handler="on_menu_save_window_geometry_activate" last_modification_time="Tue, 27 Sep 2005 10:09:53 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2645">
|
||||
<widget class="GtkImage" id="image2686">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_save_geometry.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -235,7 +235,7 @@
|
|||
<accelerator key="F3" modifiers="0" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2646">
|
||||
<widget class="GtkImage" id="image2687">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_fixtures.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -256,7 +256,7 @@
|
|||
<accelerator key="F4" modifiers="0" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2647">
|
||||
<widget class="GtkImage" id="image2688">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_fixtures_comp.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -277,7 +277,7 @@
|
|||
<accelerator key="F5" modifiers="0" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2648">
|
||||
<widget class="GtkImage" id="image2689">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_table.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -298,7 +298,7 @@
|
|||
<accelerator key="F6" modifiers="0" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2649">
|
||||
<widget class="GtkImage" id="image2690">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_league_results.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -319,7 +319,7 @@
|
|||
<accelerator key="s" modifiers="GDK_SHIFT_MASK" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2650">
|
||||
<widget class="GtkImage" id="image2691">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_season_res.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -351,7 +351,7 @@
|
|||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2651">
|
||||
<widget class="GtkImage" id="image2692">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_style.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -429,7 +429,7 @@
|
|||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2652">
|
||||
<widget class="GtkImage" id="image2693">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_scout.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -496,7 +496,7 @@
|
|||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2653">
|
||||
<widget class="GtkImage" id="image2694">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_physio.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -563,7 +563,7 @@
|
|||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2654">
|
||||
<widget class="GtkImage" id="image2695">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_youth_academy.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -730,7 +730,7 @@
|
|||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2655">
|
||||
<widget class="GtkImage" id="image2696">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_boost.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -808,7 +808,7 @@
|
|||
<signal name="activate" handler="on_menu_reset_players_activate" last_modification_time="Tue, 26 Apr 2005 13:16:39 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2656">
|
||||
<widget class="GtkImage" id="image2697">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-undo</property>
|
||||
<property name="icon_size">1</property>
|
||||
|
@ -829,7 +829,7 @@
|
|||
<signal name="activate" handler="on_menu_custom_structure_activate" last_modification_time="Sat, 26 Feb 2005 12:46:30 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2657">
|
||||
<widget class="GtkImage" id="image2698">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_structure.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -851,7 +851,7 @@
|
|||
<accelerator key="r" modifiers="GDK_CONTROL_MASK" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2658">
|
||||
<widget class="GtkImage" id="image2699">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_rearrange.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -877,7 +877,7 @@
|
|||
<signal name="activate" handler="on_menu_browse_teams_activate" last_modification_time="Mon, 03 Jan 2005 16:58:58 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2659">
|
||||
<widget class="GtkImage" id="image2700">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_browse_tms.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -927,7 +927,7 @@
|
|||
<signal name="activate" handler="on_menu_show_info_activate" last_modification_time="Sun, 02 Jan 2005 15:42:09 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2660">
|
||||
<widget class="GtkImage" id="image2701">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_player_info.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -947,7 +947,7 @@
|
|||
<signal name="activate" handler="on_menu_put_on_transfer_list_activate" last_modification_time="Sun, 02 Jan 2005 15:42:09 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2661">
|
||||
<widget class="GtkImage" id="image2702">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_player_put_transfer.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -967,7 +967,7 @@
|
|||
<signal name="activate" handler="on_menu_remove_from_transfer_list_activate" last_modification_time="Sun, 02 Jan 2005 15:42:09 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2662">
|
||||
<widget class="GtkImage" id="image2703">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_player_remove_transfer.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -987,7 +987,7 @@
|
|||
<signal name="activate" handler="on_menu_offer_new_contract_activate" last_modification_time="Fri, 25 Mar 2005 09:23:28 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2663">
|
||||
<widget class="GtkImage" id="image2704">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_player_contract.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -1007,7 +1007,7 @@
|
|||
<signal name="activate" handler="on_menu_fire_activate" last_modification_time="Sun, 02 Jan 2005 15:42:09 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2664">
|
||||
<widget class="GtkImage" id="image2705">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_player_fire.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -1027,7 +1027,7 @@
|
|||
<signal name="activate" handler="on_menu_shoots_penalties_activate" last_modification_time="Sun, 02 Jan 2005 15:42:09 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2665">
|
||||
<widget class="GtkImage" id="image2706">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_player_shoots.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -1047,7 +1047,7 @@
|
|||
<signal name="activate" handler="on_menu_move_to_youth_academy_activate" last_modification_time="Thu, 07 Jul 2005 21:12:26 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2666">
|
||||
<widget class="GtkImage" id="image2707">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_player_move_to_ya.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -1059,6 +1059,15 @@
|
|||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkMenuItem" id="menu_edit_name">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Edit name</property>
|
||||
<property name="use_underline">True</property>
|
||||
<signal name="activate" handler="on_menu_edit_name_activate" last_modification_time="Mon, 23 Feb 2009 11:07:48 GMT"/>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkSeparatorMenuItem" id="trennlinie10">
|
||||
<property name="visible">True</property>
|
||||
|
@ -1073,7 +1082,7 @@
|
|||
<signal name="activate" handler="on_menu_browse_players_activate" last_modification_time="Sat, 26 Mar 2005 09:42:31 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2667">
|
||||
<widget class="GtkImage" id="image2708">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_player_browse.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -1107,7 +1116,7 @@
|
|||
<accelerator key="v" modifiers="GDK_CONTROL_MASK" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2668">
|
||||
<widget class="GtkImage" id="image2709">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_last_match.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -1128,7 +1137,7 @@
|
|||
<accelerator key="F2" modifiers="0" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2669">
|
||||
<widget class="GtkImage" id="image2710">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_match_stats.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -1149,7 +1158,7 @@
|
|||
<accelerator key="F1" modifiers="0" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2670">
|
||||
<widget class="GtkImage" id="image2711">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-jump-to</property>
|
||||
<property name="icon_size">1</property>
|
||||
|
@ -1177,7 +1186,7 @@
|
|||
<accelerator key="F9" modifiers="0" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2671">
|
||||
<widget class="GtkImage" id="image2712">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-media-forward</property>
|
||||
<property name="icon_size">1</property>
|
||||
|
@ -1199,7 +1208,7 @@
|
|||
<accelerator key="F8" modifiers="0" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2672">
|
||||
<widget class="GtkImage" id="image2713">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-go-back</property>
|
||||
<property name="icon_size">1</property>
|
||||
|
@ -1221,7 +1230,7 @@
|
|||
<accelerator key="F12" modifiers="0" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2673">
|
||||
<widget class="GtkImage" id="image2714">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-justify-fill</property>
|
||||
<property name="icon_size">1</property>
|
||||
|
@ -1256,7 +1265,7 @@
|
|||
<accelerator key="f" modifiers="0" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2674">
|
||||
<widget class="GtkImage" id="image2715">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_finances.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -1277,7 +1286,7 @@
|
|||
<accelerator key="f" modifiers="GDK_CONTROL_MASK" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2675">
|
||||
<widget class="GtkImage" id="image2716">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_stadium.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -1348,7 +1357,7 @@
|
|||
<accelerator key="s" modifiers="0" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2676">
|
||||
<widget class="GtkImage" id="image2717">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_league_stats.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -1369,7 +1378,7 @@
|
|||
<accelerator key="h" modifiers="0" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2677">
|
||||
<widget class="GtkImage" id="image2718">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_history.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -1390,7 +1399,7 @@
|
|||
<accelerator key="h" modifiers="GDK_CONTROL_MASK" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2678">
|
||||
<widget class="GtkImage" id="image2719">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_history.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -1409,7 +1418,7 @@
|
|||
<property name="use_underline">True</property>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2679">
|
||||
<widget class="GtkImage" id="image2720">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixbuf">menu_mmatches.png</property>
|
||||
<property name="xalign">0.5</property>
|
||||
|
@ -1432,7 +1441,7 @@
|
|||
<accelerator key="a" modifiers="GDK_CONTROL_MASK" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2680">
|
||||
<widget class="GtkImage" id="image2721">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-add</property>
|
||||
<property name="icon_size">1</property>
|
||||
|
@ -1455,7 +1464,7 @@
|
|||
<accelerator key="m" modifiers="GDK_CONTROL_MASK" signal="activate"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2681">
|
||||
<widget class="GtkImage" id="image2722">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-preferences</property>
|
||||
<property name="icon_size">1</property>
|
||||
|
@ -1493,7 +1502,7 @@
|
|||
<signal name="activate" handler="on_menu_about_activate" last_modification_time="Sun, 18 Jan 2004 15:58:22 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2682">
|
||||
<widget class="GtkImage" id="image2723">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-dialog-info</property>
|
||||
<property name="icon_size">1</property>
|
||||
|
@ -1514,7 +1523,7 @@
|
|||
<signal name="activate" handler="on_menu_contributors_activate" last_modification_time="Sun, 22 May 2005 06:42:11 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2683">
|
||||
<widget class="GtkImage" id="image2724">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-add</property>
|
||||
<property name="icon_size">1</property>
|
||||
|
@ -1535,7 +1544,7 @@
|
|||
<signal name="activate" handler="on_menu_help_activate" last_modification_time="Sun, 22 May 2005 06:42:11 GMT"/>
|
||||
|
||||
<child internal-child="image">
|
||||
<widget class="GtkImage" id="image2684">
|
||||
<widget class="GtkImage" id="image2725">
|
||||
<property name="visible">True</property>
|
||||
<property name="stock">gtk-help</property>
|
||||
<property name="icon_size">1</property>
|
||||
|
@ -2800,6 +2809,15 @@
|
|||
<signal name="activate" handler="on_player_menu_move_to_youth_academy_activate" last_modification_time="Thu, 07 Jul 2005 21:13:04 GMT"/>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkMenuItem" id="player_menu_edit_name">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Edit name</property>
|
||||
<property name="use_underline">True</property>
|
||||
<signal name="activate" handler="on_player_menu_edit_name_activate" last_modification_time="Mon, 23 Feb 2009 11:08:36 GMT"/>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget class="GtkMenu" id="menu_youth">
|
||||
|
|
1007
src/callbacks.c
1007
src/callbacks.c
File diff suppressed because it is too large
Load Diff
|
@ -358,7 +358,6 @@ on_automatic_loan_repayment_activate (GtkMenuItem *menuitem,
|
|||
void
|
||||
on_menu_news_activate (GtkMenuItem *menuitem,
|
||||
gpointer user_data);
|
||||
#endif
|
||||
|
||||
|
||||
void
|
||||
|
@ -368,3 +367,4 @@ on_menu_edit_name_activate (GtkMenuItem *menuitem,
|
|||
void
|
||||
on_player_menu_edit_name_activate (GtkMenuItem *menuitem,
|
||||
gpointer user_data);
|
||||
#endif
|
||||
|
|
|
@ -359,6 +359,7 @@ treeview_set_up_player_list(GtkTreeView *treeview, gint *attributes, gint max,
|
|||
|
||||
if(transfer_list && attributes[i] == PLAYER_LIST_ATTRIBUTE_NAME)
|
||||
{
|
||||
g_object_set_data(G_OBJECT(col), "cell_renderer_name", renderer);
|
||||
g_object_set(renderer, "editable", TRUE, NULL);
|
||||
g_signal_connect (renderer,
|
||||
"editing-started",
|
||||
|
|
Loading…
Reference in New Issue