FACT++  1.0
void get_something ( Widget  w,
char *  resource,
char *  value 
)

Definition at line 94 of file dui_util.c.

References Memory::free(), and str.

Referenced by get_all_colors().

97 {
98 
99  Arg al[1];
100  int free = 0;
101  XmString str;
102  char *cstr;
103 
104  if( (!strcmp(resource,XmNlabelString)) ||
105  (!strcmp(resource,XmNmessageString)) ||
106  (!strcmp(resource,XmNtextString)) ||
107  (!strcmp(resource,XmNlistLabelString)) ||
108  (!strcmp(resource,XmNselectionLabelString)) )
109  {
110  free = 1;
111  XtSetArg(al[0], resource, &str);
112  }
113  else
114  XtSetArg(al[0], resource, value);
115  XtGetValues(w, al, 1);
116  if(free)
117  {
118  XmStringGetLtoR(str, XmSTRING_DEFAULT_CHARSET, &cstr);
119  strcpy(value,cstr);
120  XtFree(cstr);
121  }
122 }
char str[80]
Definition: test_client.c:7
void free(void *mem)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: