IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2007, 7:24:04 AM (19 years ago)
Author:
eugene
Message:

fixing style arguments, graphmode from kapa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/kapa-mods-2007-05/Ohana/src/opihi/lib.data/open_kapa.c

    r13394 r13432  
    180180  }
    181181 
    182   if (data != NULL) *data = graphdata;
     182  if (data != NULL) KapaGetGraphStyle (Socket[Active], data);
    183183  if (fd != NULL) *fd = Socket[Active];
    184184
     
    206206
    207207  if (fd != NULL) *fd = Socket[entry];
    208   if (data != NULL) *data = graphdata;
     208  if (data != NULL) KapaGetGraphStyle (Socket[entry], data);
    209209  return (TRUE);
    210210}
    211211
    212212/* assign given values to current Xgraph */
    213 void SetGraph (Graphdata data) {
    214   graphdata = data;
     213void SetGraph (Graphdata *data) {
     214  if (Active < 0) {
     215    gprint (GP_ERR, "no active kapa window\n");
     216    return (FALSE);
     217  }
     218  if (Socket[Active] == -1) {
     219    gprint (GP_ERR, "no active kapa window\n");
     220    return (FALSE);
     221  }
     222  KapaSetGraphStyle (Socket[Active], data);
    215223}
    216224
Note: See TracChangeset for help on using the changeset viewer.