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

Definition at line 62 of file dui_util.c.

References Memory::free(), free_str(), and get_str().

Referenced by set_color(), set_face(), set_lock(), set_unlock(), and set_watch().

65 {
66  Arg al[1];
67  int free = 0;
68 DISABLE_AST
69  if( (!strcmp(resource,XmNlabelString)) ||
70  (!strcmp(resource,XmNmessageString)) ||
71  (!strcmp(resource,XmNtextString)) ||
72  (!strcmp(resource,XmNlistLabelString)) ||
73  (!strcmp(resource,XmNselectionLabelString)) )
74  {
75  free = 1;
76  value = (char *)get_str(value);
77  }
78  XtSetArg(al[0], resource, value);
79  XtSetValues(w, al, 1);
80  if(free)
81  free_str();
82  /*
83  printf("Flushing %s for widget %s...\n",resource,w->core.name);
84  */
85  /*
86  XFlush(XtDisplay(w));
87  */
88  /*
89  printf("Flushed!\n");
90  */
91 ENABLE_AST
92 }
void free_str()
Definition: dui_util.c:38
XmString get_str(char *text)
Definition: dui_util.c:29
void free(void *mem)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: