FACT++  1.0
void cancel_pop_up ( Widget  w,
int  tag,
unsigned long *  reason 
)

Definition at line 2163 of file did.c.

References Content_label_id, Curr_service_id, Curr_service_name, Curr_service_print_type, dic_info_service_stamped(), dic_release_service(), DID_SERVICE, Memory::free(), MAX_POP_UPS, MONITORED, no_link_int, pop_widget_id, print_service_formatted(), recv_service_info(), Service_buffer, Service_content_str, Service_size, set_something(), Subscribe10Button, and SubscribeButton.

2164 {
2165  void print_service_formatted();
2166 
2167  if(reason){}
2168  if(tag == MAX_POP_UPS+1)
2169  {
2173  }
2174  /*
2175  else if(tag == MAX_POP_UPS+2)
2176  {
2177  print_service_float(Service_buffer, ((Service_size - 1) / 4) + 1);
2178  set_something(Content_label_id,XmNlabelString, Service_content_str);
2179  Curr_service_print_type = 1;
2180  }
2181  else if(tag == MAX_POP_UPS+3)
2182  {
2183  print_service_double(Service_buffer, ((Service_size - 1) / 4) + 1);
2184  set_something(Content_label_id,XmNlabelString, Service_content_str);
2185  Curr_service_print_type = 2;
2186  }
2187  */
2188  else if(tag == MAX_POP_UPS+4)
2189  {
2190 
2191  if((!strstr(Curr_service_name,"/SERVICE_LIST")) &&
2192  (!strstr(Curr_service_name,"/CLIENT_LIST")) &&
2193  (!strstr(Curr_service_name,"/SERVER_LIST")))
2194  {
2195  if(Curr_service_id)
2196  {
2198  Curr_service_id = 0;
2199  }
2201  MONITORED,10,0,0,
2203  &no_link_int,4);
2204  }
2205  XtSetSensitive(w, False);
2206  XtSetSensitive(SubscribeButton, True);
2207  }
2208  else if(tag == MAX_POP_UPS+5)
2209  {
2210 
2211  if((!strstr(Curr_service_name,"/SERVICE_LIST")) &&
2212  (!strstr(Curr_service_name,"/CLIENT_LIST")) &&
2213  (!strstr(Curr_service_name,"/SERVER_LIST")))
2214  {
2215  if(Curr_service_id)
2216  {
2218  Curr_service_id = 0;
2219  }
2221  MONITORED,0,0,0,
2223  &no_link_int,4);
2224  }
2225  XtSetSensitive(w, False);
2226  XtSetSensitive(Subscribe10Button, True);
2227  }
2228 /*
2229  else if(tag == 5)
2230  {
2231  *
2232  XtUnmapWidget(XtParent(pop_widget_id[4]));
2233  *
2234  }
2235 */
2236  else if(tag == DID_SERVICE)
2237  {
2238  if(Curr_service_id)
2239  {
2241  Curr_service_id = 0;
2242  }
2243  XtUnmanageChild(pop_widget_id[DID_SERVICE]);
2246  }
2247 }
char Curr_service_name[132]
Definition: did.c:12
Widget pop_widget_id[MAX_POP_UPS]
Definition: did.h:62
unsigned dic_info_service_stamped(char *serv_name, int req_type, int req_timeout, void *serv_address, int serv_size, void(*usr_routine)(), dim_long tag, void *fill_addr, int fill_size)
Definition: dic.c:613
Widget Content_label_id
Definition: did.h:60
int Service_size
Definition: did.c:22
#define MONITORED
Definition: dim_common.h:9
void recv_service_info(int *tag, int *buffer, int *size)
Definition: did.c:1176
char * Service_buffer
Definition: did.c:21
char * Service_content_str
Definition: did.c:20
int Curr_service_print_type
Definition: did.c:14
void set_something()
Widget Subscribe10Button
Definition: did.c:32
void free(void *mem)
int no_link_int
Definition: did.c:17
Widget SubscribeButton
Definition: did.c:31
void print_service_formatted(void *buff, int size)
Definition: did.c:1219
void dic_release_service(unsigned service_id)
Definition: dic.c:1025
int Curr_service_id
Definition: did.c:25

+ Here is the call graph for this function: