glib 0.11.1 → 0.11.2
raw patch · 2 files changed
+8/−1 lines, 2 filesnew-uploaderPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- System.Glib.Signals: Signal :: (Bool -> object -> handler -> IO (ConnectId object)) -> Signal object handler
- System.Glib.Signals: connectGeneric :: (GObjectClass obj) => SignalName -> ConnectAfter -> obj -> handler -> IO (ConnectId obj)
- System.Glib.Signals: data GClosure
- System.Glib.Signals: disconnect :: (GObjectClass obj) => ConnectId obj -> IO ()
- System.Glib.Signals: newtype Signal object handler
- System.Glib.Signals: type ConnectAfter = Bool
- System.Glib.Signals: type SignalName = String
+ System.Glib.UTFString: maybePeekUTFString :: CString -> IO (Maybe String)
- System.Glib.Flags: fromFlags :: (Flags a) => [a] -> Int
+ System.Glib.Flags: fromFlags :: Flags a => [a] -> Int
- System.Glib.Flags: toFlags :: (Flags a) => Int -> [a]
+ System.Glib.Flags: toFlags :: Flags a => Int -> [a]
- System.Glib.GError: catchGErrorJust :: (GErrorClass err) => err -> IO a -> (GErrorMessage -> IO a) -> IO a
+ System.Glib.GError: catchGErrorJust :: GErrorClass err => err -> IO a -> (GErrorMessage -> IO a) -> IO a
- System.Glib.GError: catchGErrorJustDomain :: (GErrorClass err) => IO a -> (err -> GErrorMessage -> IO a) -> IO a
+ System.Glib.GError: catchGErrorJustDomain :: GErrorClass err => IO a -> (err -> GErrorMessage -> IO a) -> IO a
- System.Glib.GError: class (Enum err) => GErrorClass err
+ System.Glib.GError: class Enum err => GErrorClass err
- System.Glib.GError: gerrorDomain :: (GErrorClass err) => err -> GErrorDomain
+ System.Glib.GError: gerrorDomain :: GErrorClass err => err -> GErrorDomain
- System.Glib.GError: handleGErrorJust :: (GErrorClass err) => err -> (GErrorMessage -> IO a) -> IO a -> IO a
+ System.Glib.GError: handleGErrorJust :: GErrorClass err => err -> (GErrorMessage -> IO a) -> IO a -> IO a
- System.Glib.GError: handleGErrorJustDomain :: (GErrorClass err) => (err -> GErrorMessage -> IO a) -> IO a -> IO a
+ System.Glib.GError: handleGErrorJustDomain :: GErrorClass err => (err -> GErrorMessage -> IO a) -> IO a -> IO a
- System.Glib.GObject: castToGObject :: (GObjectClass obj) => obj -> obj
+ System.Glib.GObject: castToGObject :: GObjectClass obj => obj -> obj
- System.Glib.GObject: constructNewGObject :: (GObjectClass obj) => (ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
+ System.Glib.GObject: constructNewGObject :: GObjectClass obj => (ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
- System.Glib.GObject: isA :: (GObjectClass o) => o -> GType -> Bool
+ System.Glib.GObject: isA :: GObjectClass o => o -> GType -> Bool
- System.Glib.GObject: makeNewGObject :: (GObjectClass obj) => (ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
+ System.Glib.GObject: makeNewGObject :: GObjectClass obj => (ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
- System.Glib.GObject: objectCreateAttribute :: (GObjectClass o) => IO (Attr o (Maybe a))
+ System.Glib.GObject: objectCreateAttribute :: GObjectClass o => IO (Attr o (Maybe a))
- System.Glib.GObject: objectGetAttributeUnsafe :: (GObjectClass o) => Quark -> o -> IO (Maybe a)
+ System.Glib.GObject: objectGetAttributeUnsafe :: GObjectClass o => Quark -> o -> IO (Maybe a)
- System.Glib.GObject: objectRef :: (GObjectClass obj) => Ptr obj -> IO ()
+ System.Glib.GObject: objectRef :: GObjectClass obj => Ptr obj -> IO ()
- System.Glib.GObject: objectRefSink :: (GObjectClass obj) => Ptr obj -> IO ()
+ System.Glib.GObject: objectRefSink :: GObjectClass obj => Ptr obj -> IO ()
- System.Glib.GObject: objectSetAttribute :: (GObjectClass o) => Quark -> o -> Maybe a -> IO ()
+ System.Glib.GObject: objectSetAttribute :: GObjectClass o => Quark -> o -> Maybe a -> IO ()
- System.Glib.GObject: toGObject :: (GObjectClass o) => o -> GObject
+ System.Glib.GObject: toGObject :: GObjectClass o => o -> GObject
- System.Glib.GObject: unsafeCastGObject :: (GObjectClass o) => GObject -> o
+ System.Glib.GObject: unsafeCastGObject :: GObjectClass o => GObject -> o
- System.Glib.GValueTypes: valueGetEnum :: (Enum enum) => GValue -> IO enum
+ System.Glib.GValueTypes: valueGetEnum :: Enum enum => GValue -> IO enum
- System.Glib.GValueTypes: valueGetFlags :: (Flags flag) => GValue -> IO [flag]
+ System.Glib.GValueTypes: valueGetFlags :: Flags flag => GValue -> IO [flag]
- System.Glib.GValueTypes: valueGetGObject :: (GObjectClass gobj) => GValue -> IO gobj
+ System.Glib.GValueTypes: valueGetGObject :: GObjectClass gobj => GValue -> IO gobj
- System.Glib.GValueTypes: valueGetMaybeGObject :: (GObjectClass gobj) => GValue -> IO (Maybe gobj)
+ System.Glib.GValueTypes: valueGetMaybeGObject :: GObjectClass gobj => GValue -> IO (Maybe gobj)
- System.Glib.GValueTypes: valueSetEnum :: (Enum enum) => GValue -> enum -> IO ()
+ System.Glib.GValueTypes: valueSetEnum :: Enum enum => GValue -> enum -> IO ()
- System.Glib.GValueTypes: valueSetFlags :: (Flags flag) => GValue -> [flag] -> IO ()
+ System.Glib.GValueTypes: valueSetFlags :: Flags flag => GValue -> [flag] -> IO ()
- System.Glib.GValueTypes: valueSetGObject :: (GObjectClass gobj) => GValue -> gobj -> IO ()
+ System.Glib.GValueTypes: valueSetGObject :: GObjectClass gobj => GValue -> gobj -> IO ()
- System.Glib.GValueTypes: valueSetMaybeGObject :: (GObjectClass gobj) => GValue -> (Maybe gobj) -> IO ()
+ System.Glib.GValueTypes: valueSetMaybeGObject :: GObjectClass gobj => GValue -> (Maybe gobj) -> IO ()
- System.Glib.Properties: newAttrFromBoolProperty :: (GObjectClass gobj) => String -> Attr gobj Bool
+ System.Glib.Properties: newAttrFromBoolProperty :: GObjectClass gobj => String -> Attr gobj Bool
- System.Glib.Properties: newAttrFromBoxedOpaqueProperty :: (GObjectClass gobj) => (Ptr boxed -> IO boxed) -> (boxed -> (Ptr boxed -> IO ()) -> IO ()) -> String -> GType -> Attr gobj boxed
+ System.Glib.Properties: newAttrFromBoxedOpaqueProperty :: GObjectClass gobj => (Ptr boxed -> IO boxed) -> (boxed -> (Ptr boxed -> IO ()) -> IO ()) -> String -> GType -> Attr gobj boxed
- System.Glib.Properties: newAttrFromCharProperty :: (GObjectClass gobj) => String -> Attr gobj Char
+ System.Glib.Properties: newAttrFromCharProperty :: GObjectClass gobj => String -> Attr gobj Char
- System.Glib.Properties: newAttrFromDoubleProperty :: (GObjectClass gobj) => String -> Attr gobj Double
+ System.Glib.Properties: newAttrFromDoubleProperty :: GObjectClass gobj => String -> Attr gobj Double
- System.Glib.Properties: newAttrFromFloatProperty :: (GObjectClass gobj) => String -> Attr gobj Float
+ System.Glib.Properties: newAttrFromFloatProperty :: GObjectClass gobj => String -> Attr gobj Float
- System.Glib.Properties: newAttrFromIntProperty :: (GObjectClass gobj) => String -> Attr gobj Int
+ System.Glib.Properties: newAttrFromIntProperty :: GObjectClass gobj => String -> Attr gobj Int
- System.Glib.Properties: newAttrFromMaybeStringProperty :: (GObjectClass gobj) => String -> Attr gobj (Maybe String)
+ System.Glib.Properties: newAttrFromMaybeStringProperty :: GObjectClass gobj => String -> Attr gobj (Maybe String)
- System.Glib.Properties: newAttrFromStringProperty :: (GObjectClass gobj) => String -> Attr gobj String
+ System.Glib.Properties: newAttrFromStringProperty :: GObjectClass gobj => String -> Attr gobj String
- System.Glib.Properties: newAttrFromUIntProperty :: (GObjectClass gobj) => String -> Attr gobj Int
+ System.Glib.Properties: newAttrFromUIntProperty :: GObjectClass gobj => String -> Attr gobj Int
- System.Glib.Properties: objectGetPropertyBool :: (GObjectClass gobj) => String -> gobj -> IO Bool
+ System.Glib.Properties: objectGetPropertyBool :: GObjectClass gobj => String -> gobj -> IO Bool
- System.Glib.Properties: objectGetPropertyBoxedOpaque :: (GObjectClass gobj) => (Ptr boxed -> IO boxed) -> GType -> String -> gobj -> IO boxed
+ System.Glib.Properties: objectGetPropertyBoxedOpaque :: GObjectClass gobj => (Ptr boxed -> IO boxed) -> GType -> String -> gobj -> IO boxed
- System.Glib.Properties: objectGetPropertyChar :: (GObjectClass gobj) => String -> gobj -> IO Char
+ System.Glib.Properties: objectGetPropertyChar :: GObjectClass gobj => String -> gobj -> IO Char
- System.Glib.Properties: objectGetPropertyDouble :: (GObjectClass gobj) => String -> gobj -> IO Double
+ System.Glib.Properties: objectGetPropertyDouble :: GObjectClass gobj => String -> gobj -> IO Double
- System.Glib.Properties: objectGetPropertyFloat :: (GObjectClass gobj) => String -> gobj -> IO Float
+ System.Glib.Properties: objectGetPropertyFloat :: GObjectClass gobj => String -> gobj -> IO Float
- System.Glib.Properties: objectGetPropertyInt :: (GObjectClass gobj) => String -> gobj -> IO Int
+ System.Glib.Properties: objectGetPropertyInt :: GObjectClass gobj => String -> gobj -> IO Int
- System.Glib.Properties: objectGetPropertyInt64 :: (GObjectClass gobj) => String -> gobj -> IO Int64
+ System.Glib.Properties: objectGetPropertyInt64 :: GObjectClass gobj => String -> gobj -> IO Int64
- System.Glib.Properties: objectGetPropertyInternal :: (GObjectClass gobj) => GType -> (GValue -> IO a) -> String -> gobj -> IO a
+ System.Glib.Properties: objectGetPropertyInternal :: GObjectClass gobj => GType -> (GValue -> IO a) -> String -> gobj -> IO a
- System.Glib.Properties: objectGetPropertyMaybeString :: (GObjectClass gobj) => String -> gobj -> IO (Maybe String)
+ System.Glib.Properties: objectGetPropertyMaybeString :: GObjectClass gobj => String -> gobj -> IO (Maybe String)
- System.Glib.Properties: objectGetPropertyString :: (GObjectClass gobj) => String -> gobj -> IO String
+ System.Glib.Properties: objectGetPropertyString :: GObjectClass gobj => String -> gobj -> IO String
- System.Glib.Properties: objectGetPropertyUInt :: (GObjectClass gobj) => String -> gobj -> IO Int
+ System.Glib.Properties: objectGetPropertyUInt :: GObjectClass gobj => String -> gobj -> IO Int
- System.Glib.Properties: objectGetPropertyUInt64 :: (GObjectClass gobj) => String -> gobj -> IO Word64
+ System.Glib.Properties: objectGetPropertyUInt64 :: GObjectClass gobj => String -> gobj -> IO Word64
- System.Glib.Properties: objectSetPropertyBool :: (GObjectClass gobj) => String -> gobj -> Bool -> IO ()
+ System.Glib.Properties: objectSetPropertyBool :: GObjectClass gobj => String -> gobj -> Bool -> IO ()
- System.Glib.Properties: objectSetPropertyBoxedOpaque :: (GObjectClass gobj) => (boxed -> (Ptr boxed -> IO ()) -> IO ()) -> GType -> String -> gobj -> boxed -> IO ()
+ System.Glib.Properties: objectSetPropertyBoxedOpaque :: GObjectClass gobj => (boxed -> (Ptr boxed -> IO ()) -> IO ()) -> GType -> String -> gobj -> boxed -> IO ()
- System.Glib.Properties: objectSetPropertyChar :: (GObjectClass gobj) => String -> gobj -> Char -> IO ()
+ System.Glib.Properties: objectSetPropertyChar :: GObjectClass gobj => String -> gobj -> Char -> IO ()
- System.Glib.Properties: objectSetPropertyDouble :: (GObjectClass gobj) => String -> gobj -> Double -> IO ()
+ System.Glib.Properties: objectSetPropertyDouble :: GObjectClass gobj => String -> gobj -> Double -> IO ()
- System.Glib.Properties: objectSetPropertyFloat :: (GObjectClass gobj) => String -> gobj -> Float -> IO ()
+ System.Glib.Properties: objectSetPropertyFloat :: GObjectClass gobj => String -> gobj -> Float -> IO ()
- System.Glib.Properties: objectSetPropertyInt :: (GObjectClass gobj) => String -> gobj -> Int -> IO ()
+ System.Glib.Properties: objectSetPropertyInt :: GObjectClass gobj => String -> gobj -> Int -> IO ()
- System.Glib.Properties: objectSetPropertyInt64 :: (GObjectClass gobj) => String -> gobj -> Int64 -> IO ()
+ System.Glib.Properties: objectSetPropertyInt64 :: GObjectClass gobj => String -> gobj -> Int64 -> IO ()
- System.Glib.Properties: objectSetPropertyInternal :: (GObjectClass gobj) => GType -> (GValue -> a -> IO ()) -> String -> gobj -> a -> IO ()
+ System.Glib.Properties: objectSetPropertyInternal :: GObjectClass gobj => GType -> (GValue -> a -> IO ()) -> String -> gobj -> a -> IO ()
- System.Glib.Properties: objectSetPropertyMaybeString :: (GObjectClass gobj) => String -> gobj -> Maybe String -> IO ()
+ System.Glib.Properties: objectSetPropertyMaybeString :: GObjectClass gobj => String -> gobj -> Maybe String -> IO ()
- System.Glib.Properties: objectSetPropertyString :: (GObjectClass gobj) => String -> gobj -> String -> IO ()
+ System.Glib.Properties: objectSetPropertyString :: GObjectClass gobj => String -> gobj -> String -> IO ()
- System.Glib.Properties: objectSetPropertyUInt :: (GObjectClass gobj) => String -> gobj -> Int -> IO ()
+ System.Glib.Properties: objectSetPropertyUInt :: GObjectClass gobj => String -> gobj -> Int -> IO ()
- System.Glib.Properties: objectSetPropertyUInt64 :: (GObjectClass gobj) => String -> gobj -> Word64 -> IO ()
+ System.Glib.Properties: objectSetPropertyUInt64 :: GObjectClass gobj => String -> gobj -> Word64 -> IO ()
- System.Glib.Properties: readAttrFromBoolProperty :: (GObjectClass gobj) => String -> ReadAttr gobj Bool
+ System.Glib.Properties: readAttrFromBoolProperty :: GObjectClass gobj => String -> ReadAttr gobj Bool
- System.Glib.Properties: readAttrFromBoxedOpaqueProperty :: (GObjectClass gobj) => (Ptr boxed -> IO boxed) -> String -> GType -> ReadAttr gobj boxed
+ System.Glib.Properties: readAttrFromBoxedOpaqueProperty :: GObjectClass gobj => (Ptr boxed -> IO boxed) -> String -> GType -> ReadAttr gobj boxed
- System.Glib.Properties: readAttrFromIntProperty :: (GObjectClass gobj) => String -> ReadAttr gobj Int
+ System.Glib.Properties: readAttrFromIntProperty :: GObjectClass gobj => String -> ReadAttr gobj Int
- System.Glib.Properties: readAttrFromMaybeStringProperty :: (GObjectClass gobj) => String -> ReadAttr gobj (Maybe String)
+ System.Glib.Properties: readAttrFromMaybeStringProperty :: GObjectClass gobj => String -> ReadAttr gobj (Maybe String)
- System.Glib.Properties: readAttrFromStringProperty :: (GObjectClass gobj) => String -> ReadAttr gobj String
+ System.Glib.Properties: readAttrFromStringProperty :: GObjectClass gobj => String -> ReadAttr gobj String
- System.Glib.Properties: writeAttrFromBoxedOpaqueProperty :: (GObjectClass gobj) => (boxed -> (Ptr boxed -> IO ()) -> IO ()) -> String -> GType -> WriteAttr gobj boxed
+ System.Glib.Properties: writeAttrFromBoxedOpaqueProperty :: GObjectClass gobj => (boxed -> (Ptr boxed -> IO ()) -> IO ()) -> String -> GType -> WriteAttr gobj boxed
- System.Glib.Properties: writeAttrFromMaybeStringProperty :: (GObjectClass gobj) => String -> WriteAttr gobj (Maybe String)
+ System.Glib.Properties: writeAttrFromMaybeStringProperty :: GObjectClass gobj => String -> WriteAttr gobj (Maybe String)
- System.Glib.Properties: writeAttrFromStringProperty :: (GObjectClass gobj) => String -> WriteAttr gobj String
+ System.Glib.Properties: writeAttrFromStringProperty :: GObjectClass gobj => String -> WriteAttr gobj String
- System.Glib.Properties: writeAttrFromUIntProperty :: (GObjectClass gobj) => String -> WriteAttr gobj Int
+ System.Glib.Properties: writeAttrFromUIntProperty :: GObjectClass gobj => String -> WriteAttr gobj Int
- System.Glib.Signals: data (GObjectClass o) => ConnectId o
+ System.Glib.Signals: data GObjectClass o => ConnectId o
- System.Glib.Signals: signalBlock :: (GObjectClass obj) => ConnectId obj -> IO ()
+ System.Glib.Signals: signalBlock :: GObjectClass obj => ConnectId obj -> IO ()
- System.Glib.Signals: signalDisconnect :: (GObjectClass obj) => ConnectId obj -> IO ()
+ System.Glib.Signals: signalDisconnect :: GObjectClass obj => ConnectId obj -> IO ()
- System.Glib.Signals: signalStopEmission :: (GObjectClass obj) => obj -> SignalName -> IO ()
+ System.Glib.Signals: signalStopEmission :: GObjectClass obj => obj -> SignalName -> IO ()
- System.Glib.Signals: signalUnblock :: (GObjectClass obj) => ConnectId obj -> IO ()
+ System.Glib.Signals: signalUnblock :: GObjectClass obj => ConnectId obj -> IO ()
Files
- System/Glib/UTFString.hs +7/−0
- glib.cabal +1/−1
System/Glib/UTFString.hs view
@@ -31,6 +31,7 @@ newUTFStringLen, peekUTFString, peekUTFStringLen,+ maybePeekUTFString, readUTFString, readCString, withUTFStrings,@@ -47,6 +48,7 @@ import Control.Monad (liftM) import Data.Char (ord, chr)+import Data.Maybe (maybe) import System.Glib.FFI @@ -74,6 +76,11 @@ -- peekUTFString :: CString -> IO String peekUTFString strPtr = liftM fromUTF $ peekCString strPtr++-- Define maybePeekUTFString to retrieve UTF-8 from a ptr which is maybe null.+--+maybePeekUTFString :: CString -> IO (Maybe String)+maybePeekUTFString strPtr = liftM (maybe Nothing (Just . fromUTF)) $ maybePeek peekCString strPtr -- Define peekUTFStringLen to retrieve UTF-8. --
glib.cabal view
@@ -1,5 +1,5 @@ Name: glib-Version: 0.11.1+Version: 0.11.2 License: LGPL-2.1 License-file: COPYING Copyright: (c) 2001-2010 The Gtk2Hs Team