fix problem with radio buttons under X11
Closes PR 10951
Marge to 5.0.1
(cherry picked from commit 167d048773
)
This commit is contained in:
parent
6af6bd5898
commit
4f71242c66
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#define ___XWGROUPP_H
|
||||
#include <./xwRowColP.h>
|
||||
#include <./xwGroup.h>
|
||||
#include <stdint.h>
|
||||
_XFUNCPROTOBEGIN
|
||||
|
||||
typedef struct {
|
||||
|
|
Loading…
Reference in New Issue
Block a user