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

Definition at line 2135 of file didMarkus.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.

2136 {
2137  void print_service_formatted();
2138 
2139  if(reason){}
2140  if(tag == MAX_POP_UPS+1)
2141  {
2145  }
2146  /*
2147  else if(tag == MAX_POP_UPS+2)
2148  {
2149  print_service_float(Service_buffer, ((Service_size - 1) / 4) + 1);
2150  set_something(Content_label_id,XmNlabelString, Service_content_str);
2151  Curr_service_print_type = 1;
2152  }
2153  else if(tag == MAX_POP_UPS+3)
2154  {
2155  print_service_double(Service_buffer, ((Service_size - 1) / 4) + 1);
2156  set_something(Content_label_id,XmNlabelString, Service_content_str);
2157  Curr_service_print_type = 2;
2158  }
2159  */
2160  else if(tag == MAX_POP_UPS+4)
2161  {
2162 
2163  if((!strstr(Curr_service_name,"/SERVICE_LIST")) &&
2164  (!strstr(Curr_service_name,"/CLIENT_LIST")) &&
2165  (!strstr(Curr_service_name,"/SERVER_LIST")))
2166  {
2167  if(Curr_service_id)
2168  {
2170  Curr_service_id = 0;
2171  }
2173  MONITORED,10,0,0,
2175  &no_link_int,4);
2176  }
2177  XtSetSensitive(w, False);
2178  XtSetSensitive(SubscribeButton, True);
2179  }
2180  else if(tag == MAX_POP_UPS+5)
2181  {
2182 
2183  if((!strstr(Curr_service_name,"/SERVICE_LIST")) &&
2184  (!strstr(Curr_service_name,"/CLIENT_LIST")) &&
2185  (!strstr(Curr_service_name,"/SERVER_LIST")))
2186  {
2187  if(Curr_service_id)
2188  {
2190  Curr_service_id = 0;
2191  }
2193  MONITORED,0,0,0,
2195  &no_link_int,4);
2196  }
2197  XtSetSensitive(w, False);
2198  XtSetSensitive(Subscribe10Button, True);
2199  }
2200 /*
2201  else if(tag == 5)
2202  {
2203  *
2204  XtUnmapWidget(XtParent(pop_widget_id[4]));
2205  *
2206  }
2207 */
2208  else if(tag == DID_SERVICE)
2209  {
2210  if(Curr_service_id)
2211  {
2213  Curr_service_id = 0;
2214  }
2215  XtUnmanageChild(pop_widget_id[DID_SERVICE]);
2218  }
2219 }
Widget Subscribe10Button
Definition: didMarkus.c:32
Widget pop_widget_id[MAX_POP_UPS]
Definition: did.h:62
int Service_size
Definition: didMarkus.c:22
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 Curr_service_print_type
Definition: didMarkus.c:14
Widget SubscribeButton
Definition: didMarkus.c:31
int no_link_int
Definition: didMarkus.c:17
#define MONITORED
Definition: dim_common.h:9
void recv_service_info(int *tag, int *buffer, int *size)
Definition: didMarkus.c:1161
void print_service_formatted(void *buff, int size)
Definition: didMarkus.c:1204
char * Service_buffer
Definition: didMarkus.c:21
int Curr_service_id
Definition: didMarkus.c:25
char Curr_service_name[132]
Definition: didMarkus.c:12
void set_something()
void free(void *mem)
char * Service_content_str
Definition: didMarkus.c:20
void dic_release_service(unsigned service_id)
Definition: dic.c:1025

+ Here is the call graph for this function: