Lines Matching refs:group

226  * If this widget is in a radio group then it may cause another
230 * the resource group, reguardless of what my ancestors did.
341 * Description: Gets the radio group associated with a give toggle
343 * Arguments: w - the toggle widget who's radio group we are getting.
344 * Returns: the radio group associated with this toggle group.
358 * Description: Creates a radio group. give two widgets.
359 * Arguments: w1, w2 - the toggle widgets to add to the radio group.
362 * NOTE: A pointer to the group is added to each widget's radio_group
376 "to create a new toggle group, when one already exists.");
385 * Description: Adds a toggle to the radio group.
386 * Arguments: group - any element of the radio group the we are adding to.
387 * w - the new toggle widget to add to the group.
392 AddToRadioGroup(group, w)
393 RadioGroup * group;
403 if (group == NULL) { /* Creating new group. */
404 group = local;
405 group->next = NULL;
406 group->prev = NULL;
409 local->prev = group; /* Adding to previous group. */
410 if ((local->next = group->next) != NULL)
412 group->next = local;
425 RadioGroup * group;
428 if ( (group = GetRadioGroup(w)) == NULL) /* Punt if there is no group */
431 /* Go to the top of the group. */
433 for ( ; group->prev != NULL ; group = group->prev );
435 while ( group != NULL ) {
436 ToggleWidget local_tog = (ToggleWidget) group->widget;
438 class->toggle_class.Unset(group->widget, NULL, NULL, 0);
439 Notify( group->widget, (XEvent *)NULL, (String *)NULL, (Cardinal *)0);
441 group = group->next;
455 RadioGroup * group = GetRadioGroup(w);
456 if (group != NULL) {
457 if (group->prev != NULL)
458 (group->prev)->next = group->next;
459 if (group->next != NULL)
460 (group->next)->prev = group->prev;
461 XtFree((char *) group);
474 * radio_group - any widget in the new group.
487 RadioGroup * group;
493 * unset all toggles in the new radio group.
500 if ((group = GetRadioGroup(radio_group)) == NULL)
502 else AddToRadioGroup(group, w);
507 * widget that is currently active in a toggle group.
508 * Arguments: w - any toggle widget in the toggle group.
520 RadioGroup * group;
522 if ( (group = GetRadioGroup(w)) == NULL) return(NULL);
523 for ( ; group->prev != NULL ; group = group->prev);
525 while ( group != NULL ) {
526 ToggleWidget local_tog = (ToggleWidget) group->widget;
529 group = group->next;
537 * Arguments: radio_group - any toggle widget in the toggle group.
551 RadioGroup * group;
554 /* Special case of no radio group. */
556 if ( (group = GetRadioGroup(radio_group)) == NULL) {
570 for ( ; group->prev != NULL ; group = group->prev);
576 while ( group != NULL ) {
577 local_tog = (ToggleWidget) group->widget;
585 group = group->next;
591 * Arguments: radio_group - any toggle widget in the toggle group.
606 /* Special Case no radio group. */