Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#9872) "meet" button in xaw client
Home

[Freeciv-Dev] (PR#9872) "meet" button in xaw client

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mstefek@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#9872) "meet" button in xaw client
From: "Egor Vyscrebentsov via RT" <evyscr@xxxxxxxxx>
Date: Wed, 22 Sep 2004 09:42:21 -0700
Reply-to: RT_CorrespondAddressNotSet@xxxxxxxxxxxxxx

<URL: http://RT::WebBaseURL.not.configured:80/Ticket/Display.html?id=9872 >

> [mstefek - Пнд. Авг. 30 08:00:59 2004]:
> 
> Saltybanana wrote on the forum:
> 
> I am unable to "meet" with any of the AI players. That is, in the
> Players dialog, the "Meet" button is always grayed out, even for those
> players where I have embassies established in their cities.
> 
> I am playing using the xaw client.

Sensibility of "Meet" and "Intel" button was set to false _after_ end of
checking block. Attached patch works correct for me.

Thanks, evyscr.
--- plrdlg.c.orig       2004-09-21 20:32:50 +0400
+++ plrdlg.c    2004-09-22 20:34:23 +0400
@@ -295,6 +295,8 @@
 
   ret=XawListShowCurrent(players_list);
 
+  XtSetSensitive(players_meet_command, FALSE);
+  XtSetSensitive(players_int_command, FALSE);
   if(ret->list_index!=XAW_LIST_NONE) {
     struct player *pplayer = 
get_player(list_index_to_player_index[ret->list_index]);
 
@@ -315,8 +317,6 @@
     XtSetSensitive(players_meet_command, can_meet_with_player(pplayer));
     XtSetSensitive(players_int_command, can_intel_with_player(pplayer));
   }
-  XtSetSensitive(players_meet_command, FALSE);
-  XtSetSensitive(players_int_command, FALSE);
 }
 
 

[Prev in Thread] Current Thread [Next in Thread]