32 |
{ |
{ |
33 |
XtUnmanageChild(widget); |
XtUnmanageChild(widget); |
34 |
XtDestroyWidget(widget); |
XtDestroyWidget(widget); |
35 |
call_data=(XtPointer)NULL; |
call_data=NULL; |
36 |
client_data=(XtPointer)NULL; |
client_data=NULL; |
37 |
} |
} |
38 |
|
|
39 |
void |
void |
50 |
XtPointer call_data) |
XtPointer call_data) |
51 |
{ |
{ |
52 |
antiright_command((Widget)client_data); |
antiright_command((Widget)client_data); |
53 |
|
widget=NULL; |
54 |
widget=(Widget)NULL; |
call_data=NULL; |
|
call_data=(Widget)NULL; |
|
55 |
} |
} |
56 |
|
|
57 |
void |
void |
66 |
XtPointer call_data) |
XtPointer call_data) |
67 |
{ |
{ |
68 |
antiright_system(client_data); |
antiright_system(client_data); |
69 |
widget = (Widget)NULL; |
widget=NULL; |
70 |
call_data = (XtPointer)NULL; |
call_data=NULL; |
71 |
} |
} |
72 |
|
|
73 |
void |
void |
85 |
XmStringGetLtoR(motif_string, XmSTRING_DEFAULT_CHARSET, &c_string); |
XmStringGetLtoR(motif_string, XmSTRING_DEFAULT_CHARSET, &c_string); |
86 |
return(c_string); |
return(c_string); |
87 |
} |
} |
88 |
|
XmString |
89 |
|
antiright_motif_string(char *string) |
90 |
|
{ |
91 |
|
return(XmStringCreateLocalized(string)); |
92 |
|
} |
93 |
void |
void |
94 |
antiright_set_tooltip(Widget widget, char *tooltip_string) |
antiright_xmstring_resource(Widget widget, String name, char *string) |
95 |
{ |
{ |
96 |
#ifdef XmNtoolTipString |
XmString motif_string=antiright_motif_string(string); |
|
XmString motif_string=XmStringCreateLocalized(tooltip_string); |
|
97 |
XtVaSetValues(widget, |
XtVaSetValues(widget, |
98 |
XmNtoolTipString, motif_string, |
name, motif_string, |
99 |
NULL); |
NULL); |
100 |
XmStringFree(motif_string); |
XmStringFree(motif_string); |
101 |
|
} |
102 |
|
void |
103 |
|
antiright_set_tooltip(Widget widget, char *tooltip_string) |
104 |
|
{ |
105 |
|
#ifdef XmNtoolTipString |
106 |
|
antiright_xmstring_resource(widget, XmNtoolTipString, tooltip_string); |
107 |
#else |
#else |
108 |
widget=NULL; |
widget=NULL; |
109 |
tooltip_string=NULL; |
tooltip_string=NULL; |