Custom Query (152 matches)

Filters
 
Columns

Show under each result:


Results (22 - 24 of 152)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Ticket Resolution Summary Owner Reporter
#1109 worksforme toggleActionIsActive in ToggleActionEntry not changed when user checks or unchecks menu item axel guest

Reported by guest, 7 years ago.

description

Using the package ghc682-gtk2hs - 0.9.12.1-6.fc8.i386 for Fedora 8, the field

toggleActionIsActive

is not changed when the user checks or unchecks a menu item.

data ToggleActionEntry = ToggleActionEntry {
toggleActionName :: String
toggleActionLabel :: String
toggleActionStockId :: (Maybe String)
toggleActionAccelerator :: (Maybe String)
toggleActionTooltip :: (Maybe String)
toggleActionCallback :: (IO ())
toggleActionIsActive :: Bool
}

There is a workaround, because the toggleActionCallback function does work when the user checks or unchecks an item. This can be used to set or unset an IORef. Example:

myTog :: IORef Bool -> IO ()
myTog chk = do old <- readIORef chk
               writeIORef chk (not old)

in:

duptogg = ToggleActionEntry "DupCheck" "Check Data" (Just stockConvert) Nothing 
                             (Just "Check facts for duplicates") (myTog dupcheck) True
#1110 invalid MacPorts installation error somebody guest

Reported by guest, 7 years ago.

description

MacPorts? PPC G4 Mac OS X 10.4.11. $ sudo port install gtk2hs ... ---> Installing glib2 2.12.11_0 Error: Target com.apple.install returned: error getting working directory name: no such file or directory Error: The following dependencies failed to build: gtk2 atk glib2 pango Xft2 tiff gtksourceview gconf libbonobo intltool p5-xml-parser orbit2 libidl libxml2 popt gnome-vfs dbus dbus-glib gnome-mime-data heimdal howl neon openssl gnuregex libart_lgpl libgnomecanvas libglade2 libgnomeprint bison m4 libgnomecups cups-headers libgnomeprintui gnome-icon-theme hicolor-icon-theme icon-naming-utils p5-xml-simple p5-xml-namespacesupport librsvg libcroco libgsf Error: Status 1 encountered during processing.

#1111 worksforme RadioActionEntry not initialized correctly somebody guest

Reported by guest, 7 years ago.

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.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Note: See TracQuery for help on using queries.