diff --git a/src/wxxt/src/XWidgets/xwGroup.c b/src/wxxt/src/XWidgets/xwGroup.c index 4ed61a9324..052d43a69f 100644 --- a/src/wxxt/src/XWidgets/xwGroup.c +++ b/src/wxxt/src/XWidgets/xwGroup.c @@ -155,12 +155,11 @@ static void off_cb(toggle,client_data,call_data)Widget toggle;XtPointer client Cardinal bits = sizeof(((XfwfGroupWidget)self)->xfwfGroup.selection) * 8; switch (((XfwfGroupWidget)self)->xfwfGroup.selectionStyle) { + case XfwfSingleSelection: + /* $selection = -1L; break; */ /* Allows nothing selected - disabled */ case XfwfOneSelection: XtVaSetValues(toggle, XtNon, True, NULL); /* Undo */ break; - case XfwfSingleSelection: - ((XfwfGroupWidget)self)->xfwfGroup.selection = -1L; /* Nothing selected */ - break; case XfwfMultipleSelection: if (toggle_ord < bits) ((XfwfGroupWidget)self)->xfwfGroup.selection &= ~(1L << toggle_ord); break; diff --git a/src/wxxt/src/XWidgets/xwGroup.w b/src/wxxt/src/XWidgets/xwGroup.w index 5ac24e5da9..d5476b6ec7 100644 --- a/src/wxxt/src/XWidgets/xwGroup.w +++ b/src/wxxt/src/XWidgets/xwGroup.w @@ -327,12 +327,11 @@ be turned off, except by turning on another one. Cardinal bits = sizeof($selection) * 8; switch ($selectionStyle) { + case XfwfSingleSelection: + /* $selection = -1L; break; */ /* Allows nothing selected - disabled */ case XfwfOneSelection: XtVaSetValues(toggle, XtNon, True, NULL); /* Undo */ break; - case XfwfSingleSelection: - $selection = -1L; /* Nothing selected */ - break; case XfwfMultipleSelection: if (toggle_ord < bits) $selection &= ~(1L << toggle_ord); break; diff --git a/src/wxxt/src/XWidgets/xwGroupP.h b/src/wxxt/src/XWidgets/xwGroupP.h index 14b4393537..74ddee9971 100644 --- a/src/wxxt/src/XWidgets/xwGroupP.h +++ b/src/wxxt/src/XWidgets/xwGroupP.h @@ -5,7 +5,6 @@ #define ___XWGROUPP_H #include <./xwRowColP.h> #include <./xwGroup.h> -#include _XFUNCPROTOBEGIN typedef struct {