Lines Matching refs:group

231  * If this widget is in a radio group then it may cause another
235 * the resource group, reguardless of what my ancestors did.
338 * Description: Gets the radio group associated with a give toggle
340 * Arguments: w - the toggle widget who's radio group we are getting.
341 * Returns: the radio group associated with this toggle group.
355 * Description: Creates a radio group. give two widgets.
356 * Arguments: w1, w2 - the toggle widgets to add to the radio group.
359 * NOTE: A pointer to the group is added to each widget's radio_group
373 "to create a new toggle group, when one already exists.");
382 * Description: Adds a toggle to the radio group.
383 * Arguments: group - any element of the radio group the we are adding to.
384 * w - the new toggle widget to add to the group.
389 AddToRadioGroup(group, w)
390 RadioGroup * group;
400 if (group == NULL) { /* Creating new group. */
401 group = local;
402 group->next = NULL;
403 group->prev = NULL;
406 local->prev = group; /* Adding to previous group. */
407 if ((local->next = group->next) != NULL)
409 group->next = local;
422 RadioGroup * group;
425 if ( (group = GetRadioGroup(w)) == NULL) /* Punt if there is no group */
428 /* Go to the top of the group. */
430 for ( ; group->prev != NULL ; group = group->prev );
432 while ( group != NULL ) {
433 ToggleWidget local_tog = (ToggleWidget) group->widget;
435 class->toggle_class.Unset(group->widget, NULL, NULL, 0);
436 Notify( group->widget, NULL, NULL, 0);
438 group = group->next;
452 RadioGroup * group = GetRadioGroup(w);
453 if (group != NULL) {
454 if (group->prev != NULL)
455 (group->prev)->next = group->next;
456 if (group->next != NULL)
457 (group->next)->prev = group->prev;
458 XtFree(group);
471 * radio_group - any widget in the new group.
485 * unset all toggles in the new radio group.
495 * widget that is currently active in a toggle group.
496 * Arguments: w - any toggle widget in the toggle group.
504 RadioGroup * group;
506 if ( (group = GetRadioGroup(w)) == NULL) return(NULL);
507 for ( ; group->prev != NULL ; group = group->prev);
509 while ( group != NULL ) {
510 ToggleWidget local_tog = (ToggleWidget) group->widget;
513 group = group->next;
521 * Arguments: radio_group - any toggle widget in the toggle group.
531 RadioGroup * group;
534 /* Special case case of no radio group. */
536 if ( (group = GetRadioGroup(radio_group)) == NULL) {
550 for ( ; group->prev != NULL ; group = group->prev);
556 while ( group != NULL ) {
557 local_tog = (ToggleWidget) group->widget;
565 group = group->next;
571 * Arguments: radio_group - any toggle widget in the toggle group.
582 /* Special Case no radio group. */