    {-# LANGUAGE TypeApplications #-}

    -- | Copyright  : Will Thompson and Iñaki García Etxebarria
    -- License    : LGPL-2.1
    -- Maintainer : Iñaki García Etxebarria
    --
    -- A t'GI.Gtk.Objects.RecentFilter.RecentFilter' can be used to restrict the files being shown
    -- in a t'GI.Gtk.Interfaces.RecentChooser.RecentChooser'.  Files can be filtered based on their name
    -- (with 'GI.Gtk.Objects.RecentFilter.recentFilterAddPattern'), on their mime type (with
    -- 'GI.Gtk.Objects.FileFilter.fileFilterAddMimeType'), on the application that has
    -- registered them (with 'GI.Gtk.Objects.RecentFilter.recentFilterAddApplication'), or by
    -- a custom filter function (with 'GI.Gtk.Objects.RecentFilter.recentFilterAddCustom').
    --
    -- Filtering by mime type handles aliasing and subclassing of mime
    -- types; e.g. a filter for text\/plain also matches a file with mime
    -- type application\/rtf, since application\/rtf is a subclass of text\/plain.
    -- Note that t'GI.Gtk.Objects.RecentFilter.RecentFilter' allows wildcards for the subtype of a
    -- mime type, so you can e.g. filter for image\/\\*.
    --
    -- Normally, filters are used by adding them to a t'GI.Gtk.Interfaces.RecentChooser.RecentChooser',
    -- see 'GI.Gtk.Interfaces.RecentChooser.recentChooserAddFilter', but it is also possible to
    -- manually use a filter on a file with 'GI.Gtk.Objects.RecentFilter.recentFilterFilter'.
    --
    -- Recently used files are supported since GTK+ 2.10.
    --
    -- == GtkRecentFilter as GtkBuildable
    --
    -- The GtkRecentFilter implementation of the GtkBuildable interface
    -- supports adding rules using the @\<mime-types>@, @\<patterns>@ and
    -- @\<applications>@ elements and listing the rules within. Specifying
    -- a @\<mime-type>@, @\<pattern>@ or @\<application>@ has the same effect as
    -- calling 'GI.Gtk.Objects.RecentFilter.recentFilterAddMimeType',
    -- 'GI.Gtk.Objects.RecentFilter.recentFilterAddPattern' or 'GI.Gtk.Objects.RecentFilter.recentFilterAddApplication'.
    --
    -- An example of a UI definition fragment specifying @GtkRecentFilter@
    -- rules:
    --
    --
    -- === /xml code/
    -- >
    -- ><object class="GtkRecentFilter">
    -- >  <mime-types>
    -- >    <mime-type>text/plain</mime-type>
    -- >    <mime-type>image/png</mime-type>
    -- >  </mime-types>
    -- >  <patterns>
    -- >    <pattern>*.txt</pattern>
    -- >    <pattern>*.png</pattern>
    -- >  </patterns>
    -- >  <applications>
    -- >    <application>gimp</application>
    -- >    <application>gedit</application>
    -- >    <application>glade</application>
    -- >  </applications>
    -- ></object>
    --

    #if !defined(__HADDOCK_VERSION__)
    #define ENABLE_OVERLOADING
    #endif

    module GI.Gtk.Objects.RecentFilter
        (

    -- * Exported types
        RecentFilter(..)                        ,
        IsRecentFilter                          ,
        toRecentFilter                          ,

     -- * Methods
    -- |
    --
    --  === __Click to display all available methods, including inherited ones__
    -- ==== Methods
    -- [addAge]("GI.Gtk.Objects.RecentFilter#g:method:addAge"), [addApplication]("GI.Gtk.Objects.RecentFilter#g:method:addApplication"), [addChild]("GI.Gtk.Interfaces.Buildable#g:method:addChild"), [addCustom]("GI.Gtk.Objects.RecentFilter#g:method:addCustom"), [addGroup]("GI.Gtk.Objects.RecentFilter#g:method:addGroup"), [addMimeType]("GI.Gtk.Objects.RecentFilter#g:method:addMimeType"), [addPattern]("GI.Gtk.Objects.RecentFilter#g:method:addPattern"), [addPixbufFormats]("GI.Gtk.Objects.RecentFilter#g:method:addPixbufFormats"), [bindProperty]("GI.GObject.Objects.Object#g:method:bindProperty"), [bindPropertyFull]("GI.GObject.Objects.Object#g:method:bindPropertyFull"), [constructChild]("GI.Gtk.Interfaces.Buildable#g:method:constructChild"), [customFinished]("GI.Gtk.Interfaces.Buildable#g:method:customFinished"), [customTagEnd]("GI.Gtk.Interfaces.Buildable#g:method:customTagEnd"), [customTagStart]("GI.Gtk.Interfaces.Buildable#g:method:customTagStart"), [filter]("GI.Gtk.Objects.RecentFilter#g:method:filter"), [forceFloating]("GI.GObject.Objects.Object#g:method:forceFloating"), [freezeNotify]("GI.GObject.Objects.Object#g:method:freezeNotify"), [getv]("GI.GObject.Objects.Object#g:method:getv"), [isFloating]("GI.GObject.Objects.Object#g:method:isFloating"), [notify]("GI.GObject.Objects.Object#g:method:notify"), [notifyByPspec]("GI.GObject.Objects.Object#g:method:notifyByPspec"), [parserFinished]("GI.Gtk.Interfaces.Buildable#g:method:parserFinished"), [ref]("GI.GObject.Objects.Object#g:method:ref"), [refSink]("GI.GObject.Objects.Object#g:method:refSink"), [runDispose]("GI.GObject.Objects.Object#g:method:runDispose"), [stealData]("GI.GObject.Objects.Object#g:method:stealData"), [stealQdata]("GI.GObject.Objects.Object#g:method:stealQdata"), [thawNotify]("GI.GObject.Objects.Object#g:method:thawNotify"), [unref]("GI.GObject.Objects.Object#g:method:unref"), [watchClosure]("GI.GObject.Objects.Object#g:method:watchClosure").
    --
    -- ==== Getters
    -- [getData]("GI.GObject.Objects.Object#g:method:getData"), [getInternalChild]("GI.Gtk.Interfaces.Buildable#g:method:getInternalChild"), [getName]("GI.Gtk.Objects.RecentFilter#g:method:getName"), [getNeeded]("GI.Gtk.Objects.RecentFilter#g:method:getNeeded"), [getProperty]("GI.GObject.Objects.Object#g:method:getProperty"), [getQdata]("GI.GObject.Objects.Object#g:method:getQdata").
    --
    -- ==== Setters
    -- [setBuildableProperty]("GI.Gtk.Interfaces.Buildable#g:method:setBuildableProperty"), [setData]("GI.GObject.Objects.Object#g:method:setData"), [setDataFull]("GI.GObject.Objects.Object#g:method:setDataFull"), [setName]("GI.Gtk.Objects.RecentFilter#g:method:setName"), [setProperty]("GI.GObject.Objects.Object#g:method:setProperty").

    #if defined(ENABLE_OVERLOADING)
        ResolveRecentFilterMethod               ,
    #endif

    -- ** addAge #method:addAge#

    #if defined(ENABLE_OVERLOADING)
        RecentFilterAddAgeMethodInfo            ,
    #endif
        recentFilterAddAge                      ,

    -- ** addApplication #method:addApplication#

    #if defined(ENABLE_OVERLOADING)
        RecentFilterAddApplicationMethodInfo    ,
    #endif
        recentFilterAddApplication              ,

    -- ** addCustom #method:addCustom#

    #if defined(ENABLE_OVERLOADING)
        RecentFilterAddCustomMethodInfo         ,
    #endif
        recentFilterAddCustom                   ,

    -- ** addGroup #method:addGroup#

    #if defined(ENABLE_OVERLOADING)
        RecentFilterAddGroupMethodInfo          ,
    #endif
        recentFilterAddGroup                    ,

    -- ** addMimeType #method:addMimeType#

    #if defined(ENABLE_OVERLOADING)
        RecentFilterAddMimeTypeMethodInfo       ,
    #endif
        recentFilterAddMimeType                 ,

    -- ** addPattern #method:addPattern#

    #if defined(ENABLE_OVERLOADING)
        RecentFilterAddPatternMethodInfo        ,
    #endif
        recentFilterAddPattern                  ,

    -- ** addPixbufFormats #method:addPixbufFormats#

    #if defined(ENABLE_OVERLOADING)
        RecentFilterAddPixbufFormatsMethodInfo  ,
    #endif
        recentFilterAddPixbufFormats            ,

    -- ** filter #method:filter#

    #if defined(ENABLE_OVERLOADING)
        RecentFilterFilterMethodInfo            ,
    #endif
        recentFilterFilter                      ,

    -- ** getName #method:getName#

    #if defined(ENABLE_OVERLOADING)
        RecentFilterGetNameMethodInfo           ,
    #endif
        recentFilterGetName                     ,

    -- ** getNeeded #method:getNeeded#

    #if defined(ENABLE_OVERLOADING)
        RecentFilterGetNeededMethodInfo         ,
    #endif
        recentFilterGetNeeded                   ,

    -- ** new #method:new#

        recentFilterNew                         ,

    -- ** setName #method:setName#

    #if defined(ENABLE_OVERLOADING)
        RecentFilterSetNameMethodInfo           ,
    #endif
        recentFilterSetName                     ,

        ) where

    import Data.GI.Base.ShortPrelude
    import qualified Data.GI.Base.ShortPrelude as SP
    import qualified Data.GI.Base.Overloading as O
    import qualified Prelude as P

    import qualified Data.GI.Base.Attributes as GI.Attributes
    import qualified Data.GI.Base.BasicTypes as B.Types
    import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
    import qualified Data.GI.Base.GArray as B.GArray
    import qualified Data.GI.Base.GClosure as B.GClosure
    import qualified Data.GI.Base.GError as B.GError
    import qualified Data.GI.Base.GHashTable as B.GHT
    import qualified Data.GI.Base.GVariant as B.GVariant
    import qualified Data.GI.Base.GValue as B.GValue
    import qualified Data.GI.Base.GParamSpec as B.GParamSpec
    import qualified Data.GI.Base.CallStack as B.CallStack
    import qualified Data.GI.Base.Properties as B.Properties
    import qualified Data.GI.Base.Signals as B.Signals
    import qualified Control.Monad.IO.Class as MIO
    import qualified Data.Coerce as Coerce
    import qualified Data.Text as T
    import qualified Data.Kind as DK
    import qualified Data.ByteString.Char8 as B
    import qualified Data.Map as Map
    import qualified Foreign.Ptr as FP
    import qualified GHC.OverloadedLabels as OL
    import qualified GHC.Records as R
    import qualified Data.Word as DW
    import qualified Data.Int as DI
    import qualified System.Posix.Types as SPT
    import qualified Foreign.C.Types as FCT

    -- Workaround for https://gitlab.haskell.org/ghc/ghc/-/issues/23392
    #if MIN_VERSION_base(4,18,0)
    import qualified GI.Atk.Interfaces.ImplementorIface as Atk.ImplementorIface
    import qualified GI.Atk.Objects.Object as Atk.Object
    import qualified GI.Cairo.Structs.Context as Cairo.Context
    import qualified GI.Cairo.Structs.FontOptions as Cairo.FontOptions
    import qualified GI.Cairo.Structs.Region as Cairo.Region
    import qualified GI.Cairo.Structs.Surface as Cairo.Surface
    import qualified GI.GLib.Callbacks as GLib.Callbacks
    import qualified GI.GLib.Structs.MarkupParser as GLib.MarkupParser
    import qualified GI.GObject.Callbacks as GObject.Callbacks
    import qualified GI.GObject.Objects.Object as GObject.Object
    import qualified GI.Gdk.Enums as Gdk.Enums
    import qualified GI.Gdk.Flags as Gdk.Flags
    import qualified GI.Gdk.Objects.Device as Gdk.Device
    import qualified GI.Gdk.Objects.Display as Gdk.Display
    import qualified GI.Gdk.Objects.DragContext as Gdk.DragContext
    import qualified GI.Gdk.Objects.FrameClock as Gdk.FrameClock
    import qualified GI.Gdk.Objects.Screen as Gdk.Screen
    import qualified GI.Gdk.Objects.Visual as Gdk.Visual
    import qualified GI.Gdk.Objects.Window as Gdk.Window
    import qualified GI.Gdk.Structs.Atom as Gdk.Atom
    import qualified GI.Gdk.Structs.Color as Gdk.Color
    import qualified GI.Gdk.Structs.EventAny as Gdk.EventAny
    import qualified GI.Gdk.Structs.EventButton as Gdk.EventButton
    import qualified GI.Gdk.Structs.EventConfigure as Gdk.EventConfigure
    import qualified GI.Gdk.Structs.EventCrossing as Gdk.EventCrossing
    import qualified GI.Gdk.Structs.EventExpose as Gdk.EventExpose
    import qualified GI.Gdk.Structs.EventFocus as Gdk.EventFocus
    import qualified GI.Gdk.Structs.EventGrabBroken as Gdk.EventGrabBroken
    import qualified GI.Gdk.Structs.EventKey as Gdk.EventKey
    import qualified GI.Gdk.Structs.EventMotion as Gdk.EventMotion
    import qualified GI.Gdk.Structs.EventOwnerChange as Gdk.EventOwnerChange
    import qualified GI.Gdk.Structs.EventProperty as Gdk.EventProperty
    import qualified GI.Gdk.Structs.EventProximity as Gdk.EventProximity
    import qualified GI.Gdk.Structs.EventScroll as Gdk.EventScroll
    import qualified GI.Gdk.Structs.EventSelection as Gdk.EventSelection
    import qualified GI.Gdk.Structs.EventVisibility as Gdk.EventVisibility
    import qualified GI.Gdk.Structs.EventWindowState as Gdk.EventWindowState
    import qualified GI.Gdk.Structs.Geometry as Gdk.Geometry
    import qualified GI.Gdk.Structs.RGBA as Gdk.RGBA
    import qualified GI.Gdk.Structs.Rectangle as Gdk.Rectangle
    import qualified GI.Gdk.Unions.Event as Gdk.Event
    import qualified GI.GdkPixbuf.Objects.Pixbuf as GdkPixbuf.Pixbuf
    import qualified GI.Gio.Flags as Gio.Flags
    import qualified GI.Gio.Interfaces.ActionGroup as Gio.ActionGroup
    import qualified GI.Gio.Interfaces.ActionMap as Gio.ActionMap
    import qualified GI.Gio.Interfaces.File as Gio.File
    import qualified GI.Gio.Interfaces.Icon as Gio.Icon
    import qualified GI.Gio.Objects.Application as Gio.Application
    import qualified GI.Gio.Objects.Menu as Gio.Menu
    import qualified GI.Gio.Objects.MenuModel as Gio.MenuModel
    import qualified GI.Gtk.Callbacks as Gtk.Callbacks
    import {-# SOURCE #-} qualified GI.Gtk.Enums as Gtk.Enums
    import {-# SOURCE #-} qualified GI.Gtk.Flags as Gtk.Flags
    import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
    import {-# SOURCE #-} qualified GI.Gtk.Interfaces.StyleProvider as Gtk.StyleProvider
    import {-# SOURCE #-} qualified GI.Gtk.Objects.AccelGroup as Gtk.AccelGroup
    import {-# SOURCE #-} qualified GI.Gtk.Objects.Adjustment as Gtk.Adjustment
    import {-# SOURCE #-} qualified GI.Gtk.Objects.Application as Gtk.Application
    import {-# SOURCE #-} qualified GI.Gtk.Objects.Bin as Gtk.Bin
    import {-# SOURCE #-} qualified GI.Gtk.Objects.Builder as Gtk.Builder
    import {-# SOURCE #-} qualified GI.Gtk.Objects.Clipboard as Gtk.Clipboard
    import {-# SOURCE #-} qualified GI.Gtk.Objects.Container as Gtk.Container
    import {-# SOURCE #-} qualified GI.Gtk.Objects.IconFactory as Gtk.IconFactory
    import {-# SOURCE #-} qualified GI.Gtk.Objects.RcStyle as Gtk.RcStyle
    import {-# SOURCE #-} qualified GI.Gtk.Objects.Settings as Gtk.Settings
    import {-# SOURCE #-} qualified GI.Gtk.Objects.Style as Gtk.Style
    import {-# SOURCE #-} qualified GI.Gtk.Objects.StyleContext as Gtk.StyleContext
    import {-# SOURCE #-} qualified GI.Gtk.Objects.StyleProperties as Gtk.StyleProperties
    import {-# SOURCE #-} qualified GI.Gtk.Objects.TextBuffer as Gtk.TextBuffer
    import {-# SOURCE #-} qualified GI.Gtk.Objects.TextChildAnchor as Gtk.TextChildAnchor
    import {-# SOURCE #-} qualified GI.Gtk.Objects.TextMark as Gtk.TextMark
    import {-# SOURCE #-} qualified GI.Gtk.Objects.TextTag as Gtk.TextTag
    import {-# SOURCE #-} qualified GI.Gtk.Objects.TextTagTable as Gtk.TextTagTable
    import {-# SOURCE #-} qualified GI.Gtk.Objects.Tooltip as Gtk.Tooltip
    import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
    import {-# SOURCE #-} qualified GI.Gtk.Objects.Window as Gtk.Window
    import {-# SOURCE #-} qualified GI.Gtk.Objects.WindowGroup as Gtk.WindowGroup
    import {-# SOURCE #-} qualified GI.Gtk.Structs.AccelGroupEntry as Gtk.AccelGroupEntry
    import {-# SOURCE #-} qualified GI.Gtk.Structs.AccelKey as Gtk.AccelKey
    import {-# SOURCE #-} qualified GI.Gtk.Structs.Border as Gtk.Border
    import {-# SOURCE #-} qualified GI.Gtk.Structs.CssSection as Gtk.CssSection
    import {-# SOURCE #-} qualified GI.Gtk.Structs.IconSet as Gtk.IconSet
    import {-# SOURCE #-} qualified GI.Gtk.Structs.IconSource as Gtk.IconSource
    import {-# SOURCE #-} qualified GI.Gtk.Structs.RecentFilterInfo as Gtk.RecentFilterInfo
    import {-# SOURCE #-} qualified GI.Gtk.Structs.Requisition as Gtk.Requisition
    import {-# SOURCE #-} qualified GI.Gtk.Structs.SelectionData as Gtk.SelectionData
    import {-# SOURCE #-} qualified GI.Gtk.Structs.SettingsValue as Gtk.SettingsValue
    import {-# SOURCE #-} qualified GI.Gtk.Structs.SymbolicColor as Gtk.SymbolicColor
    import {-# SOURCE #-} qualified GI.Gtk.Structs.TargetEntry as Gtk.TargetEntry
    import {-# SOURCE #-} qualified GI.Gtk.Structs.TargetList as Gtk.TargetList
    import {-# SOURCE #-} qualified GI.Gtk.Structs.TextAppearance as Gtk.TextAppearance
    import {-# SOURCE #-} qualified GI.Gtk.Structs.TextAttributes as Gtk.TextAttributes
    import {-# SOURCE #-} qualified GI.Gtk.Structs.TextIter as Gtk.TextIter
    import {-# SOURCE #-} qualified GI.Gtk.Structs.WidgetPath as Gtk.WidgetPath
    import qualified GI.Pango.Enums as Pango.Enums
    import qualified GI.Pango.Objects.Context as Pango.Context
    import qualified GI.Pango.Objects.FontMap as Pango.FontMap
    import qualified GI.Pango.Objects.Layout as Pango.Layout
    import qualified GI.Pango.Structs.FontDescription as Pango.FontDescription
    import qualified GI.Pango.Structs.Language as Pango.Language
    import qualified GI.Pango.Structs.TabArray as Pango.TabArray

    #else
    import qualified GI.GLib.Callbacks as GLib.Callbacks
    import qualified GI.GObject.Objects.Object as GObject.Object
    import qualified GI.Gtk.Callbacks as Gtk.Callbacks
    import {-# SOURCE #-} qualified GI.Gtk.Flags as Gtk.Flags
    import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
    import {-# SOURCE #-} qualified GI.Gtk.Structs.RecentFilterInfo as Gtk.RecentFilterInfo

    #endif

    -- | Memory-managed wrapper type.
    newtype RecentFilter = RecentFilter (SP.ManagedPtr RecentFilter)
        deriving (RecentFilter -> RecentFilter -> Bool
    (RecentFilter -> RecentFilter -> Bool)
    -> (RecentFilter -> RecentFilter -> Bool) -> Eq RecentFilter
    forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
    $c== :: RecentFilter -> RecentFilter -> Bool
    == :: RecentFilter -> RecentFilter -> Bool
    $c/= :: RecentFilter -> RecentFilter -> Bool
    /= :: RecentFilter -> RecentFilter -> Bool
    Eq)

    instance SP.ManagedPtrNewtype RecentFilter where
        toManagedPtr :: RecentFilter -> ManagedPtr RecentFilter
    toManagedPtr (RecentFilter ManagedPtr RecentFilter
    p) = ManagedPtr RecentFilter
    p

    foreign import ccall "gtk_recent_filter_get_type"
        c_gtk_recent_filter_get_type :: IO B.Types.GType

    instance B.Types.TypedObject RecentFilter where
        glibType :: IO GType
    glibType = IO GType
    c_gtk_recent_filter_get_type

    instance B.Types.GObject RecentFilter

    -- | Type class for types which can be safely cast to t'RecentFilter', for instance with `toRecentFilter`.
    class (SP.GObject o, O.IsDescendantOf RecentFilter o) => IsRecentFilter o
    instance (SP.GObject o, O.IsDescendantOf RecentFilter o) => IsRecentFilter o

    instance O.HasParentTypes RecentFilter
    type instance O.ParentTypes RecentFilter = '[GObject.Object.Object, Gtk.Buildable.Buildable]

    -- | Cast to t'RecentFilter', for types for which this is known to be safe. For general casts, use 'Data.GI.Base.ManagedPtr.castTo'.
    toRecentFilter :: (MIO.MonadIO m, IsRecentFilter o) => o -> m RecentFilter
    toRecentFilter :: forall (m :: * -> *) o.
    (MonadIO m, IsRecentFilter o) =>
    o -> m RecentFilter
    toRecentFilter = IO RecentFilter -> m RecentFilter
    forall a. IO a -> m a
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    MIO.liftIO (IO RecentFilter -> m RecentFilter)
    -> (o -> IO RecentFilter) -> o -> m RecentFilter
    forall b c a. (b -> c) -> (a -> b) -> a -> c
    . (ManagedPtr RecentFilter -> RecentFilter) -> o -> IO RecentFilter
    forall o o'.
    (HasCallStack, ManagedPtrNewtype o, TypedObject o,
     ManagedPtrNewtype o', TypedObject o') =>
    (ManagedPtr o' -> o') -> o -> IO o'
    B.ManagedPtr.unsafeCastTo ManagedPtr RecentFilter -> RecentFilter
    RecentFilter

    -- | Convert t'RecentFilter' to and from t'Data.GI.Base.GValue.GValue'. See 'Data.GI.Base.GValue.toGValue' and 'Data.GI.Base.GValue.fromGValue'.
    instance B.GValue.IsGValue (Maybe RecentFilter) where
        gvalueGType_ :: IO GType
    gvalueGType_ = IO GType
    c_gtk_recent_filter_get_type
        gvalueSet_ :: Ptr GValue -> Maybe RecentFilter -> IO ()
    gvalueSet_ Ptr GValue
    gv Maybe RecentFilter
    P.Nothing = Ptr GValue -> Ptr RecentFilter -> IO ()
    forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
    B.GValue.set_object Ptr GValue
    gv (Ptr RecentFilter
    forall a. Ptr a
    FP.nullPtr :: FP.Ptr RecentFilter)
        gvalueSet_ Ptr GValue
    gv (P.Just RecentFilter
    obj) = RecentFilter -> (Ptr RecentFilter -> IO ()) -> IO ()
    forall a c.
    (HasCallStack, ManagedPtrNewtype a) =>
    a -> (Ptr a -> IO c) -> IO c
    B.ManagedPtr.withManagedPtr RecentFilter
    obj (Ptr GValue -> Ptr RecentFilter -> IO ()
    forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
    B.GValue.set_object Ptr GValue
    gv)
        gvalueGet_ :: Ptr GValue -> IO (Maybe RecentFilter)
    gvalueGet_ Ptr GValue
    gv = do
            ptr <- Ptr GValue -> IO (Ptr RecentFilter)
    forall a. GObject a => Ptr GValue -> IO (Ptr a)
    B.GValue.get_object Ptr GValue
    gv :: IO (FP.Ptr RecentFilter)
            if ptr /= FP.nullPtr
            then P.Just <$> B.ManagedPtr.newObject RecentFilter ptr
            else return P.Nothing

    #if defined(ENABLE_OVERLOADING)
    type family ResolveRecentFilterMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
        ResolveRecentFilterMethod "addAge" o = RecentFilterAddAgeMethodInfo
        ResolveRecentFilterMethod "addApplication" o = RecentFilterAddApplicationMethodInfo
        ResolveRecentFilterMethod "addChild" o = Gtk.Buildable.BuildableAddChildMethodInfo
        ResolveRecentFilterMethod "addCustom" o = RecentFilterAddCustomMethodInfo
        ResolveRecentFilterMethod "addGroup" o = RecentFilterAddGroupMethodInfo
        ResolveRecentFilterMethod "addMimeType" o = RecentFilterAddMimeTypeMethodInfo
        ResolveRecentFilterMethod "addPattern" o = RecentFilterAddPatternMethodInfo
        ResolveRecentFilterMethod "addPixbufFormats" o = RecentFilterAddPixbufFormatsMethodInfo
        ResolveRecentFilterMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
        ResolveRecentFilterMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
        ResolveRecentFilterMethod "constructChild" o = Gtk.Buildable.BuildableConstructChildMethodInfo
        ResolveRecentFilterMethod "customFinished" o = Gtk.Buildable.BuildableCustomFinishedMethodInfo
        ResolveRecentFilterMethod "customTagEnd" o = Gtk.Buildable.BuildableCustomTagEndMethodInfo
        ResolveRecentFilterMethod "customTagStart" o = Gtk.Buildable.BuildableCustomTagStartMethodInfo
        ResolveRecentFilterMethod "filter" o = RecentFilterFilterMethodInfo
        ResolveRecentFilterMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
        ResolveRecentFilterMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
        ResolveRecentFilterMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
        ResolveRecentFilterMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
        ResolveRecentFilterMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
        ResolveRecentFilterMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
        ResolveRecentFilterMethod "parserFinished" o = Gtk.Buildable.BuildableParserFinishedMethodInfo
        ResolveRecentFilterMethod "ref" o = GObject.Object.ObjectRefMethodInfo
        ResolveRecentFilterMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
        ResolveRecentFilterMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
        ResolveRecentFilterMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
        ResolveRecentFilterMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
        ResolveRecentFilterMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
        ResolveRecentFilterMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
        ResolveRecentFilterMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
        ResolveRecentFilterMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
        ResolveRecentFilterMethod "getInternalChild" o = Gtk.Buildable.BuildableGetInternalChildMethodInfo
        ResolveRecentFilterMethod "getName" o = RecentFilterGetNameMethodInfo
        ResolveRecentFilterMethod "getNeeded" o = RecentFilterGetNeededMethodInfo
        ResolveRecentFilterMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
        ResolveRecentFilterMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
        ResolveRecentFilterMethod "setBuildableProperty" o = Gtk.Buildable.BuildableSetBuildablePropertyMethodInfo
        ResolveRecentFilterMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
        ResolveRecentFilterMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
        ResolveRecentFilterMethod "setName" o = RecentFilterSetNameMethodInfo
        ResolveRecentFilterMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
        ResolveRecentFilterMethod l o = O.MethodResolutionFailed l o

    instance (info ~ ResolveRecentFilterMethod t RecentFilter, O.OverloadedMethod info RecentFilter p) => OL.IsLabel t (RecentFilter -> p) where
    #if MIN_VERSION_base(4,10,0)
        fromLabel = O.overloadedMethod @info
    #else
        fromLabel _ = O.overloadedMethod @info
    #endif

    #if MIN_VERSION_base(4,13,0)
    instance (info ~ ResolveRecentFilterMethod t RecentFilter, O.OverloadedMethod info RecentFilter p, R.HasField t RecentFilter p) => R.HasField t RecentFilter p where
        getField = O.overloadedMethod @info

    #endif

    instance (info ~ ResolveRecentFilterMethod t RecentFilter, O.OverloadedMethodInfo info RecentFilter) => OL.IsLabel t (O.MethodProxy info RecentFilter) where
    #if MIN_VERSION_base(4,10,0)
        fromLabel = O.MethodProxy
    #else
        fromLabel _ = O.MethodProxy
    #endif

    #endif

    #if defined(ENABLE_OVERLOADING)
    instance O.HasAttributeList RecentFilter
    type instance O.AttributeList RecentFilter = RecentFilterAttributeList
    type RecentFilterAttributeList = ('[ ] :: [(Symbol, DK.Type)])
    #endif

    #if defined(ENABLE_OVERLOADING)
    #endif

    #if defined(ENABLE_OVERLOADING)
    type instance O.SignalList RecentFilter = RecentFilterSignalList
    type RecentFilterSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, DK.Type)])

    #endif

    -- method RecentFilter::new
    -- method type : Constructor
    -- Args: []
    -- Lengths: []
    -- returnType: Just
    --               (TInterface Name { namespace = "Gtk" , name = "RecentFilter" })
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_recent_filter_new" gtk_recent_filter_new ::
        IO (Ptr RecentFilter)

    -- | Creates a new t'GI.Gtk.Objects.RecentFilter.RecentFilter' with no rules added to it.
    -- Such filter does not accept any recently used resources, so is not
    -- particularly useful until you add rules with
    -- 'GI.Gtk.Objects.RecentFilter.recentFilterAddPattern', 'GI.Gtk.Objects.RecentFilter.recentFilterAddMimeType',
    -- 'GI.Gtk.Objects.RecentFilter.recentFilterAddApplication', 'GI.Gtk.Objects.RecentFilter.recentFilterAddAge'.
    -- To create a filter that accepts any recently used resource, use:
    --
    -- === /C code/
    -- >
    -- >GtkRecentFilter *filter = gtk_recent_filter_new ();
    -- >gtk_recent_filter_add_pattern (filter, "*");
    --
    --
    -- /Since: 2.10/
    recentFilterNew ::
        (B.CallStack.HasCallStack, MonadIO m) =>
        m RecentFilter
        -- ^ __Returns:__ a new t'GI.Gtk.Objects.RecentFilter.RecentFilter'
    recentFilterNew :: forall (m :: * -> *). (HasCallStack, MonadIO m) => m RecentFilter
    recentFilterNew  = IO RecentFilter -> m RecentFilter
    forall a. IO a -> m a
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    liftIO (IO RecentFilter -> m RecentFilter)
    -> IO RecentFilter -> m RecentFilter
    forall a b. (a -> b) -> a -> b
    $ do
        result <- IO (Ptr RecentFilter)
    gtk_recent_filter_new
        checkUnexpectedReturnNULL "recentFilterNew" result
        result' <- (newObject RecentFilter) result
        return result'

    #if defined(ENABLE_OVERLOADING)
    #endif

    -- method RecentFilter::add_age
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "filter"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "RecentFilter" }
    --           , argCType = Just "GtkRecentFilter*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a #GtkRecentFilter" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "days"
    --           , argType = TBasicType TInt
    --           , argCType = Just "gint"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "number of days" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Nothing
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_recent_filter_add_age" gtk_recent_filter_add_age ::
        Ptr RecentFilter ->                     -- filter : TInterface (Name {namespace = "Gtk", name = "RecentFilter"})
        Int32 ->                                -- days : TBasicType TInt
        IO ()

    -- | Adds a rule that allows resources based on their age - that is, the number
    -- of days elapsed since they were last modified.
    --
    -- /Since: 2.10/
    recentFilterAddAge ::
        (B.CallStack.HasCallStack, MonadIO m, IsRecentFilter a) =>
        a
        -- ^ /@filter@/: a t'GI.Gtk.Objects.RecentFilter.RecentFilter'
        -> Int32
        -- ^ /@days@/: number of days
        -> m ()
    recentFilterAddAge :: forall (m :: * -> *) a.
    (HasCallStack, MonadIO m, IsRecentFilter a) =>
    a -> Int32 -> m ()
    recentFilterAddAge a
    filter Int32
    days = IO () -> m ()
    forall a. IO a -> m a
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    liftIO (IO () -> m ()) -> IO () -> m ()
    forall a b. (a -> b) -> a -> b
    $ do
        filter' <- a -> IO (Ptr RecentFilter)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    filter
        gtk_recent_filter_add_age filter' days
        touchManagedPtr filter
        return ()

    #if defined(ENABLE_OVERLOADING)
    data RecentFilterAddAgeMethodInfo
    instance (signature ~ (Int32 -> m ()), MonadIO m, IsRecentFilter a) => O.OverloadedMethod RecentFilterAddAgeMethodInfo a signature where
        overloadedMethod = recentFilterAddAge

    instance O.OverloadedMethodInfo RecentFilterAddAgeMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Objects.RecentFilter.recentFilterAddAge",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk3-3.0.44/docs/GI-Gtk-Objects-RecentFilter.html#v:recentFilterAddAge"
            })

    #endif

    -- method RecentFilter::add_application
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "filter"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "RecentFilter" }
    --           , argCType = Just "GtkRecentFilter*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a #GtkRecentFilter" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "application"
    --           , argType = TBasicType TUTF8
    --           , argCType = Just "const gchar*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "an application name"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Nothing
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_recent_filter_add_application" gtk_recent_filter_add_application ::
        Ptr RecentFilter ->                     -- filter : TInterface (Name {namespace = "Gtk", name = "RecentFilter"})
        CString ->                              -- application : TBasicType TUTF8
        IO ()

    -- | Adds a rule that allows resources based on the name of the application
    -- that has registered them.
    --
    -- /Since: 2.10/
    recentFilterAddApplication ::
        (B.CallStack.HasCallStack, MonadIO m, IsRecentFilter a) =>
        a
        -- ^ /@filter@/: a t'GI.Gtk.Objects.RecentFilter.RecentFilter'
        -> T.Text
        -- ^ /@application@/: an application name
        -> m ()
    recentFilterAddApplication :: forall (m :: * -> *) a.
    (HasCallStack, MonadIO m, IsRecentFilter a) =>
    a -> Text -> m ()
    recentFilterAddApplication a
    filter Text
    application = IO () -> m ()
    forall a. IO a -> m a
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    liftIO (IO () -> m ()) -> IO () -> m ()
    forall a b. (a -> b) -> a -> b
    $ do
        filter' <- a -> IO (Ptr RecentFilter)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    filter
        application' <- textToCString application
        gtk_recent_filter_add_application filter' application'
        touchManagedPtr filter
        freeMem application'
        return ()

    #if defined(ENABLE_OVERLOADING)
    data RecentFilterAddApplicationMethodInfo
    instance (signature ~ (T.Text -> m ()), MonadIO m, IsRecentFilter a) => O.OverloadedMethod RecentFilterAddApplicationMethodInfo a signature where
        overloadedMethod = recentFilterAddApplication

    instance O.OverloadedMethodInfo RecentFilterAddApplicationMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Objects.RecentFilter.recentFilterAddApplication",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk3-3.0.44/docs/GI-Gtk-Objects-RecentFilter.html#v:recentFilterAddApplication"
            })

    #endif

    -- method RecentFilter::add_custom
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "filter"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "RecentFilter" }
    --           , argCType = Just "GtkRecentFilter*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a #GtkRecentFilter" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "needed"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "RecentFilterFlags" }
    --           , argCType = Just "GtkRecentFilterFlags"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText =
    --                     Just
    --                       "bitfield of flags indicating the information that the custom\n         filter function needs."
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "func"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "RecentFilterFunc" }
    --           , argCType = Just "GtkRecentFilterFunc"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText =
    --                     Just
    --                       "callback function; if the function returns %TRUE, then\n  the file will be displayed."
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeNotified
    --           , argClosure = 3
    --           , argDestroy = 4
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "data"
    --           , argType = TBasicType TPtr
    --           , argCType = Just "gpointer"
    --           , direction = DirectionIn
    --           , mayBeNull = True
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "data to pass to @func"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "data_destroy"
    --           , argType =
    --               TInterface Name { namespace = "GLib" , name = "DestroyNotify" }
    --           , argCType = Just "GDestroyNotify"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText =
    --                     Just "function to call to free @data when it is no longer needed."
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeAsync
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Nothing
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_recent_filter_add_custom" gtk_recent_filter_add_custom ::
        Ptr RecentFilter ->                     -- filter : TInterface (Name {namespace = "Gtk", name = "RecentFilter"})
        CUInt ->                                -- needed : TInterface (Name {namespace = "Gtk", name = "RecentFilterFlags"})
        FunPtr Gtk.Callbacks.C_RecentFilterFunc -> -- func : TInterface (Name {namespace = "Gtk", name = "RecentFilterFunc"})
        Ptr () ->                               -- data : TBasicType TPtr
        FunPtr GLib.Callbacks.C_DestroyNotify -> -- data_destroy : TInterface (Name {namespace = "GLib", name = "DestroyNotify"})
        IO ()

    -- | Adds a rule to a filter that allows resources based on a custom callback
    -- function. The bitfield /@needed@/ which is passed in provides information
    -- about what sorts of information that the filter function needs;
    -- this allows GTK+ to avoid retrieving expensive information when
    -- it isn’t needed by the filter.
    --
    -- /Since: 2.10/
    recentFilterAddCustom ::
        (B.CallStack.HasCallStack, MonadIO m, IsRecentFilter a) =>
        a
        -- ^ /@filter@/: a t'GI.Gtk.Objects.RecentFilter.RecentFilter'
        -> [Gtk.Flags.RecentFilterFlags]
        -- ^ /@needed@/: bitfield of flags indicating the information that the custom
        --          filter function needs.
        -> Gtk.Callbacks.RecentFilterFunc
        -- ^ /@func@/: callback function; if the function returns 'P.True', then
        --   the file will be displayed.
        -> m ()
    recentFilterAddCustom :: forall (m :: * -> *) a.
    (HasCallStack, MonadIO m, IsRecentFilter a) =>
    a -> [RecentFilterFlags] -> RecentFilterFunc -> m ()
    recentFilterAddCustom a
    filter [RecentFilterFlags]
    needed RecentFilterFunc
    func = IO () -> m ()
    forall a. IO a -> m a
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    liftIO (IO () -> m ()) -> IO () -> m ()
    forall a b. (a -> b) -> a -> b
    $ do
        filter' <- a -> IO (Ptr RecentFilter)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    filter
        let needed' = [RecentFilterFlags] -> CUInt
    forall b a. (Num b, IsGFlag a) => [a] -> b
    gflagsToWord [RecentFilterFlags]
    needed
        func' <- Gtk.Callbacks.mk_RecentFilterFunc (Gtk.Callbacks.wrap_RecentFilterFunc Nothing (Gtk.Callbacks.drop_closures_RecentFilterFunc func))
        let data_ = FunPtr C_RecentFilterFunc -> Ptr ()
    forall a b. FunPtr a -> Ptr b
    castFunPtrToPtr FunPtr C_RecentFilterFunc
    func'
        let dataDestroy = FunPtr (Ptr a -> IO ())
    forall a. FunPtr (Ptr a -> IO ())
    SP.safeFreeFunPtrPtr
        gtk_recent_filter_add_custom filter' needed' func' data_ dataDestroy
        touchManagedPtr filter
        return ()

    #if defined(ENABLE_OVERLOADING)
    data RecentFilterAddCustomMethodInfo
    instance (signature ~ ([Gtk.Flags.RecentFilterFlags] -> Gtk.Callbacks.RecentFilterFunc -> m ()), MonadIO m, IsRecentFilter a) => O.OverloadedMethod RecentFilterAddCustomMethodInfo a signature where
        overloadedMethod = recentFilterAddCustom

    instance O.OverloadedMethodInfo RecentFilterAddCustomMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Objects.RecentFilter.recentFilterAddCustom",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk3-3.0.44/docs/GI-Gtk-Objects-RecentFilter.html#v:recentFilterAddCustom"
            })

    #endif

    -- method RecentFilter::add_group
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "filter"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "RecentFilter" }
    --           , argCType = Just "GtkRecentFilter*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a #GtkRecentFilter" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "group"
    --           , argType = TBasicType TUTF8
    --           , argCType = Just "const gchar*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a group name" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Nothing
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_recent_filter_add_group" gtk_recent_filter_add_group ::
        Ptr RecentFilter ->                     -- filter : TInterface (Name {namespace = "Gtk", name = "RecentFilter"})
        CString ->                              -- group : TBasicType TUTF8
        IO ()

    -- | Adds a rule that allows resources based on the name of the group
    -- to which they belong
    --
    -- /Since: 2.10/
    recentFilterAddGroup ::
        (B.CallStack.HasCallStack, MonadIO m, IsRecentFilter a) =>
        a
        -- ^ /@filter@/: a t'GI.Gtk.Objects.RecentFilter.RecentFilter'
        -> T.Text
        -- ^ /@group@/: a group name
        -> m ()
    recentFilterAddGroup :: forall (m :: * -> *) a.
    (HasCallStack, MonadIO m, IsRecentFilter a) =>
    a -> Text -> m ()
    recentFilterAddGroup a
    filter Text
    group = IO () -> m ()
    forall a. IO a -> m a
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    liftIO (IO () -> m ()) -> IO () -> m ()
    forall a b. (a -> b) -> a -> b
    $ do
        filter' <- a -> IO (Ptr RecentFilter)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    filter
        group' <- textToCString group
        gtk_recent_filter_add_group filter' group'
        touchManagedPtr filter
        freeMem group'
        return ()

    #if defined(ENABLE_OVERLOADING)
    data RecentFilterAddGroupMethodInfo
    instance (signature ~ (T.Text -> m ()), MonadIO m, IsRecentFilter a) => O.OverloadedMethod RecentFilterAddGroupMethodInfo a signature where
        overloadedMethod = recentFilterAddGroup

    instance O.OverloadedMethodInfo RecentFilterAddGroupMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Objects.RecentFilter.recentFilterAddGroup",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk3-3.0.44/docs/GI-Gtk-Objects-RecentFilter.html#v:recentFilterAddGroup"
            })

    #endif

    -- method RecentFilter::add_mime_type
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "filter"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "RecentFilter" }
    --           , argCType = Just "GtkRecentFilter*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a #GtkRecentFilter" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "mime_type"
    --           , argType = TBasicType TUTF8
    --           , argCType = Just "const gchar*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a MIME type" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Nothing
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_recent_filter_add_mime_type" gtk_recent_filter_add_mime_type ::
        Ptr RecentFilter ->                     -- filter : TInterface (Name {namespace = "Gtk", name = "RecentFilter"})
        CString ->                              -- mime_type : TBasicType TUTF8
        IO ()

    -- | Adds a rule that allows resources based on their registered MIME type.
    --
    -- /Since: 2.10/
    recentFilterAddMimeType ::
        (B.CallStack.HasCallStack, MonadIO m, IsRecentFilter a) =>
        a
        -- ^ /@filter@/: a t'GI.Gtk.Objects.RecentFilter.RecentFilter'
        -> T.Text
        -- ^ /@mimeType@/: a MIME type
        -> m ()
    recentFilterAddMimeType :: forall (m :: * -> *) a.
    (HasCallStack, MonadIO m, IsRecentFilter a) =>
    a -> Text -> m ()
    recentFilterAddMimeType a
    filter Text
    mimeType = IO () -> m ()
    forall a. IO a -> m a
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    liftIO (IO () -> m ()) -> IO () -> m ()
    forall a b. (a -> b) -> a -> b
    $ do
        filter' <- a -> IO (Ptr RecentFilter)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    filter
        mimeType' <- textToCString mimeType
        gtk_recent_filter_add_mime_type filter' mimeType'
        touchManagedPtr filter
        freeMem mimeType'
        return ()

    #if defined(ENABLE_OVERLOADING)
    data RecentFilterAddMimeTypeMethodInfo
    instance (signature ~ (T.Text -> m ()), MonadIO m, IsRecentFilter a) => O.OverloadedMethod RecentFilterAddMimeTypeMethodInfo a signature where
        overloadedMethod = recentFilterAddMimeType

    instance O.OverloadedMethodInfo RecentFilterAddMimeTypeMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Objects.RecentFilter.recentFilterAddMimeType",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk3-3.0.44/docs/GI-Gtk-Objects-RecentFilter.html#v:recentFilterAddMimeType"
            })

    #endif

    -- method RecentFilter::add_pattern
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "filter"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "RecentFilter" }
    --           , argCType = Just "GtkRecentFilter*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a #GtkRecentFilter" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "pattern"
    --           , argType = TBasicType TUTF8
    --           , argCType = Just "const gchar*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a file pattern" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Nothing
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_recent_filter_add_pattern" gtk_recent_filter_add_pattern ::
        Ptr RecentFilter ->                     -- filter : TInterface (Name {namespace = "Gtk", name = "RecentFilter"})
        CString ->                              -- pattern : TBasicType TUTF8
        IO ()

    -- | Adds a rule that allows resources based on a pattern matching their
    -- display name.
    --
    -- /Since: 2.10/
    recentFilterAddPattern ::
        (B.CallStack.HasCallStack, MonadIO m, IsRecentFilter a) =>
        a
        -- ^ /@filter@/: a t'GI.Gtk.Objects.RecentFilter.RecentFilter'
        -> T.Text
        -- ^ /@pattern@/: a file pattern
        -> m ()
    recentFilterAddPattern :: forall (m :: * -> *) a.
    (HasCallStack, MonadIO m, IsRecentFilter a) =>
    a -> Text -> m ()
    recentFilterAddPattern a
    filter Text
    pattern = IO () -> m ()
    forall a. IO a -> m a
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    liftIO (IO () -> m ()) -> IO () -> m ()
    forall a b. (a -> b) -> a -> b
    $ do
        filter' <- a -> IO (Ptr RecentFilter)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    filter
        pattern' <- textToCString pattern
        gtk_recent_filter_add_pattern filter' pattern'
        touchManagedPtr filter
        freeMem pattern'
        return ()

    #if defined(ENABLE_OVERLOADING)
    data RecentFilterAddPatternMethodInfo
    instance (signature ~ (T.Text -> m ()), MonadIO m, IsRecentFilter a) => O.OverloadedMethod RecentFilterAddPatternMethodInfo a signature where
        overloadedMethod = recentFilterAddPattern

    instance O.OverloadedMethodInfo RecentFilterAddPatternMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Objects.RecentFilter.recentFilterAddPattern",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk3-3.0.44/docs/GI-Gtk-Objects-RecentFilter.html#v:recentFilterAddPattern"
            })

    #endif

    -- method RecentFilter::add_pixbuf_formats
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "filter"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "RecentFilter" }
    --           , argCType = Just "GtkRecentFilter*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a #GtkRecentFilter" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Nothing
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_recent_filter_add_pixbuf_formats" gtk_recent_filter_add_pixbuf_formats ::
        Ptr RecentFilter ->                     -- filter : TInterface (Name {namespace = "Gtk", name = "RecentFilter"})
        IO ()

    -- | Adds a rule allowing image files in the formats supported
    -- by GdkPixbuf.
    --
    -- /Since: 2.10/
    recentFilterAddPixbufFormats ::
        (B.CallStack.HasCallStack, MonadIO m, IsRecentFilter a) =>
        a
        -- ^ /@filter@/: a t'GI.Gtk.Objects.RecentFilter.RecentFilter'
        -> m ()
    recentFilterAddPixbufFormats :: forall (m :: * -> *) a.
    (HasCallStack, MonadIO m, IsRecentFilter a) =>
    a -> m ()
    recentFilterAddPixbufFormats a
    filter = IO () -> m ()
    forall a. IO a -> m a
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    liftIO (IO () -> m ()) -> IO () -> m ()
    forall a b. (a -> b) -> a -> b
    $ do
        filter' <- a -> IO (Ptr RecentFilter)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    filter
        gtk_recent_filter_add_pixbuf_formats filter'
        touchManagedPtr filter
        return ()

    #if defined(ENABLE_OVERLOADING)
    data RecentFilterAddPixbufFormatsMethodInfo
    instance (signature ~ (m ()), MonadIO m, IsRecentFilter a) => O.OverloadedMethod RecentFilterAddPixbufFormatsMethodInfo a signature where
        overloadedMethod = recentFilterAddPixbufFormats

    instance O.OverloadedMethodInfo RecentFilterAddPixbufFormatsMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Objects.RecentFilter.recentFilterAddPixbufFormats",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk3-3.0.44/docs/GI-Gtk-Objects-RecentFilter.html#v:recentFilterAddPixbufFormats"
            })

    #endif

    -- method RecentFilter::filter
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "filter"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "RecentFilter" }
    --           , argCType = Just "GtkRecentFilter*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a #GtkRecentFilter" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "filter_info"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "RecentFilterInfo" }
    --           , argCType = Just "const GtkRecentFilterInfo*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText =
    --                     Just
    --                       "a #GtkRecentFilterInfo containing information\n  about a recently used resource"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Just (TBasicType TBoolean)
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_recent_filter_filter" gtk_recent_filter_filter ::
        Ptr RecentFilter ->                     -- filter : TInterface (Name {namespace = "Gtk", name = "RecentFilter"})
        Ptr Gtk.RecentFilterInfo.RecentFilterInfo -> -- filter_info : TInterface (Name {namespace = "Gtk", name = "RecentFilterInfo"})
        IO CInt

    -- | Tests whether a file should be displayed according to /@filter@/.
    -- The t'GI.Gtk.Structs.RecentFilterInfo.RecentFilterInfo' /@filterInfo@/ should include
    -- the fields returned from 'GI.Gtk.Objects.RecentFilter.recentFilterGetNeeded', and
    -- must set the t'GI.Gtk.Structs.RecentFilterInfo.RecentFilterInfo'.@/contains/@ field of /@filterInfo@/
    -- to indicate which fields have been set.
    --
    -- This function will not typically be used by applications; it
    -- is intended principally for use in the implementation of
    -- t'GI.Gtk.Interfaces.RecentChooser.RecentChooser'.
    --
    -- /Since: 2.10/
    recentFilterFilter ::
        (B.CallStack.HasCallStack, MonadIO m, IsRecentFilter a) =>
        a
        -- ^ /@filter@/: a t'GI.Gtk.Objects.RecentFilter.RecentFilter'
        -> Gtk.RecentFilterInfo.RecentFilterInfo
        -- ^ /@filterInfo@/: a t'GI.Gtk.Structs.RecentFilterInfo.RecentFilterInfo' containing information
        --   about a recently used resource
        -> m Bool
        -- ^ __Returns:__ 'P.True' if the file should be displayed
    recentFilterFilter :: forall (m :: * -> *) a.
    (HasCallStack, MonadIO m, IsRecentFilter a) =>
    a -> RecentFilterInfo -> m Bool
    recentFilterFilter a
    filter RecentFilterInfo
    filterInfo = IO Bool -> m Bool
    forall a. IO a -> m a
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
    forall a b. (a -> b) -> a -> b
    $ do
        filter' <- a -> IO (Ptr RecentFilter)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    filter
        filterInfo' <- unsafeManagedPtrGetPtr filterInfo
        result <- gtk_recent_filter_filter filter' filterInfo'
        let result' = (CInt -> CInt -> Bool
    forall a. Eq a => a -> a -> Bool
    /= CInt
    0) CInt
    result
        touchManagedPtr filter
        touchManagedPtr filterInfo
        return result'

    #if defined(ENABLE_OVERLOADING)
    data RecentFilterFilterMethodInfo
    instance (signature ~ (Gtk.RecentFilterInfo.RecentFilterInfo -> m Bool), MonadIO m, IsRecentFilter a) => O.OverloadedMethod RecentFilterFilterMethodInfo a signature where
        overloadedMethod = recentFilterFilter

    instance O.OverloadedMethodInfo RecentFilterFilterMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Objects.RecentFilter.recentFilterFilter",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk3-3.0.44/docs/GI-Gtk-Objects-RecentFilter.html#v:recentFilterFilter"
            })

    #endif

    -- method RecentFilter::get_name
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "filter"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "RecentFilter" }
    --           , argCType = Just "GtkRecentFilter*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a #GtkRecentFilter" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Just (TBasicType TUTF8)
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_recent_filter_get_name" gtk_recent_filter_get_name ::
        Ptr RecentFilter ->                     -- filter : TInterface (Name {namespace = "Gtk", name = "RecentFilter"})
        IO CString

    -- | Gets the human-readable name for the filter.
    -- See 'GI.Gtk.Objects.RecentFilter.recentFilterSetName'.
    --
    -- /Since: 2.10/
    recentFilterGetName ::
        (B.CallStack.HasCallStack, MonadIO m, IsRecentFilter a) =>
        a
        -- ^ /@filter@/: a t'GI.Gtk.Objects.RecentFilter.RecentFilter'
        -> m (Maybe T.Text)
        -- ^ __Returns:__ the name of the filter, or 'P.Nothing'.  The returned string
        --   is owned by the filter object and should not be freed.
    recentFilterGetName :: forall (m :: * -> *) a.
    (HasCallStack, MonadIO m, IsRecentFilter a) =>
    a -> m (Maybe Text)
    recentFilterGetName a
    filter = IO (Maybe Text) -> m (Maybe Text)
    forall a. IO a -> m a
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    liftIO (IO (Maybe Text) -> m (Maybe Text))
    -> IO (Maybe Text) -> m (Maybe Text)
    forall a b. (a -> b) -> a -> b
    $ do
        filter' <- a -> IO (Ptr RecentFilter)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    filter
        result <- gtk_recent_filter_get_name filter'
        maybeResult <- convertIfNonNull result $ \CString
    result' -> do
            result'' <- HasCallStack => CString -> IO Text
    CString -> IO Text
    cstringToText CString
    result'
            return result''
        touchManagedPtr filter
        return maybeResult

    #if defined(ENABLE_OVERLOADING)
    data RecentFilterGetNameMethodInfo
    instance (signature ~ (m (Maybe T.Text)), MonadIO m, IsRecentFilter a) => O.OverloadedMethod RecentFilterGetNameMethodInfo a signature where
        overloadedMethod = recentFilterGetName

    instance O.OverloadedMethodInfo RecentFilterGetNameMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Objects.RecentFilter.recentFilterGetName",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk3-3.0.44/docs/GI-Gtk-Objects-RecentFilter.html#v:recentFilterGetName"
            })

    #endif

    -- method RecentFilter::get_needed
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "filter"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "RecentFilter" }
    --           , argCType = Just "GtkRecentFilter*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a #GtkRecentFilter" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Just
    --               (TInterface
    --                  Name { namespace = "Gtk" , name = "RecentFilterFlags" })
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_recent_filter_get_needed" gtk_recent_filter_get_needed ::
        Ptr RecentFilter ->                     -- filter : TInterface (Name {namespace = "Gtk", name = "RecentFilter"})
        IO CUInt

    -- | Gets the fields that need to be filled in for the t'GI.Gtk.Structs.RecentFilterInfo.RecentFilterInfo'
    -- passed to 'GI.Gtk.Objects.RecentFilter.recentFilterFilter'
    --
    -- This function will not typically be used by applications; it
    -- is intended principally for use in the implementation of
    -- t'GI.Gtk.Interfaces.RecentChooser.RecentChooser'.
    --
    -- /Since: 2.10/
    recentFilterGetNeeded ::
        (B.CallStack.HasCallStack, MonadIO m, IsRecentFilter a) =>
        a
        -- ^ /@filter@/: a t'GI.Gtk.Objects.RecentFilter.RecentFilter'
        -> m [Gtk.Flags.RecentFilterFlags]
        -- ^ __Returns:__ bitfield of flags indicating needed fields when
        --   calling 'GI.Gtk.Objects.RecentFilter.recentFilterFilter'
    recentFilterGetNeeded :: forall (m :: * -> *) a.
    (HasCallStack, MonadIO m, IsRecentFilter a) =>
    a -> m [RecentFilterFlags]
    recentFilterGetNeeded a
    filter = IO [RecentFilterFlags] -> m [RecentFilterFlags]
    forall a. IO a -> m a
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    liftIO (IO [RecentFilterFlags] -> m [RecentFilterFlags])
    -> IO [RecentFilterFlags] -> m [RecentFilterFlags]
    forall a b. (a -> b) -> a -> b
    $ do
        filter' <- a -> IO (Ptr RecentFilter)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    filter
        result <- gtk_recent_filter_get_needed filter'
        let result' = CUInt -> [RecentFilterFlags]
    forall a b. (Storable a, Integral a, Bits a, IsGFlag b) => a -> [b]
    wordToGFlags CUInt
    result
        touchManagedPtr filter
        return result'

    #if defined(ENABLE_OVERLOADING)
    data RecentFilterGetNeededMethodInfo
    instance (signature ~ (m [Gtk.Flags.RecentFilterFlags]), MonadIO m, IsRecentFilter a) => O.OverloadedMethod RecentFilterGetNeededMethodInfo a signature where
        overloadedMethod = recentFilterGetNeeded

    instance O.OverloadedMethodInfo RecentFilterGetNeededMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Objects.RecentFilter.recentFilterGetNeeded",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk3-3.0.44/docs/GI-Gtk-Objects-RecentFilter.html#v:recentFilterGetNeeded"
            })

    #endif

    -- method RecentFilter::set_name
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "filter"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "RecentFilter" }
    --           , argCType = Just "GtkRecentFilter*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a #GtkRecentFilter" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "name"
    --           , argType = TBasicType TUTF8
    --           , argCType = Just "const gchar*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "then human readable name of @filter"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Nothing
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_recent_filter_set_name" gtk_recent_filter_set_name ::
        Ptr RecentFilter ->                     -- filter : TInterface (Name {namespace = "Gtk", name = "RecentFilter"})
        CString ->                              -- name : TBasicType TUTF8
        IO ()

    -- | Sets the human-readable name of the filter; this is the string
    -- that will be displayed in the recently used resources selector
    -- user interface if there is a selectable list of filters.
    --
    -- /Since: 2.10/
    recentFilterSetName ::
        (B.CallStack.HasCallStack, MonadIO m, IsRecentFilter a) =>
        a
        -- ^ /@filter@/: a t'GI.Gtk.Objects.RecentFilter.RecentFilter'
        -> T.Text
        -- ^ /@name@/: then human readable name of /@filter@/
        -> m ()
    recentFilterSetName :: forall (m :: * -> *) a.
    (HasCallStack, MonadIO m, IsRecentFilter a) =>
    a -> Text -> m ()
    recentFilterSetName a
    filter Text
    name = IO () -> m ()
    forall a. IO a -> m a
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    liftIO (IO () -> m ()) -> IO () -> m ()
    forall a b. (a -> b) -> a -> b
    $ do
        filter' <- a -> IO (Ptr RecentFilter)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    filter
        name' <- textToCString name
        gtk_recent_filter_set_name filter' name'
        touchManagedPtr filter
        freeMem name'
        return ()

    #if defined(ENABLE_OVERLOADING)
    data RecentFilterSetNameMethodInfo
    instance (signature ~ (T.Text -> m ()), MonadIO m, IsRecentFilter a) => O.OverloadedMethod RecentFilterSetNameMethodInfo a signature where
        overloadedMethod = recentFilterSetName

    instance O.OverloadedMethodInfo RecentFilterSetNameMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Objects.RecentFilter.recentFilterSetName",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk3-3.0.44/docs/GI-Gtk-Objects-RecentFilter.html#v:recentFilterSetName"
            })

    #endif