GtkRadioMenuItem

GtkRadioMenuItem

Menu item that is part of a group, only one of which may be selected.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkContainer
              `-- GtkBin
                     `-- GtkItem
                            `-- GtkMenuItem
                                   `-- GtkCheckMenuItem
                                          `-- GtkRadioMenuItem

Direct subclasses

None.

Description

A GtkRadioMenuItem is one of a group of similar widgets, only one of which may be selected at any one time.

When the GtkMenuItem version of the "activate" signal has been emitted by a GtkRadioMenuItem, there is a second emission as the most recently active item is toggled to inactive. This is dealt with before the original signal is handled.

One way around this would be to use the "button-press-event" signal. Another would be to set up a count for each individual function and test that the count is not divisible by 2. Or, depending on the kind of function you are calling, you could simply allow "activate" to be emitted twice.

Constructor

GtkRadioMenuItem ( GtkRadioMenuItem group , string label);
-- Creates one of a group of GtkRadioMenuItem widgets.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.