    {-# LINE 2 "./Graphics/UI/Gtk/Recent/RecentChooserWidget.chs" #-}
    -- -*-haskell-*-
    -- GIMP Toolkit (GTK) Widget RecentChooserWidget
    --
    -- Author : Andy Stewart
    --
    -- Created: 27 Mar 2010
    --
    -- Copyright (C) 2010 Andy Stewart
    --
    -- This library is free software; you can redistribute it and/or
    -- modify it under the terms of the GNU Lesser General Public
    -- License as published by the Free Software Foundation; either
    -- version 2.1 of the License, or (at your option) any later version.
    --
    -- This library is distributed in the hope that it will be useful,
    -- but WITHOUT ANY WARRANTY; without even the implied warranty of
    -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    -- Lesser General Public License for more details.
    --
    -- |
    -- Maintainer : gtk2hs-users@lists.sourceforge.net
    -- Stability : provisional
    -- Portability : portable (depends on GHC)
    --
    -- Displays recently used files
    --
    -- * Module available since Gtk+ version 2.10
    --
    module Graphics.UI.Gtk.Recent.RecentChooserWidget (

    -- * Detail
    --
    -- | 'RecentChooserWidget' is a widget suitable for selecting recently used
    -- files. It is the main building block of a 'RecentChooserDialog'. Most
    -- applications will only need to use the latter; you can use
    -- 'RecentChooserWidget' as part of a larger window if you have special needs.
    --
    -- Note that 'RecentChooserWidget' does not have any methods of its own.
    -- Instead, you should use the functions that work on a 'RecentChooser'.
    --
    -- Recently used files are supported since Gtk+ 2.10.

    -- * Class Hierarchy
    --
    -- |
    -- @
    -- | 'GObject'
    -- | +----'Object'
    -- | +----'Widget'
    -- | +----'Container'
    -- | +----'Box'
    -- | +----'VBox'
    -- | +----RecentChooserWidget
    -- @

    -- * Types
      RecentChooserWidget,
      RecentChooserWidgetClass,
      castToRecentChooserWidget,
      toRecentChooserWidget,

    -- * Constructors
      recentChooserWidgetNew,
      recentChooserWidgetNewForManager,

      ) where

    import Control.Monad (liftM)

    import System.Glib.FFI
    import Graphics.UI.Gtk.Types
    {-# LINE 76 "./Graphics/UI/Gtk/Recent/RecentChooserWidget.chs" #-}
    import Graphics.UI.Gtk.Abstract.Object (makeNewObject)

    {-# LINE 79 "./Graphics/UI/Gtk/Recent/RecentChooserWidget.chs" #-}

    --------------------
    -- Constructors

    -- | Creates a new 'RecentChooserWidget' object. This is an embeddable widget
    -- used to access the recently used resources list.
    --
    recentChooserWidgetNew :: IO RecentChooserWidget
    recentChooserWidgetNew :: IO RecentChooserWidget
    recentChooserWidgetNew =
      (ForeignPtr RecentChooserWidget -> RecentChooserWidget,
     FinalizerPtr RecentChooserWidget)
    -> IO (Ptr RecentChooserWidget) -> IO RecentChooserWidget
    forall obj.
    GObjectClass obj =>
    (ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
    makeNewObject (ForeignPtr RecentChooserWidget -> RecentChooserWidget,
     FinalizerPtr RecentChooserWidget)
    forall {a}.
    (ForeignPtr RecentChooserWidget -> RecentChooserWidget,
     FinalizerPtr a)
    mkRecentChooserWidget (IO (Ptr RecentChooserWidget) -> IO RecentChooserWidget)
    -> IO (Ptr RecentChooserWidget) -> IO RecentChooserWidget
    forall a b. (a -> b) -> a -> b
    $
      (Ptr Widget -> Ptr RecentChooserWidget)
    -> IO (Ptr Widget) -> IO (Ptr RecentChooserWidget)
    forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
    liftM (Ptr Widget -> Ptr RecentChooserWidget
    forall a b. Ptr a -> Ptr b
    castPtr :: Ptr Widget -> Ptr RecentChooserWidget) (IO (Ptr Widget) -> IO (Ptr RecentChooserWidget))
    -> IO (Ptr Widget) -> IO (Ptr RecentChooserWidget)
    forall a b. (a -> b) -> a -> b
    $
      IO (Ptr Widget)
    gtk_recent_chooser_widget_new
    {-# LINE 91 "./Graphics/UI/Gtk/Recent/RecentChooserWidget.chs" #-}

    -- | Creates a new 'RecentChooserWidget' with a specified recent manager.
    --
    -- This is useful if you have implemented your own recent manager, or if you
    -- have a customized instance of a 'RecentManager' object.
    --
    recentChooserWidgetNewForManager :: RecentManagerClass manager
                                     => manager -- ^ @manager@ - a 'RecentManager'
                                     -> IO RecentChooserWidget -- ^ returns a new 'RecentChooserWidget'
    recentChooserWidgetNewForManager :: forall manager.
    RecentManagerClass manager =>
    manager -> IO RecentChooserWidget
    recentChooserWidgetNewForManager manager
    manager =
      (ForeignPtr RecentChooserWidget -> RecentChooserWidget,
     FinalizerPtr RecentChooserWidget)
    -> IO (Ptr RecentChooserWidget) -> IO RecentChooserWidget
    forall obj.
    GObjectClass obj =>
    (ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
    makeNewObject (ForeignPtr RecentChooserWidget -> RecentChooserWidget,
     FinalizerPtr RecentChooserWidget)
    forall {a}.
    (ForeignPtr RecentChooserWidget -> RecentChooserWidget,
     FinalizerPtr a)
    mkRecentChooserWidget (IO (Ptr RecentChooserWidget) -> IO RecentChooserWidget)
    -> IO (Ptr RecentChooserWidget) -> IO RecentChooserWidget
    forall a b. (a -> b) -> a -> b
    $
      (Ptr Widget -> Ptr RecentChooserWidget)
    -> IO (Ptr Widget) -> IO (Ptr RecentChooserWidget)
    forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
    liftM (Ptr Widget -> Ptr RecentChooserWidget
    forall a b. Ptr a -> Ptr b
    castPtr :: Ptr Widget -> Ptr RecentChooserWidget) (IO (Ptr Widget) -> IO (Ptr RecentChooserWidget))
    -> IO (Ptr Widget) -> IO (Ptr RecentChooserWidget)
    forall a b. (a -> b) -> a -> b
    $
      (\(RecentManager ForeignPtr RecentManager
    arg1) -> ForeignPtr RecentManager
    -> (Ptr RecentManager -> IO (Ptr Widget)) -> IO (Ptr Widget)
    forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
    withForeignPtr ForeignPtr RecentManager
    arg1 ((Ptr RecentManager -> IO (Ptr Widget)) -> IO (Ptr Widget))
    -> (Ptr RecentManager -> IO (Ptr Widget)) -> IO (Ptr Widget)
    forall a b. (a -> b) -> a -> b
    $ \Ptr RecentManager
    argPtr1 ->Ptr RecentManager -> IO (Ptr Widget)
    gtk_recent_chooser_widget_new_for_manager Ptr RecentManager
    argPtr1)
    {-# LINE 104 "./Graphics/UI/Gtk/Recent/RecentChooserWidget.chs" #-}
          (toRecentManager manager)

    foreign import ccall safe "gtk_recent_chooser_widget_new"
      gtk_recent_chooser_widget_new :: (IO (Ptr Widget))

    foreign import ccall safe "gtk_recent_chooser_widget_new_for_manager"
      gtk_recent_chooser_widget_new_for_manager :: ((Ptr RecentManager) -> (IO (Ptr Widget)))