#1111: RadioActionEntry not initialized correctly
--------------------------------------+-------------------------------------
Reporter: guest | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: general (Gtk+, Glib) | Version: 0.9.12
Keywords: RadioAction menu toolbar |
--------------------------------------+-------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/gtk2hs/ticket/1111>
Gtk2Hs <http://haskell.org/gtk2hs/>
The Gtk2Hs project
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gtk2hs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel