#include "SortCmd.hh"
-extern force( Widget );
+extern int force( Widget );
static const char * NormalIcon = "DtMail";
static const char * EmptyIcon = "DtMnone";
printHelpId("form1", form1);
/* add help callback */
// XtAddCallback(form1, XmNhelpCallback, HelpCB, helpId);
- XtAddCallback(form1, XmNhelpCallback, HelpCB, DTMAILWINDOWID);
+ XtAddCallback(form1, XmNhelpCallback, HelpCB, (void *)DTMAILWINDOWID);
panedW = XtCreateManagedWidget("panedW", xmPanedWindowWidgetClass,
form1, NULL, 0);
/* add help callback */
// XtAddCallback(_rowOfLabels, XmNhelpCallback, HelpCB, helpId);
XtAddCallback(
- _rowOfLabels, XmNhelpCallback, HelpCB, DTMAILWINDOWROWOFLABELSID);
+ _rowOfLabels, XmNhelpCallback, HelpCB, (void *)DTMAILWINDOWROWOFLABELSID);
XtVaSetValues(_rowOfLabels,
XmNrightAttachment,XmATTACH_FORM,
XtAddCallback(
_list->get_scrolling_list(), XmNhelpCallback,
- HelpCB, DTMAILMSGLISTID);
+ HelpCB, (void *)DTMAILMSGLISTID);
XtVaSetValues(_list->get_scrolling_list(), XmNuserData, this, NULL);
_rowOfButtons =
TRUE, this );
ci = new ButtonInterface (_rowOfButtons, _delete_button);
w = ci->baseWidget();
- XtAddCallback(w, XmNhelpCallback, HelpCB, DTMAILDELBTNID);
+ XtAddCallback(w, XmNhelpCallback, HelpCB, (void *)DTMAILDELBTNID);
XtVaSetValues(w,
XmNleftAttachment, XmATTACH_FORM,
XmNtopAttachment, XmATTACH_FORM,
TRUE, this );
ci = new ButtonInterface (_rowOfButtons, _next_button);
w = ci->baseWidget();
- XtAddCallback(w, XmNhelpCallback, HelpCB, DTMAILNEXTBTNID);
+ XtAddCallback(w, XmNhelpCallback, HelpCB, (void *)DTMAILNEXTBTNID);
XtVaSetValues(w,
XmNleftAttachment, XmATTACH_WIDGET,
XmNleftWidget, prev_widget,
TRUE, this );
ci = new ButtonInterface (_rowOfButtons, _previous_button);
w = ci->baseWidget();
- XtAddCallback(w, XmNhelpCallback, HelpCB, DTMAILPREVBTNID);
+ XtAddCallback(w, XmNhelpCallback, HelpCB, (void *)DTMAILPREVBTNID);
XtVaSetValues(w,
XmNleftAttachment, XmATTACH_WIDGET,
XmNleftWidget, prev_widget,
FALSE );
ci = new ButtonInterface (_rowOfButtons, _replySender_button);
w = ci->baseWidget();
- XtAddCallback(w, XmNhelpCallback, HelpCB, DTMAILREPLYBTNID);
+ XtAddCallback(w, XmNhelpCallback, HelpCB, (void *)DTMAILREPLYBTNID);
XtVaSetValues(w,
XmNleftAttachment, XmATTACH_WIDGET,
XmNleftWidget, prev_widget,
TRUE, TRUE, this);
ci = new ButtonInterface (_rowOfButtons, _print_button);
w = ci->baseWidget();
- XtAddCallback(w, XmNhelpCallback, HelpCB, DTMAILPRINTBTNID);
+ XtAddCallback(w, XmNhelpCallback, HelpCB, (void *)DTMAILPRINTBTNID);
XtVaSetValues(w,
XmNleftAttachment, XmATTACH_WIDGET,
XmNleftWidget, prev_widget,
void
RoamMenuWindow::createOpenContainerList(CmdList * open_container)
{
- int ncontainers;
+ int ncontainers, i;
char *container_name;
ContainerMenuCmd *container_cmd;
_open_container_containerlist =
new DtVirtArray<ContainerMenuCmd*>(ncontainers);
- for (int i=0; i<ncontainers; i++)
+ for (i=0; i<ncontainers; i++)
{
container_name = (*_user_containerlist)[i]->containerName();
if (NULL != container_name)
void
RoamMenuWindow::createCopyList(CmdList * copy_to)
{
- int ncontainers;
+ int ncontainers, i;
char *container_name;
ContainerMenuCmd *container_cmd;
_copyto_containerlist =
new DtVirtArray<ContainerMenuCmd *> (ncontainers);
- for (int i=0; i<ncontainers; i++)
+ for (i=0; i<ncontainers; i++)
{
container_name = (*_user_containerlist)[i]->containerName();
if (NULL != container_name)
void
RoamMenuWindow::construct_move_menu()
{
- int ncontainers;
+ int ncontainers, i;
char *container_name;
ContainerMenuCmd *container_cmd;
delete _move_containerlist;
_move_containerlist = new DtVirtArray<ContainerMenuCmd *> (ncontainers);
- for (int i=0; i<ncontainers; i++)
+ for (i=0; i<ncontainers; i++)
{
container_name = (*_user_containerlist)[i]->containerName();
if (NULL != container_name)