XmUpdateDisplay (w);
- if((int)client_data != 0)
+ if(client_data != 0)
{
file_view_data = (FileViewData *)client_data;
mbar = XtParent(w);
XtSetArg (args[n], XmNallowShellResize, True); n++;
/* Ignore accelerators when we're insensitive */
- if((int)client_data == 0)
+ if(client_data == 0)
{
if ((file_mgr_rec->menuStates & RENAME) == 0)
return;
char * directory_name;
char * tmpStr, *tempStr;
+ XtPointer width;
Dimension f_width, d_width;
Widget shell;
XmUpdateDisplay (w);
- if((int)client_data != 0)
+ if(client_data != 0)
{
file_view_data = (FileViewData *)client_data;
mbar = XtParent(w);
/* Make the two labels the same length - maximum. */
/* ------------------------------------------------ */
- XtVaGetValues(dir_label, XmNwidth, &d_width, NULL);
- XtVaGetValues(file_label, XmNwidth, &f_width, NULL);
+ XtVaGetValues(dir_label, XmNwidth, &width, NULL);
+ d_width = (Dimension)width;
+ XtVaGetValues(file_label, XmNwidth, &width, NULL);
+ f_width = (Dimension)width;
if (d_width > f_width)
XtVaSetValues(file_label, XmNwidth, d_width, NULL);
else
XtVaSetValues(dir_label, XmNwidth, f_width, NULL);
- XtVaGetValues(dir_text, XmNwidth, &d_width, NULL);
- XtVaGetValues(file_text, XmNwidth, &f_width, NULL);
+ XtVaGetValues(dir_text, XmNwidth, &width, NULL);
+ d_width = (Dimension)width;
+ XtVaGetValues(file_text, XmNwidth, &width, NULL);
+ f_width = (Dimension)width;
if (d_width > f_width)
XtVaSetValues(file_text, XmNwidth, d_width, NULL);
XmUpdateDisplay (w);
- if((int)client_data != 0)
+ if(client_data != 0)
{
file_view_data = (FileViewData *)client_data;
mbar = XtParent(w);
XmUpdateDisplay (w);
- if((int)client_data != 0)
+ if(client_data != 0)
{
file_view_data = (FileViewData *)client_data;
mbar = XtParent(w);
if (i == actions.defaultAction)
{
+ XtPointer heightptr;
Dimension height, h;
- XtVaGetValues (action_area, XmNmarginHeight, &h, NULL);
- XtVaGetValues (widget, XmNheight, &height, NULL);
+ XtVaGetValues (action_area, XmNmarginHeight, &heightptr, NULL);
+ height = (Dimension)heightptr;
+ XtVaGetValues (widget, XmNheight, &heightptr, NULL);
+ h = (Dimension)heightptr;
height +=2 * h;
XtVaSetValues (action_area,
char *helpVolume, *locationId;
int topic;
- topic = (int) client_data;
+ topic = (int)client_data;
helpVolume = HELP_VOLUME;
switch (topic)
if (i == actions.defaultAction)
{
+ union {
+ XtPointer ptr;
+ Dimension dim;
+ } wide;
Dimension height, h;
- XtVaGetValues (action_area, XmNmarginHeight, &h, NULL);
- XtVaGetValues (widget, XmNheight, &height, NULL);
+ XtVaGetValues (action_area, XmNmarginHeight, &wide.ptr, NULL);
+ h = wide.dim;
+ XtVaGetValues (widget, XmNheight, &wide.ptr, NULL);
+ height = wide.dim;
height +=2 * h;
XtVaSetValues (action_area,