[Freeciv-Dev] (PR#8707) gtk2 bug with disconnecting
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8707 >
> [jdorje - Sat May 08 20:31:38 2004]:
>
> If I connect to a network game (e.g., pubserver), the disconnect menu
> entry is deactivated until the game starts.
update_menus() was not being called often enough. This patch updates the
menus on connect and disconnect.
Index: client/clinet.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/clinet.c,v
retrieving revision 1.98
diff -u -r1.98 clinet.c
--- client/clinet.c 17 May 2004 02:16:15 -0000 1.98
+++ client/clinet.c 17 May 2004 12:45:26 -0000
@@ -78,6 +78,7 @@
#include "dialogs_g.h" /* popdown_races_dialog() */
#include "gui_main_g.h" /* add_net_input(), remove_net_input()
*/
#include "mapview_common.h" /* unqueue_mapview_update */
+#include "menu_g.h"
#include "messagewin_g.h"
#include "options.h"
#include "packhand.h"
@@ -106,6 +107,7 @@
set_client_state(CLIENT_PRE_GAME_STATE);
agents_disconnect();
+ update_menus();
client_remove_all_cli_conn();
}
Index: client/packhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/packhand.c,v
retrieving revision 1.365
diff -u -r1.365 packhand.c
--- client/packhand.c 15 May 2004 16:33:42 -0000 1.365
+++ client/packhand.c 17 May 2004 12:45:32 -0000
@@ -180,6 +180,7 @@
aconnection.established = TRUE;
aconnection.id = conn_id;
agents_game_joined();
+ update_menus();
/* we could always use hack, verify we're local */
send_client_wants_hack(challenge_file);
|
|