mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
cleanup: eliminate missing sentinel warnings
This commit is contained in:
parent
165af415d1
commit
4312a1190b
12 changed files with 41 additions and 41 deletions
|
@ -184,7 +184,7 @@ _ttdt_realized_widget(
|
||||||
}
|
}
|
||||||
Boolean mappedWhenManaged = False;
|
Boolean mappedWhenManaged = False;
|
||||||
CALLXT(XtVaGetValues)( _widget,
|
CALLXT(XtVaGetValues)( _widget,
|
||||||
XtNmappedWhenManaged, &mappedWhenManaged, 0 );
|
XtNmappedWhenManaged, &mappedWhenManaged, NULL );
|
||||||
if (! mappedWhenManaged) {
|
if (! mappedWhenManaged) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -838,7 +838,7 @@ _ttdt_is_iconic(
|
||||||
{
|
{
|
||||||
Boolean iconic;
|
Boolean iconic;
|
||||||
// XXX XtNiconic always returns false?!
|
// XXX XtNiconic always returns false?!
|
||||||
CALLXT(XtVaGetValues)( widget, XtNiconic, &iconic, 0 );
|
CALLXT(XtVaGetValues)( widget, XtNiconic, &iconic, NULL );
|
||||||
return (iconic == TRUE);
|
return (iconic == TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -253,7 +253,7 @@ ds_force_popup_on_screen(Widget popup, int *popup_x_p, int *popup_y_p) {
|
||||||
XtVaSetValues(popup,
|
XtVaSetValues(popup,
|
||||||
XmNx, left,
|
XmNx, left,
|
||||||
XmNy, top,
|
XmNy, top,
|
||||||
0) ;
|
NULL) ;
|
||||||
|
|
||||||
if (popup_x != *popup_x_p || popup_y != *popup_y_p) rcode = TRUE ;
|
if (popup_x != *popup_x_p || popup_y != *popup_y_p) rcode = TRUE ;
|
||||||
else rcode = FALSE ;
|
else rcode = FALSE ;
|
||||||
|
|
|
@ -277,7 +277,7 @@ p_create_editor_pane(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
XtVaGetValues(pu->ep_dur_cb, XmNtextField, &text_field, 0);
|
XtVaGetValues(pu->ep_dur_cb, XmNtextField, &text_field, NULL);
|
||||||
XtAddCallback(text_field, XmNvalueChangedCallback, p_mark_change, pu);
|
XtAddCallback(text_field, XmNvalueChangedCallback, p_mark_change, pu);
|
||||||
XtAddCallback(pu->ep_dur_cb, XmNselectionCallback, p_mark_change, pu);
|
XtAddCallback(pu->ep_dur_cb, XmNselectionCallback, p_mark_change, pu);
|
||||||
|
|
||||||
|
|
|
@ -503,7 +503,7 @@ procopen __PARAM__((const char* cmd, char** argv, char** envv, long* modv, long
|
||||||
if (!fork())
|
if (!fork())
|
||||||
{
|
{
|
||||||
sfsprintf(path, sizeof(path), "%d", getppid());
|
sfsprintf(path, sizeof(path), "%d", getppid());
|
||||||
execlp("trace", "trace", "-p", path, NiL);
|
execlp("trace", "trace", "-p", path, NULL);
|
||||||
_exit(EXIT_NOTFOUND);
|
_exit(EXIT_NOTFOUND);
|
||||||
}
|
}
|
||||||
sleep(2);
|
sleep(2);
|
||||||
|
|
|
@ -130,7 +130,7 @@ MainWindow::initialize( )
|
||||||
theApplication->baseWidget(),
|
theApplication->baseWidget(),
|
||||||
XmNdeleteResponse, XmDO_NOTHING,
|
XmNdeleteResponse, XmDO_NOTHING,
|
||||||
XmNallowShellResize, _allow_resize,
|
XmNallowShellResize, _allow_resize,
|
||||||
NULL, 0 );
|
NULL, NULL );
|
||||||
|
|
||||||
#ifdef USE_EDITRES
|
#ifdef USE_EDITRES
|
||||||
XtAddEventHandler(
|
XtAddEventHandler(
|
||||||
|
|
|
@ -94,7 +94,7 @@ DialogShell::initialize()
|
||||||
_w = XtVaCreatePopupShell(
|
_w = XtVaCreatePopupShell(
|
||||||
_name, _widgetClass, _parent->baseWidget(),
|
_name, _widgetClass, _parent->baseWidget(),
|
||||||
XmNdefaultPosition, False,
|
XmNdefaultPosition, False,
|
||||||
NULL, 0 );
|
NULL, NULL );
|
||||||
#ifdef USE_EDITRES
|
#ifdef USE_EDITRES
|
||||||
XtAddEventHandler(
|
XtAddEventHandler(
|
||||||
_w, (EventMask) 0, True,
|
_w, (EventMask) 0, True,
|
||||||
|
|
|
@ -294,7 +294,7 @@ Widget owner;
|
||||||
Widget delNoticeW = NULL;
|
Widget delNoticeW = NULL;
|
||||||
|
|
||||||
delNoticeW = CreateDelNotice(owner);
|
delNoticeW = CreateDelNotice(owner);
|
||||||
XtVaSetValues(XtParent(delNoticeW), XmNmappedWhenManaged, False, 0);
|
XtVaSetValues(XtParent(delNoticeW), XmNmappedWhenManaged, False, NULL);
|
||||||
XtManageChild(delNoticeW);
|
XtManageChild(delNoticeW);
|
||||||
|
|
||||||
for ( i=0 ; i < dn.disp_num ; i++ ) {
|
for ( i=0 ; i < dn.disp_num ; i++ ) {
|
||||||
|
@ -304,7 +304,7 @@ Widget owner;
|
||||||
drawDelCode(i);
|
drawDelCode(i);
|
||||||
drawDelPtn(i);
|
drawDelPtn(i);
|
||||||
}
|
}
|
||||||
XtVaSetValues(XtParent(delNoticeW), XmNmappedWhenManaged, True, 0);
|
XtVaSetValues(XtParent(delNoticeW), XmNmappedWhenManaged, True, NULL);
|
||||||
|
|
||||||
XBell(XtDisplayOfObject(delNoticeW), 0);
|
XBell(XtDisplayOfObject(delNoticeW), 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -183,7 +183,7 @@ int i;
|
||||||
XtVaSetValues( wgeStaT_list[i],
|
XtVaSetValues( wgeStaT_list[i],
|
||||||
XmNbackground, (XtArgVal) resource.foreground,
|
XmNbackground, (XtArgVal) resource.foreground,
|
||||||
XmNforeground, (XtArgVal) resource.background,
|
XmNforeground, (XtArgVal) resource.background,
|
||||||
0);
|
NULL);
|
||||||
xl.list_winID = XtWindow( wgeStaT_disp[i] ) ;
|
xl.list_winID = XtWindow( wgeStaT_disp[i] ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -194,8 +194,8 @@ int i;
|
||||||
XtVaSetValues( wgeStaT_list[i],
|
XtVaSetValues( wgeStaT_list[i],
|
||||||
XmNbackground, (XtArgVal) resource.background,
|
XmNbackground, (XtArgVal) resource.background,
|
||||||
XmNforeground, (XtArgVal) resource.foreground,
|
XmNforeground, (XtArgVal) resource.foreground,
|
||||||
0);
|
NULL);
|
||||||
xl.list_winID = NULL ;
|
xl.list_winID = 0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -505,7 +505,7 @@ Widget owner;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* create the scroll bar for Charcter list */
|
/* create the scroll bar for Charcter list */
|
||||||
XtVaGetValues( listBase, XmNheight, &(edlist.list_h), 0);
|
XtVaGetValues( listBase, XmNheight, &(edlist.list_h), NULL);
|
||||||
|
|
||||||
if (( slimax = efctPtnNum()) < edlist.nlist)
|
if (( slimax = efctPtnNum()) < edlist.nlist)
|
||||||
slimax = edlist.nlist;
|
slimax = edlist.nlist;
|
||||||
|
|
|
@ -59,7 +59,7 @@ patternProps2Pat(
|
||||||
{
|
{
|
||||||
Tt_pattern pat;
|
Tt_pattern pat;
|
||||||
XtVaGetValues( instance->patternProps_shellform,
|
XtVaGetValues( instance->patternProps_shellform,
|
||||||
XmNuserData, &pat, 0 );
|
XmNuserData, &pat, NULL );
|
||||||
return pat;
|
return pat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ _DtTtPatternWidgetUpdate(
|
||||||
if (tt_is_err( status )) {
|
if (tt_is_err( status )) {
|
||||||
printout = tt_status_message( status );
|
printout = tt_status_message( status );
|
||||||
}
|
}
|
||||||
XtVaSetValues( instance->patternText, XmNvalue, printout, 0 );
|
XtVaSetValues( instance->patternText, XmNvalue, printout, NULL );
|
||||||
|
|
||||||
_DtTtPatternSetUpdating( pat, True );
|
_DtTtPatternSetUpdating( pat, True );
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ _DtTtPatternWidgetUpdate(
|
||||||
choice = instance->categoryChoice_items.HANDLE_ROTATE_item;
|
choice = instance->categoryChoice_items.HANDLE_ROTATE_item;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
XtVaSetValues( instance->categoryChoice, XmNmenuHistory, choice, 0 );
|
XtVaSetValues( instance->categoryChoice, XmNmenuHistory, choice, NULL );
|
||||||
|
|
||||||
_DtTtPatternSetUpdating( pat, False );
|
_DtTtPatternSetUpdating( pat, False );
|
||||||
}
|
}
|
||||||
|
@ -356,7 +356,7 @@ DtTtPatternWidgetCreate(
|
||||||
dtb_pattern_props_pattern_props_initialize( instance, parent );
|
dtb_pattern_props_pattern_props_initialize( instance, parent );
|
||||||
widget = instance->patternProps;
|
widget = instance->patternProps;
|
||||||
|
|
||||||
XtVaSetValues( instance->patternProps_shellform, XmNuserData, pat, 0 );
|
XtVaSetValues( instance->patternProps_shellform, XmNuserData, pat, NULL );
|
||||||
status = tt_pattern_user_set( pat, DtTtPatWidgetKey, widget );
|
status = tt_pattern_user_set( pat, DtTtPatWidgetKey, widget );
|
||||||
if (tt_is_err( status )) {
|
if (tt_is_err( status )) {
|
||||||
XtDestroyWidget( widget );
|
XtDestroyWidget( widget );
|
||||||
|
@ -375,7 +375,7 @@ DtTtPatternWidgetCreate(
|
||||||
labelStream << "Tt_pattern " << (void *)pat << ends;
|
labelStream << "Tt_pattern " << (void *)pat << ends;
|
||||||
XtVaSetValues( instance->patternProps,
|
XtVaSetValues( instance->patternProps,
|
||||||
XmNtitle, labelStream.str(),
|
XmNtitle, labelStream.str(),
|
||||||
0 );
|
NULL );
|
||||||
delete labelStream.str();
|
delete labelStream.str();
|
||||||
|
|
||||||
_DtTtPatternWidgetUpdate( instance, pat );
|
_DtTtPatternWidgetUpdate( instance, pat );
|
||||||
|
|
|
@ -98,10 +98,10 @@ _DtSessionChooserSet(
|
||||||
instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin );
|
instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin );
|
||||||
}
|
}
|
||||||
DtTtSetLabel( instance->sessionOkButton, okString );
|
DtTtSetLabel( instance->sessionOkButton, okString );
|
||||||
XtVaSetValues( instance->sessionChooser, XmNtitle, title, 0 );
|
XtVaSetValues( instance->sessionChooser, XmNtitle, title, NULL );
|
||||||
// Remember dialog mode, entity
|
// Remember dialog mode, entity
|
||||||
XtVaSetValues( instance->sessionOkButton, XmNuserData, choice, 0 );
|
XtVaSetValues( instance->sessionOkButton, XmNuserData, choice, NULL );
|
||||||
XtVaSetValues( instance->sessionCancelButton, XmNuserData, entity, 0 );
|
XtVaSetValues( instance->sessionCancelButton, XmNuserData, entity, NULL );
|
||||||
XmTextPosition last =
|
XmTextPosition last =
|
||||||
XmTextFieldGetLastPosition( instance->sessionText );
|
XmTextFieldGetLastPosition( instance->sessionText );
|
||||||
Time when =
|
Time when =
|
||||||
|
@ -209,9 +209,9 @@ sessionOK(
|
||||||
session = 0;
|
session = 0;
|
||||||
}
|
}
|
||||||
XtPointer val;
|
XtPointer val;
|
||||||
XtVaGetValues( instance->sessionOkButton, XmNuserData, &val, 0 );
|
XtVaGetValues( instance->sessionOkButton, XmNuserData, &val, NULL );
|
||||||
_DtSessionChooserAction choice = (_DtSessionChooserAction) (long) val;
|
_DtSessionChooserAction choice = (_DtSessionChooserAction) (long) val;
|
||||||
XtVaGetValues( instance->sessionCancelButton, XmNuserData, &val, 0 );
|
XtVaGetValues( instance->sessionCancelButton, XmNuserData, &val, NULL );
|
||||||
Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
|
Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
|
||||||
switch (choice) {
|
switch (choice) {
|
||||||
Tt_status status;
|
Tt_status status;
|
||||||
|
@ -267,7 +267,7 @@ sessionHelp(
|
||||||
DtbSessionChooserSessionChooserInfo instance =
|
DtbSessionChooserSessionChooserInfo instance =
|
||||||
(DtbSessionChooserSessionChooserInfo)clientData;
|
(DtbSessionChooserSessionChooserInfo)clientData;
|
||||||
XtPointer val;
|
XtPointer val;
|
||||||
XtVaGetValues( instance->sessionOkButton, XmNuserData, &val, 0 );
|
XtVaGetValues( instance->sessionOkButton, XmNuserData, &val, NULL );
|
||||||
_DtSessionChooserAction choice = (_DtSessionChooserAction) (long) val;
|
_DtSessionChooserAction choice = (_DtSessionChooserAction) (long) val;
|
||||||
Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
|
Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
|
||||||
switch (choice) {
|
switch (choice) {
|
||||||
|
|
|
@ -182,10 +182,10 @@ _DtStringChooserSet(
|
||||||
}
|
}
|
||||||
DtTtSetLabel( instance->stringOkButton, okString );
|
DtTtSetLabel( instance->stringOkButton, okString );
|
||||||
DtTtSetLabel( instance->stringText_label, valueLabel );
|
DtTtSetLabel( instance->stringText_label, valueLabel );
|
||||||
XtVaSetValues( instance->stringChooser, XmNtitle, title, 0 );
|
XtVaSetValues( instance->stringChooser, XmNtitle, title, NULL );
|
||||||
// Remember dialog mode, entity
|
// Remember dialog mode, entity
|
||||||
XtVaSetValues( instance->stringOkButton, XmNuserData, choice, 0 );
|
XtVaSetValues( instance->stringOkButton, XmNuserData, choice, NULL );
|
||||||
XtVaSetValues( instance->stringCancelButton, XmNuserData, entity, 0 );
|
XtVaSetValues( instance->stringCancelButton, XmNuserData, entity, NULL );
|
||||||
XmTextPosition last = XmTextFieldGetLastPosition( instance->stringText );
|
XmTextPosition last = XmTextFieldGetLastPosition( instance->stringText );
|
||||||
Time when = XtLastTimestampProcessed( XtDisplay( instance->stringText ));
|
Time when = XtLastTimestampProcessed( XtDisplay( instance->stringText ));
|
||||||
XmTextFieldSetSelection( instance->stringText, 0, last, when );
|
XmTextFieldSetSelection( instance->stringText, 0, last, when );
|
||||||
|
@ -242,9 +242,9 @@ stringOkayed(
|
||||||
string = 0;
|
string = 0;
|
||||||
}
|
}
|
||||||
XtPointer val;
|
XtPointer val;
|
||||||
XtVaGetValues( instance->stringOkButton, XmNuserData, &val, 0 );
|
XtVaGetValues( instance->stringOkButton, XmNuserData, &val, NULL );
|
||||||
_DtStringChooserAction choice = (_DtStringChooserAction) (long) val;
|
_DtStringChooserAction choice = (_DtStringChooserAction) (long) val;
|
||||||
XtVaGetValues( instance->stringCancelButton, XmNuserData, &val, 0 );
|
XtVaGetValues( instance->stringCancelButton, XmNuserData, &val, NULL );
|
||||||
Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
|
Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
|
||||||
switch (choice) {
|
switch (choice) {
|
||||||
Tt_status status;
|
Tt_status status;
|
||||||
|
@ -327,7 +327,7 @@ stringHelp(
|
||||||
DtbStringChooserStringChooserInfo instance =
|
DtbStringChooserStringChooserInfo instance =
|
||||||
(DtbStringChooserStringChooserInfo)clientData;
|
(DtbStringChooserStringChooserInfo)clientData;
|
||||||
XtPointer val;
|
XtPointer val;
|
||||||
XtVaGetValues( instance->stringOkButton, XmNuserData, &val, 0 );
|
XtVaGetValues( instance->stringOkButton, XmNuserData, &val, NULL );
|
||||||
_DtStringChooserAction choice = (_DtStringChooserAction) (long) val;
|
_DtStringChooserAction choice = (_DtStringChooserAction) (long) val;
|
||||||
Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
|
Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
|
||||||
switch (choice) {
|
switch (choice) {
|
||||||
|
|
|
@ -208,10 +208,10 @@ _DtTtChooserSet(
|
||||||
XtVaSetValues( instance->chooserList,
|
XtVaSetValues( instance->chooserList,
|
||||||
XmNitemCount, itemCount,
|
XmNitemCount, itemCount,
|
||||||
XmNitems, items,
|
XmNitems, items,
|
||||||
0 );
|
NULL );
|
||||||
XmListDeselectAllItems( instance->chooserList );
|
XmListDeselectAllItems( instance->chooserList );
|
||||||
XmTextFieldSetString( instance->chooserText, 0 );
|
XmTextFieldSetString( instance->chooserText, 0 );
|
||||||
XtVaSetValues( instance->chooser, XmNtitle, title, 0 );
|
XtVaSetValues( instance->chooser, XmNtitle, title, NULL );
|
||||||
|
|
||||||
std::ostrstream valuesStream;
|
std::ostrstream valuesStream;
|
||||||
valuesStream << itemCount << " " << valuesLabel;
|
valuesStream << itemCount << " " << valuesLabel;
|
||||||
|
@ -221,8 +221,8 @@ _DtTtChooserSet(
|
||||||
delete valuesStream.str();
|
delete valuesStream.str();
|
||||||
|
|
||||||
// Remember dialog mode, entity
|
// Remember dialog mode, entity
|
||||||
XtVaSetValues( instance->chooserOkButton, XmNuserData, choice, 0 );
|
XtVaSetValues( instance->chooserOkButton, XmNuserData, choice, NULL );
|
||||||
XtVaSetValues( instance->chooserCancelButton, XmNuserData, entity, 0 );
|
XtVaSetValues( instance->chooserCancelButton, XmNuserData, entity, NULL );
|
||||||
|
|
||||||
XtManageChild( instance->chooser_shellform );
|
XtManageChild( instance->chooser_shellform );
|
||||||
}
|
}
|
||||||
|
@ -272,7 +272,7 @@ choiceSelected(
|
||||||
DtbTtChooserChooserInfo instance = (DtbTtChooserChooserInfo)clientData;
|
DtbTtChooserChooserInfo instance = (DtbTtChooserChooserInfo)clientData;
|
||||||
XmListCallbackStruct *info = (XmListCallbackStruct *)callData;
|
XmListCallbackStruct *info = (XmListCallbackStruct *)callData;
|
||||||
int choice;
|
int choice;
|
||||||
XtVaGetValues( instance->chooserOkButton, XmNuserData, &choice, 0 );
|
XtVaGetValues( instance->chooserOkButton, XmNuserData, &choice, NULL );
|
||||||
DtTtType type;
|
DtTtType type;
|
||||||
Boolean isString = False;
|
Boolean isString = False;
|
||||||
switch ((_DtTtChooserAction)choice) {
|
switch ((_DtTtChooserAction)choice) {
|
||||||
|
@ -340,7 +340,7 @@ choiceOkayed(
|
||||||
DtbTtChooserChooserInfo instance = (DtbTtChooserChooserInfo)clientData;
|
DtbTtChooserChooserInfo instance = (DtbTtChooserChooserInfo)clientData;
|
||||||
char *text = XmTextFieldGetString( instance->chooserText );
|
char *text = XmTextFieldGetString( instance->chooserText );
|
||||||
int ival;
|
int ival;
|
||||||
XtVaGetValues( instance->chooserOkButton, XmNuserData, &ival, 0 );
|
XtVaGetValues( instance->chooserOkButton, XmNuserData, &ival, NULL );
|
||||||
_DtTtChooserAction choice = (_DtTtChooserAction)ival;
|
_DtTtChooserAction choice = (_DtTtChooserAction)ival;
|
||||||
Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
|
Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
|
||||||
switch (choice) {
|
switch (choice) {
|
||||||
|
@ -374,25 +374,25 @@ choiceOkayed(
|
||||||
break;
|
break;
|
||||||
case _DtTtChooserMessageOpSet:
|
case _DtTtChooserMessageOpSet:
|
||||||
XtVaGetValues( instance->chooserCancelButton,
|
XtVaGetValues( instance->chooserCancelButton,
|
||||||
XmNuserData, &xtPtr, 0 );
|
XmNuserData, &xtPtr, NULL );
|
||||||
_DtTtMessageUpdate( (Tt_message)xtPtr, choice, text );
|
_DtTtMessageUpdate( (Tt_message)xtPtr, choice, text );
|
||||||
XtUnmanageChild( instance->chooser_shellform );
|
XtUnmanageChild( instance->chooser_shellform );
|
||||||
break;
|
break;
|
||||||
case _DtTtChooserPatternOpAdd:
|
case _DtTtChooserPatternOpAdd:
|
||||||
XtVaGetValues( instance->chooserCancelButton,
|
XtVaGetValues( instance->chooserCancelButton,
|
||||||
XmNuserData, &xtPtr, 0 );
|
XmNuserData, &xtPtr, NULL );
|
||||||
_DtTtPatternUpdate( (Tt_pattern)xtPtr, choice, text );
|
_DtTtPatternUpdate( (Tt_pattern)xtPtr, choice, text );
|
||||||
XtUnmanageChild( instance->chooser_shellform );
|
XtUnmanageChild( instance->chooser_shellform );
|
||||||
break;
|
break;
|
||||||
case _DtTtChooserMessageHandlerSet:
|
case _DtTtChooserMessageHandlerSet:
|
||||||
XtVaGetValues( instance->chooserCancelButton,
|
XtVaGetValues( instance->chooserCancelButton,
|
||||||
XmNuserData, &xtPtr, 0 );
|
XmNuserData, &xtPtr, NULL );
|
||||||
_DtTtMessageUpdate( (Tt_message)xtPtr, choice, text );
|
_DtTtMessageUpdate( (Tt_message)xtPtr, choice, text );
|
||||||
XtUnmanageChild( instance->chooser_shellform );
|
XtUnmanageChild( instance->chooser_shellform );
|
||||||
break;
|
break;
|
||||||
case _DtTtChooserPatternSenderAdd:
|
case _DtTtChooserPatternSenderAdd:
|
||||||
XtVaGetValues( instance->chooserCancelButton,
|
XtVaGetValues( instance->chooserCancelButton,
|
||||||
XmNuserData, &xtPtr, 0 );
|
XmNuserData, &xtPtr, NULL );
|
||||||
_DtTtPatternUpdate( (Tt_pattern)xtPtr, choice, text );
|
_DtTtPatternUpdate( (Tt_pattern)xtPtr, choice, text );
|
||||||
XtUnmanageChild( instance->chooser_shellform );
|
XtUnmanageChild( instance->chooser_shellform );
|
||||||
break;
|
break;
|
||||||
|
@ -592,7 +592,7 @@ ttChooserHelp(
|
||||||
/*** DTB_USER_CODE_START vvv Add C code below vvv ***/
|
/*** DTB_USER_CODE_START vvv Add C code below vvv ***/
|
||||||
DtbTtChooserChooserInfo instance = (DtbTtChooserChooserInfo)clientData;
|
DtbTtChooserChooserInfo instance = (DtbTtChooserChooserInfo)clientData;
|
||||||
int ival;
|
int ival;
|
||||||
XtVaGetValues( instance->chooserOkButton, XmNuserData, &ival, 0 );
|
XtVaGetValues( instance->chooserOkButton, XmNuserData, &ival, NULL );
|
||||||
_DtTtChooserAction choice = (_DtTtChooserAction)ival;
|
_DtTtChooserAction choice = (_DtTtChooserAction)ival;
|
||||||
Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
|
Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
|
||||||
switch (choice) {
|
switch (choice) {
|
||||||
|
|
Loading…
Reference in a new issue