/* When adding a switch buttons, keep the row columns row count */
/* equal to the requested value with small number of buttons */
- if (switch_data->switch_count <= (int)
+ if (switch_data->switch_count <= (intptr_t)
(switch_data->element_values[SWITCH_NUMBER_OF_ROWS].parsed_value))
{
Arg al[1];
- panel.switch_row_count = (int)
+ panel.switch_row_count = (intptr_t)
(switch_data->element_values[SWITCH_NUMBER_OF_ROWS].parsed_value);
XtSetArg (al[0], XmNnumColumns, panel.switch_row_count);
/* When deleting a switch button, keep trying to decrease the */
/* row count to the requested value. */
- if (panel.switch_row_count > (int)
+ if (panel.switch_row_count > (intptr_t)
(switch_data->element_values[SWITCH_NUMBER_OF_ROWS].parsed_value))
{
button_width = XtWidth (switch_data->buttons[0]);
char * message;
- if ((int) control_data->element_values[CONTROL_TYPE].parsed_value != CONTROL_FILE)
+ if ((intptr_t) control_data->element_values[CONTROL_TYPE].parsed_value != CONTROL_FILE)
return (True);
file_name =
int i, j;
- control_behavior = (int) (panel.element_values[PANEL_CONTROL_BEHAVIOR].parsed_value);
+ control_behavior = (intptr_t) (panel.element_values[PANEL_CONTROL_BEHAVIOR].parsed_value);
/* See if the workspace name is being edited. If so, call the */
(callback->reason == XmCR_DEFAULT_ACTION ||
callback->reason == XmCR_SINGLE_SELECT)))
{
- control_type = (int) (control_data->element_values[CONTROL_TYPE].parsed_value);
+ control_type = (intptr_t) (control_data->element_values[CONTROL_TYPE].parsed_value);
push_action = (PanelActionData *) (control_data->element_values[CONTROL_PUSH_ACTION].parsed_value);
- push_recall = (Boolean) (control_data->element_values[CONTROL_PUSH_RECALL].parsed_value);
+ push_recall = (Boolean) (intptr_t) (control_data->element_values[CONTROL_PUSH_RECALL].parsed_value);
switch (control_type)
{
/* Turn off the subpanel control monitor indicator */
- if ((char) control_data->element_values[CONTROL_MONITOR_TYPE].
+ if ((char) (intptr_t) control_data->element_values[CONTROL_MONITOR_TYPE].
parsed_value != MONITOR_NONE)
{
if (subpanel_data != NULL)
/* action occured out of a subpanel. */
if (subpanel_data != NULL && unpost_subpanel &&
- (Boolean) panel.element_values[PANEL_SUBPANEL_UNPOST].parsed_value &&
+ (Boolean) (intptr_t) panel.element_values[PANEL_SUBPANEL_UNPOST].parsed_value &&
subpanel_data->torn == False)
ArrowCB (main_control_data->arrow,
(XtPointer)main_control_data, (XtPointer)NULL);
animate_data->dropData->protocol == DtDND_BUFFER_TRANSFER))
{
int numItems;
- int control_type =
- (int)control_data->element_values[CONTROL_TYPE].parsed_value;
+ intptr_t control_type =
+ (intptr_t)control_data->element_values[CONTROL_TYPE].parsed_value;
char * control_name =
(char *)control_data->element_values[CONTROL_FILE_NAME].parsed_value;
Boolean send_control_name = False;
Boolean drop_of_fp;
Boolean bad_control;
Boolean control_monitor;
- int position_hints;
+ intptr_t position_hints;
int count;
char * new_control_name;
if (bad_control) continue;
- if ((int) element_values[CONTROL_MONITOR_TYPE].parsed_value != MONITOR_NONE)
+ if ((intptr_t) element_values[CONTROL_MONITOR_TYPE].parsed_value != MONITOR_NONE)
control_monitor = True;
else
control_monitor = False;
- position_hints = (int)element_values[CONTROL_POSITION_HINTS].parsed_value;
+ position_hints = (intptr_t) element_values[CONTROL_POSITION_HINTS].parsed_value;
/* Initialize the subpanel layout and processing attributes. */
- if ((int) main_control_data->
+ if ((intptr_t) main_control_data->
element_values[CONTROL_MONITOR_TYPE].parsed_value != MONITOR_NONE)
{
control_monitor = True;
for (j = 0; j < subpanel_data->control_data_count; j++)
{
- if ((int) subpanel_data->control_data[j]->
+ if ((intptr_t) subpanel_data->control_data[j]->
element_values[CONTROL_MONITOR_TYPE].parsed_value != MONITOR_NONE)
{
control_monitor = True;
for (j = count - 2; j >= 0; j--)
{
if (position_hints >=
- (int) subpanel_data->control_data[j]->element_values[CONTROL_POSITION_HINTS].parsed_value)
+ (intptr_t) subpanel_data->control_data[j]->element_values[CONTROL_POSITION_HINTS].parsed_value)
break;
}
for (i = panel_count - 1; i > 0; i--)
{
- if ((Boolean)(panel_data[i].element_values[PANEL_LOCKED].parsed_value))
+ if ((intptr_t)(panel_data[i].element_values[PANEL_LOCKED].parsed_value))
break;
}
if (switch_count != 0) {
for (i = switch_count - 1; i > 0; i--)
{
- if ((Boolean)(switch_data[i].element_values[SWITCH_LOCKED].parsed_value))
+ if ((intptr_t)(switch_data[i].element_values[SWITCH_LOCKED].parsed_value))
break;
}
if ((string = _DtWmParseNextTokenC(&source, False)) != NULL)
{
StringToInt((char *)string, &val_rtn);
- panel.animation_data[count].items[i].delay = (int) val_rtn;
+ panel.animation_data[count].items[i].delay = (int) (intptr_t) val_rtn;
}
else
{
}
else
{
- if ((int) rec_data[j].element_values[elem_index].parsed_value >
- (int) rec_data[j+1].element_values[elem_index].parsed_value)
+ if ((intptr_t) rec_data[j].element_values[elem_index].parsed_value >
+ (intptr_t) rec_data[j+1].element_values[elem_index].parsed_value)
{
SwapEntries(rec_data, j, j+1);
t = j;
while (i < rec_count)
{
- cont_type = (int)
+ cont_type = (int) (intptr_t)
(rec_data[start].element_values[elem_type].parsed_value);
- while ((int)(rec_data[i].element_values[elem_type].parsed_value) ==
+ while ((intptr_t)(rec_data[i].element_values[elem_type].parsed_value) ==
cont_type)
{
i++;
}
else
{
- container_type = (int)
+ container_type = (int) (intptr_t)
(rec_data[start].element_values[cont_type].parsed_value);
- while (((int)rec_data[i].element_values[cont_type].parsed_value ==
+ while (((intptr_t)rec_data[i].element_values[cont_type].parsed_value ==
container_type) &&
(strcmp((char *)
rec_data[i].element_values[cont_name].parsed_value,
element_values = record_data[i].element_values;
if (ANY_CONTAINER_TYPE != container_type)
{
- cont_type = (int) (element_values[container_type].parsed_value);
+ cont_type = (int) (intptr_t) (element_values[container_type].parsed_value);
cont_name = (char *) (element_values[container_name].parsed_value);
}
record_name = (char *) (element_values[name_type].parsed_value);
- locked = (Boolean)(element_values[lock_type].parsed_value);
+ locked = (Boolean) (intptr_t) (element_values[lock_type].parsed_value);
if (locked)
{
i--;
}
else
{
- while (((int)(element_values[container_type].parsed_value)
+ while (((intptr_t)(element_values[container_type].parsed_value)
== cont_type) &&
(strcmp((char *)(element_values[container_name].parsed_value),
cont_name) == 0) &&
while ((strcmp((char *) (element_values[name_type].parsed_value),
record_name) == 0))
{
- locked = (Boolean)(element_values[lock_type].parsed_value);
+ locked = (Boolean) (intptr_t) (element_values[lock_type].parsed_value);
if (locked && start_index == lock_index)
lock_index = i;
last_index = i;
}
else
{
- while (((int)(element_values[container_type].parsed_value)
+ while (((intptr_t)(element_values[container_type].parsed_value)
== cont_type) &&
(strcmp((char *)(element_values[container_name].parsed_value),
cont_name) == 0) &&
(strcmp((char *)(element_values[name_type].parsed_value),
record_name) == 0))
{
- locked = (Boolean)(element_values[lock_type].parsed_value);
+ locked = (Boolean) (intptr_t) (element_values[lock_type].parsed_value);
if (locked && start_index == lock_index)
lock_index = i;
last_index = i;
for (i = 0; i < record_count; i++)
{
if (ANY_CONTAINER_TYPE == container_type ||
- (int)(record_data[i].element_values[container_type].parsed_value) ==
+ (intptr_t)(record_data[i].element_values[container_type].parsed_value) ==
container)
{
if (found_count >= name_list_count)
{
element_values = record_data[i].element_values;
if (cont_type == ANY_CONTAINER_TYPE ||
- (int)(element_values[cont_type].parsed_value) == container)
+ (intptr_t)(element_values[cont_type].parsed_value) == container)
{
if (cont_name_list != NULL)
{
{
start = i;
element_values = record_data[i].element_values;
- if ((Boolean)element_values[delete_type].parsed_value)
+ if ((intptr_t)element_values[delete_type].parsed_value)
{
Boolean delete_rest = False;
if (record_type == CONTROL)
{
- rec_type = (int)element_values[CONTROL_TYPE].parsed_value;
+ rec_type = (intptr_t)element_values[CONTROL_TYPE].parsed_value;
container_type =
- (int)element_values[CONTROL_CONTAINER_TYPE].parsed_value;
+ (intptr_t)element_values[CONTROL_CONTAINER_TYPE].parsed_value;
}
container_name =
XtNewString ((char *)element_values[cont_name].parsed_value);
{
other_element_values = record_data[j].element_values;
if ((record_type != CONTROL ||
- ((int)other_element_values[CONTROL_CONTAINER_TYPE].parsed_value
+ ((intptr_t)other_element_values[CONTROL_CONTAINER_TYPE].parsed_value
== container_type &&
- (int) other_element_values[CONTROL_TYPE].parsed_value
+ (intptr_t) other_element_values[CONTROL_TYPE].parsed_value
== rec_type)) &&
strcmp((char *)other_element_values[cont_name].parsed_value,
container_name) == 0 &&
strcmp((char *)other_element_values[record_name].parsed_value,
rec_name) == 0)
{
- if ((Boolean)other_element_values[lock_type].parsed_value)
+ if ((intptr_t)other_element_values[lock_type].parsed_value)
{
- if ((Boolean)other_element_values[delete_type].parsed_value)
+ if ((intptr_t)other_element_values[delete_type].parsed_value)
{
EliminateEntries(record_data, record_count, j, j, &dummy,
&count, record_type);
for (i = 0; i < record_count; i++)
{
if (ANY_CONTAINER_TYPE == container_type ||
- (int)(record_data[i].element_values[container_type].parsed_value) ==
+ (intptr_t)(record_data[i].element_values[container_type].parsed_value) ==
container)
{
if (strcmp (container_name,
int j = 0;
- if ((int)control_data->element_values[CONTROL_TYPE].parsed_value ==
+ if ((intptr_t)control_data->element_values[CONTROL_TYPE].parsed_value ==
CONTROL_FILE)
{
file_name = (char *)
{
element_values = control_data[i].element_values;
- if ((int) element_values[CONTROL_CONTAINER_TYPE].parsed_value == BOX &&
+ if ((intptr_t) element_values[CONTROL_CONTAINER_TYPE].parsed_value == BOX &&
strcmp ((char *) box_data->element_values[BOX_NAME].parsed_value,
(char *) element_values[CONTROL_CONTAINER_NAME].parsed_value) == 0)
{
{
element_values = control_data[i].element_values;
- if ((int) element_values[CONTROL_CONTAINER_TYPE].parsed_value == SUBPANEL &&
+ if ((intptr_t) element_values[CONTROL_CONTAINER_TYPE].parsed_value == SUBPANEL &&
strcmp ((char *) subpanel_data->element_values[SUBPANEL_NAME].parsed_value,
(char *) element_values[CONTROL_CONTAINER_NAME].parsed_value) == 0)
{
{
element_values = control_data[i].element_values;
- if ((int) element_values[CONTROL_CONTAINER_TYPE].parsed_value == SWITCH &&
+ if ((intptr_t) element_values[CONTROL_CONTAINER_TYPE].parsed_value == SWITCH &&
strcmp ((char *) switch_data->element_values[SWITCH_NAME].parsed_value,
(char *) element_values[CONTROL_CONTAINER_NAME].parsed_value) == 0)
{
record_data->element_values[k].use_default == False)
{
if (record_type == CONTROL &&
- (int) record_data->element_values[CONTROL_TYPE].parsed_value == CONTROL_FILE &&
+ (intptr_t) record_data->element_values[CONTROL_TYPE].parsed_value == CONTROL_FILE &&
(k == CONTROL_PUSH_ACTION ||
k == CONTROL_LABEL || k == CONTROL_DROP_ACTION))
continue;
WriteComponentToFile ((RecordData *) control_data, CONTROL, control_keywords,
(char *) element_values[CONTROL_CONTAINER_NAME].parsed_value,
- (int) element_values[CONTROL_CONTAINER_TYPE].parsed_value,
+ (int) (intptr_t) element_values[CONTROL_CONTAINER_TYPE].parsed_value,
False);
}
RemoveComponentFile ((RecordData *) control_data, CONTROL, control_keywords,
(char *) element_values[CONTROL_CONTAINER_NAME].parsed_value,
- (int) element_values[CONTROL_CONTAINER_TYPE].parsed_value);
+ (int) (intptr_t) element_values[CONTROL_CONTAINER_TYPE].parsed_value);
}
{
- if ((int)element_values[CONTROL_TYPE].parsed_value == CONTROL_FILE)
+ if ((intptr_t)element_values[CONTROL_TYPE].parsed_value == CONTROL_FILE)
{
Boolean free_data_type = False;
char * act_list;
icon_name =
(char *)control_data->element_values[CONTROL_NORMAL_ICON].parsed_value;
- if ((int)control_data->element_values[CONTROL_CONTAINER_TYPE].parsed_value ==
+ if ((intptr_t)control_data->element_values[CONTROL_CONTAINER_TYPE].parsed_value ==
SUBPANEL)
{
icon_name = GetIconName (icon_name, panel.sub_icon_size);
{
control_data = box_data->control_data[j];
- if ((int)control_data->element_values[CONTROL_TYPE].parsed_value ==
+ if ((intptr_t)control_data->element_values[CONTROL_TYPE].parsed_value ==
CONTROL_FILE)
UpdateFileType(control_data);
{
control_data = subpanel_data->control_data[k];
- if ((int)control_data->element_values[CONTROL_TYPE].parsed_value
+ if ((intptr_t)control_data->element_values[CONTROL_TYPE].parsed_value
== CONTROL_FILE)
UpdateFileType(control_data);
}
{
control_data = switch_data->control_data[j];
- if ((int)control_data->element_values[CONTROL_TYPE].parsed_value ==
+ if ((intptr_t)control_data->element_values[CONTROL_TYPE].parsed_value ==
CONTROL_FILE)
UpdateFileType(control_data);
}
if (box_data->switch_data != NULL)
{
switch_data = box_data->switch_data;
- switch_position = (int) box_data->switch_data->element_values[SWITCH_POSITION_HINTS].parsed_value;
+ switch_position = (int) (intptr_t) box_data->switch_data->element_values[SWITCH_POSITION_HINTS].parsed_value;
}
else
switch_data = NULL;
control_data = box_data->control_data[j];
if (switch_data != NULL &&
- switch_position < (int) (control_data->element_values[CONTROL_POSITION_HINTS].parsed_value))
+ switch_position < (int) (intptr_t) (control_data->element_values[CONTROL_POSITION_HINTS].parsed_value))
{
printf (" SWITCH %s\n",
(char *) switch_data->element_values[0].parsed_value);
/* Create the handles, menu and iconify */
- if ((Boolean) panel.element_values[PANEL_DISPLAY_HANDLES].parsed_value)
+ if ((intptr_t) panel.element_values[PANEL_DISPLAY_HANDLES].parsed_value)
{
XtTranslations handle_translations = HandleInputTranslations();
XtAddCallback (panel.right_handle, XmNhelpCallback,
(XtCallbackProc) GeneralTopicHelpCB, PANEL_HANDLE);
- if ((Boolean) panel.element_values[PANEL_DISPLAY_MENU].parsed_value)
+ if ((intptr_t) panel.element_values[PANEL_DISPLAY_MENU].parsed_value)
{
panel.menu = PanelControlCreate (panel.form, "menu", menu_normal_image);
XtSetValues (panel.left_handle, al, ac);
}
- if ((Boolean) panel.element_values[PANEL_DISPLAY_MINIMIZE].parsed_value)
+ if ((intptr_t) panel.element_values[PANEL_DISPLAY_MINIMIZE].parsed_value)
{
panel.iconify =
PanelControlCreate (panel.form, "minimize", minimize_normal_image);
XFreePixmap (display, busy_pixmap_mask);
- panel.resolution = (int) panel.element_values[PANEL_RESOLUTION].parsed_value;
+ panel.resolution = (int) (intptr_t) panel.element_values[PANEL_RESOLUTION].parsed_value;
/* Extract and validate resolution. */
XtSetArg (al[ac], XmNbottomOffset, 0); ac++;
switch_position =
- (int) box_data->switch_data->element_values[SWITCH_POSITION_HINTS].parsed_value;
+ (intptr_t) box_data->switch_data->element_values[SWITCH_POSITION_HINTS].parsed_value;
/* Determine if the defined switch position is actually the */
{
for (j = 0; j < box_data->control_data_count; j++)
{
- if (switch_position < (int) ((box_data->control_data[j])->element_values[CONTROL_POSITION_HINTS].parsed_value))
+ if (switch_position < (intptr_t) ((box_data->control_data[j])->element_values[CONTROL_POSITION_HINTS].parsed_value))
break;
}
for (j = 0; j < box_data->control_data_count; j++)
{
if (switch_position <
- (int) ((box_data->control_data[j])->element_values[CONTROL_POSITION_HINTS].parsed_value))
+ (intptr_t) ((box_data->control_data[j])->element_values[CONTROL_POSITION_HINTS].parsed_value))
{
ControlCreate (box_data->left_control_form,
&box_data->control_data[0], j);
else
{
if (control_data != NULL &&
- (char) control_data->element_values[CONTROL_TYPE].parsed_value ==
+ (intptr_t) control_data->element_values[CONTROL_TYPE].parsed_value ==
CONTROL_CLOCK)
{
if (panel.color_use != XmCO_BLACK_WHITE)
XtSetArg (al[*ac], XmNbottomShadowColor, panel.primary_pixel_set->bs);(*ac)++;
XtSetArg (al[*ac], XmNselectColor, panel.primary_pixel_set->sc); (*ac)++;
- if ((char) control_data->element_values[CONTROL_TYPE].parsed_value ==
+ if ((intptr_t) control_data->element_values[CONTROL_TYPE].parsed_value ==
CONTROL_DATE)
{
/*
/* If this is not a subpanel control and the keyword is is set so that */
/* labels are not to be displayed, set the string resource to NULL. */
- if (container_type != SUBPANEL && (Boolean)
+ if (container_type != SUBPANEL && (intptr_t)
panel.element_values[PANEL_DISPLAY_CONTROL_LABELS].parsed_value == False)
{
XtSetArg (al[*ac], XmNstring, NULL); (*ac)++;
(char *) control_data->element_values[CONTROL_LABEL].parsed_value;
- if ((int) control_data->element_values[CONTROL_TYPE].parsed_value
+ if ((intptr_t) control_data->element_values[CONTROL_TYPE].parsed_value
!= CONTROL_BLANK)
{
if (control_label != NULL)
}
if (panel.resolution == HIGH &&
- (char) control_data->element_values[CONTROL_CONTAINER_TYPE].parsed_value == BOX &&
+ (intptr_t) control_data->element_values[CONTROL_CONTAINER_TYPE].parsed_value == BOX &&
in_subpanel == False)
margin_width = 5;
else
/* Switch on the controls control type to set the behaviors */
/* specific to the individual control types. */
- switch ((char) control_data->element_values[CONTROL_TYPE].parsed_value)
+ switch ((intptr_t) control_data->element_values[CONTROL_TYPE].parsed_value)
{
case CONTROL_BLANK:
{
XtSetArg (al[*ac], XmNmarginWidth, margin_width); (*ac)++;
- if ((char) control_data->element_values[CONTROL_MONITOR_TYPE].parsed_value == MONITOR_NONE)
+ if ((intptr_t) control_data->element_values[CONTROL_MONITOR_TYPE].parsed_value == MONITOR_NONE)
{
XtSetArg (al[*ac], XmNcontrolType, XmCONTROL_BUTTON); (*ac)++;
}
- else if ((char) control_data->element_values[CONTROL_MONITOR_TYPE].parsed_value == MONITOR_FILE)
+ else if ((intptr_t) control_data->element_values[CONTROL_MONITOR_TYPE].parsed_value == MONITOR_FILE)
{
String file_name;
XtSetArg (al[*ac], XmNfileName, *expanded_file_name); (*ac)++;
XtSetArg (al[*ac], XmNcontrolType, XmCONTROL_MONITOR); (*ac)++;
}
- else if ((char) control_data->element_values[CONTROL_MONITOR_TYPE].parsed_value == MONITOR_MAIL)
+ else if ((intptr_t) control_data->element_values[CONTROL_MONITOR_TYPE].parsed_value == MONITOR_MAIL)
{
String file_name;
/* Create either a normal control or a clock */
- if ((int) control_data->element_values[CONTROL_TYPE].parsed_value
+ if ((intptr_t) control_data->element_values[CONTROL_TYPE].parsed_value
== CONTROL_CLOCK)
icon = DtCreateClock (parent, "icon", al, ac);
else
icon = _DtCreateControl (parent, "icon", al, ac);
- if ((int)control_data->element_values[CONTROL_TYPE].parsed_value
+ if ((intptr_t)control_data->element_values[CONTROL_TYPE].parsed_value
== CONTROL_DATE &&
(control_data->subpanel_data == NULL || main_copy) &&
(main_copy ||
- (int)control_data->element_values[CONTROL_CONTAINER_TYPE].parsed_value
+ (intptr_t)control_data->element_values[CONTROL_CONTAINER_TYPE].parsed_value
== SUBPANEL))
{
format = nl_langinfo(D_FMT);
if (control_data->element_values[CONTROL_DROP_ACTION].parsed_value
!= NULL)
{
- if ((int)control_data->element_values[CONTROL_TYPE].parsed_value ==
+ if ((intptr_t)control_data->element_values[CONTROL_TYPE].parsed_value ==
CONTROL_FILE)
{
if (control_data->is_action)
if (!main_copy)
{
- if ((Boolean) control_data->element_values[CONTROL_PUSH_RECALL].parsed_value)
+ if ((intptr_t) control_data->element_values[CONTROL_PUSH_RECALL].parsed_value)
PushRecallRegister (control_data, True);
- if ((char) control_data->element_values[CONTROL_TYPE].parsed_value == CONTROL_CLIENT)
+ if ((intptr_t) control_data->element_values[CONTROL_TYPE].parsed_value == CONTROL_CLIENT)
EmbeddedClientRegister (control_data, True);
}
}
panel.switch_row_count =
- (int) (switch_data->element_values[SWITCH_NUMBER_OF_ROWS].parsed_value);
+ (int) (intptr_t) (switch_data->element_values[SWITCH_NUMBER_OF_ROWS].parsed_value);
switch_data->buttons =
(Widget *) XtMalloc (sizeof (Widget *) * switch_count);
}
else
{
- if ((int) (control_data[i]->
+ if ((intptr_t) (control_data[i]->
element_values[CONTROL_MONITOR_TYPE].parsed_value) != MONITOR_NONE)
{
if (CheckOtherMonitorsOn(control_data[i]->subpanel_data))
/* the drop zone as the top child of the form */
control_install =
- (Boolean) subpanel_data->element_values[SUBPANEL_CONTROL_INSTALL].parsed_value;
+ (Boolean) (intptr_t) subpanel_data->element_values[SUBPANEL_CONTROL_INSTALL].parsed_value;
if (control_install)
{
/* have monitor files attached to them. If so, the constraints */
/* for the form need to be set appropriately. */
- if ((int) (main_control_data->
+ if ((intptr_t) (main_control_data->
element_values[CONTROL_MONITOR_TYPE].parsed_value) != MONITOR_NONE)
monitor = True;
{
for (i = 0; i < subpanel_data->control_data_count; i++)
{
- if ((int) (subpanel_data->control_data[i]->
+ if ((intptr_t) (subpanel_data->control_data[i]->
element_values[CONTROL_MONITOR_TYPE].parsed_value) != MONITOR_NONE)
{
monitor = True;
/* If there is a monitor file, create the indicator */
- if ((int) (control_data->
+ if ((intptr_t) (control_data->
element_values[CONTROL_MONITOR_TYPE].parsed_value) != MONITOR_NONE)
{
ac = ac_save;
for (j = 0; j < subpanel_data->control_data_count; j++)
{
- if ((int) subpanel_data->control_data[j]->
+ if ((intptr_t) subpanel_data->control_data[j]->
element_values[CONTROL_MONITOR_TYPE].parsed_value != MONITOR_NONE)
{
control_monitor = True;
}
}
- if ((int) main_control_data->
+ if ((intptr_t) main_control_data->
element_values[CONTROL_MONITOR_TYPE].parsed_value != MONITOR_NONE)
{
control_monitor = True;
control_icon = main_control_data->icon;
main_control_data->icon = subpanel_data->main_panel_icon_copy;
- if ((Boolean) main_control_data->element_values[CONTROL_PUSH_RECALL].parsed_value)
+ if ((intptr_t) main_control_data->element_values[CONTROL_PUSH_RECALL].parsed_value)
PushRecallRegister (main_control_data, True);
- if ((char) main_control_data->element_values[CONTROL_TYPE].parsed_value == CONTROL_CLIENT)
+ if ((intptr_t) main_control_data->element_values[CONTROL_TYPE].parsed_value == CONTROL_CLIENT)
EmbeddedClientRegister (main_control_data, True);
main_control_data->icon = control_icon;
- if ((char) main_control_data->
+ if ((intptr_t) main_control_data->
element_values[CONTROL_TYPE].parsed_value == CONTROL_CLIENT)
{
EmbeddedClientReparent ((char *) main_control_data->
}
else
{
- if ((Boolean) subpanel_data->default_control->element_values[CONTROL_PUSH_RECALL].parsed_value)
+ if ((intptr_t) subpanel_data->default_control->element_values[CONTROL_PUSH_RECALL].parsed_value)
PushRecallRegister (subpanel_data->default_control, True);
- if ((char) subpanel_data->default_control->element_values[CONTROL_TYPE].parsed_value == CONTROL_CLIENT)
+ if ((intptr_t) subpanel_data->default_control->element_values[CONTROL_TYPE].parsed_value == CONTROL_CLIENT)
EmbeddedClientRegister (subpanel_data->default_control, True);
- if ((char) subpanel_data->default_control->
+ if ((intptr_t) subpanel_data->default_control->
element_values[CONTROL_TYPE].parsed_value == CONTROL_CLIENT)
{
EmbeddedClientReparent ((char *) subpanel_data->default_control->
/* If this is a toggle of a client control from the subpanel to */
/* the main panel, call the reparenting function. */
- if ((char) control_data->
+ if ((intptr_t) control_data->
element_values[CONTROL_TYPE].parsed_value == CONTROL_CLIENT)
{
EmbeddedClientReparent ((char *) control_data->
WmFpEmbeddedClientData * embedded_client = NULL;
- if ((char) control_data->
+ if ((intptr_t) control_data->
element_values[CONTROL_TYPE].parsed_value != CONTROL_CLIENT)
return;