Ticket #1111 (closed defect: worksforme)
RadioActionEntry not initialized correctly
| Reported by: | guest | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general (Gtk+, Glib) | Version: | 0.9.12 |
| Keywords: | RadioAction menu toolbar | Cc: |
Description
On:
data RadioActionEntry = RadioActionEntry {
radioActionName :: String
radioActionLabel :: String
radioActionStockId :: (Maybe String)
radioActionAccelerator :: (Maybe String)
radioActionTooltip :: (Maybe String)
radioActionValue :: Int
}
the function:
actionGroupAddRadioActions ::
ActionGroup -> [RadioActionEntry] -> Int -> (RadioAction -> IO ()) -> IO ()
does not initialize to the 3rd (Int) argument as it should. The last item in the list is always initialized visually, regardless of the argument's value. The function:
radioActionGetCurrentValue
is defined as:
radioActionGetCurrentValue :: RadioActionClass self => self -> IO Int
but GHCi complains there is no instance for a
RadioActionEntry type.
However, the function can be used inside the callback function (4th argument) to get the current value.
Change History
Note: See
TracTickets for help on using
tickets.