Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- addShortcut
- getLocalOnly
- getLocation
- getNthBookmark
- getOpenFlags
- getShowConnectToServer
- getShowDesktop
- getShowEnterLocation
- getShowOtherLocations
- getShowRecent
- getShowTrash
- listShortcuts
- new
- removeShortcut
- setDropTargetsVisible
- setLocalOnly
- setLocation
- setOpenFlags
- setShowConnectToServer
- setShowDesktop
- setShowEnterLocation
- setShowOtherLocations
- setShowRecent
- setShowTrash
- Properties
- Signals
PlacesSidebar
is a widget that displays a list of frequently-used places in the
file system: the user’s home directory, the user’s bookmarks, and volumes and drives.
This widget is used as a sidebar in FileChooser
and may be used by file managers
and similar programs.
The places sidebar displays drives and volumes, and will automatically mount or unmount them when the user selects them.
Applications can hook to various signals in the places sidebar to customize its behavior. For example, they can add extra commands to the context menu of the sidebar.
While bookmarks are completely in control of the user, the places sidebar also
allows individual applications to provide extra shortcut folders that are unique
to each application. For example, a Paint program may want to add a shortcut
for a Clipart folder. You can do this with placesSidebarAddShortcut
.
To make use of the places sidebar, an application at least needs to connect
to the PlacesSidebar
::open-location
signal. This is emitted when the
user selects in the sidebar a location to open. The application should also
call placesSidebarSetLocation
when it changes the currently-viewed
location.
CSS nodes
GtkPlacesSidebar uses a single CSS node with name placessidebar and style class .sidebar.
Among the children of the places sidebar, the following style classes can be used:
- .sidebar-new-bookmark-row for the 'Add new bookmark' row
- .sidebar-placeholder-row for a row that is a placeholder
- .has-open-popup when a popup is open for a row
- newtype PlacesSidebar = PlacesSidebar (ManagedPtr PlacesSidebar)
- class GObject o => IsPlacesSidebar o
- toPlacesSidebar :: (MonadIO m, IsPlacesSidebar o) => o -> m PlacesSidebar
- noPlacesSidebar :: Maybe PlacesSidebar
- placesSidebarAddShortcut :: (HasCallStack, MonadIO m, IsPlacesSidebar a, IsFile b) => a -> b -> m ()
- placesSidebarGetLocalOnly :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m Bool
- placesSidebarGetLocation :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m (Maybe File)
- placesSidebarGetNthBookmark :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Int32 -> m (Maybe File)
- placesSidebarGetOpenFlags :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m [PlacesOpenFlags]
- placesSidebarGetShowConnectToServer :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m Bool
- placesSidebarGetShowDesktop :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m Bool
- placesSidebarGetShowEnterLocation :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m Bool
- placesSidebarGetShowOtherLocations :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m Bool
- placesSidebarGetShowRecent :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m Bool
- placesSidebarGetShowTrash :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m Bool
- placesSidebarListShortcuts :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m [File]
- placesSidebarNew :: (HasCallStack, MonadIO m) => m PlacesSidebar
- placesSidebarRemoveShortcut :: (HasCallStack, MonadIO m, IsPlacesSidebar a, IsFile b) => a -> b -> m ()
- placesSidebarSetDropTargetsVisible :: (HasCallStack, MonadIO m, IsPlacesSidebar a, IsDragContext b) => a -> Bool -> b -> m ()
- placesSidebarSetLocalOnly :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Bool -> m ()
- placesSidebarSetLocation :: (HasCallStack, MonadIO m, IsPlacesSidebar a, IsFile b) => a -> Maybe b -> m ()
- placesSidebarSetOpenFlags :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> [PlacesOpenFlags] -> m ()
- placesSidebarSetShowConnectToServer :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Bool -> m ()
- placesSidebarSetShowDesktop :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Bool -> m ()
- placesSidebarSetShowEnterLocation :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Bool -> m ()
- placesSidebarSetShowOtherLocations :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Bool -> m ()
- placesSidebarSetShowRecent :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Bool -> m ()
- placesSidebarSetShowTrash :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Bool -> m ()
- constructPlacesSidebarLocalOnly :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o)
- getPlacesSidebarLocalOnly :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- setPlacesSidebarLocalOnly :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- clearPlacesSidebarLocation :: (MonadIO m, IsPlacesSidebar o) => o -> m ()
- constructPlacesSidebarLocation :: (IsPlacesSidebar o, IsFile a) => a -> IO (GValueConstruct o)
- getPlacesSidebarLocation :: (MonadIO m, IsPlacesSidebar o) => o -> m (Maybe File)
- setPlacesSidebarLocation :: (MonadIO m, IsPlacesSidebar o, IsFile a) => o -> a -> m ()
- constructPlacesSidebarOpenFlags :: IsPlacesSidebar o => [PlacesOpenFlags] -> IO (GValueConstruct o)
- getPlacesSidebarOpenFlags :: (MonadIO m, IsPlacesSidebar o) => o -> m [PlacesOpenFlags]
- setPlacesSidebarOpenFlags :: (MonadIO m, IsPlacesSidebar o) => o -> [PlacesOpenFlags] -> m ()
- constructPlacesSidebarPopulateAll :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o)
- getPlacesSidebarPopulateAll :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- setPlacesSidebarPopulateAll :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- constructPlacesSidebarShowConnectToServer :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o)
- getPlacesSidebarShowConnectToServer :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- setPlacesSidebarShowConnectToServer :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- constructPlacesSidebarShowDesktop :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o)
- getPlacesSidebarShowDesktop :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- setPlacesSidebarShowDesktop :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- constructPlacesSidebarShowEnterLocation :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o)
- getPlacesSidebarShowEnterLocation :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- setPlacesSidebarShowEnterLocation :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- constructPlacesSidebarShowOtherLocations :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o)
- getPlacesSidebarShowOtherLocations :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- setPlacesSidebarShowOtherLocations :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- constructPlacesSidebarShowRecent :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o)
- getPlacesSidebarShowRecent :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- setPlacesSidebarShowRecent :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- constructPlacesSidebarShowTrash :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o)
- getPlacesSidebarShowTrash :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- setPlacesSidebarShowTrash :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- type C_PlacesSidebarDragActionAskCallback = Ptr () -> Int32 -> Ptr () -> IO Int32
- type PlacesSidebarDragActionAskCallback = Int32 -> IO Int32
- afterPlacesSidebarDragActionAsk :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragActionAskCallback -> m SignalHandlerId
- genClosure_PlacesSidebarDragActionAsk :: PlacesSidebarDragActionAskCallback -> IO Closure
- mk_PlacesSidebarDragActionAskCallback :: C_PlacesSidebarDragActionAskCallback -> IO (FunPtr C_PlacesSidebarDragActionAskCallback)
- noPlacesSidebarDragActionAskCallback :: Maybe PlacesSidebarDragActionAskCallback
- onPlacesSidebarDragActionAsk :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragActionAskCallback -> m SignalHandlerId
- wrap_PlacesSidebarDragActionAskCallback :: PlacesSidebarDragActionAskCallback -> Ptr () -> Int32 -> Ptr () -> IO Int32
- type C_PlacesSidebarDragActionRequestedCallback = Ptr () -> Ptr DragContext -> Ptr File -> Ptr (GList (Ptr File)) -> Ptr () -> IO Int32
- type PlacesSidebarDragActionRequestedCallback = DragContext -> File -> [File] -> IO Int32
- afterPlacesSidebarDragActionRequested :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragActionRequestedCallback -> m SignalHandlerId
- genClosure_PlacesSidebarDragActionRequested :: PlacesSidebarDragActionRequestedCallback -> IO Closure
- mk_PlacesSidebarDragActionRequestedCallback :: C_PlacesSidebarDragActionRequestedCallback -> IO (FunPtr C_PlacesSidebarDragActionRequestedCallback)
- noPlacesSidebarDragActionRequestedCallback :: Maybe PlacesSidebarDragActionRequestedCallback
- onPlacesSidebarDragActionRequested :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragActionRequestedCallback -> m SignalHandlerId
- wrap_PlacesSidebarDragActionRequestedCallback :: PlacesSidebarDragActionRequestedCallback -> Ptr () -> Ptr DragContext -> Ptr File -> Ptr (GList (Ptr File)) -> Ptr () -> IO Int32
- type C_PlacesSidebarDragPerformDropCallback = Ptr () -> Ptr File -> Ptr (GList (Ptr File)) -> Int32 -> Ptr () -> IO ()
- type PlacesSidebarDragPerformDropCallback = File -> [File] -> Int32 -> IO ()
- afterPlacesSidebarDragPerformDrop :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragPerformDropCallback -> m SignalHandlerId
- genClosure_PlacesSidebarDragPerformDrop :: PlacesSidebarDragPerformDropCallback -> IO Closure
- mk_PlacesSidebarDragPerformDropCallback :: C_PlacesSidebarDragPerformDropCallback -> IO (FunPtr C_PlacesSidebarDragPerformDropCallback)
- noPlacesSidebarDragPerformDropCallback :: Maybe PlacesSidebarDragPerformDropCallback
- onPlacesSidebarDragPerformDrop :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragPerformDropCallback -> m SignalHandlerId
- wrap_PlacesSidebarDragPerformDropCallback :: PlacesSidebarDragPerformDropCallback -> Ptr () -> Ptr File -> Ptr (GList (Ptr File)) -> Int32 -> Ptr () -> IO ()
- type C_PlacesSidebarMountCallback = Ptr () -> Ptr MountOperation -> Ptr () -> IO ()
- type PlacesSidebarMountCallback = MountOperation -> IO ()
- afterPlacesSidebarMount :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarMountCallback -> m SignalHandlerId
- genClosure_PlacesSidebarMount :: PlacesSidebarMountCallback -> IO Closure
- mk_PlacesSidebarMountCallback :: C_PlacesSidebarMountCallback -> IO (FunPtr C_PlacesSidebarMountCallback)
- noPlacesSidebarMountCallback :: Maybe PlacesSidebarMountCallback
- onPlacesSidebarMount :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarMountCallback -> m SignalHandlerId
- wrap_PlacesSidebarMountCallback :: PlacesSidebarMountCallback -> Ptr () -> Ptr MountOperation -> Ptr () -> IO ()
- type C_PlacesSidebarOpenLocationCallback = Ptr () -> Ptr File -> CUInt -> Ptr () -> IO ()
- type PlacesSidebarOpenLocationCallback = File -> [PlacesOpenFlags] -> IO ()
- afterPlacesSidebarOpenLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarOpenLocationCallback -> m SignalHandlerId
- genClosure_PlacesSidebarOpenLocation :: PlacesSidebarOpenLocationCallback -> IO Closure
- mk_PlacesSidebarOpenLocationCallback :: C_PlacesSidebarOpenLocationCallback -> IO (FunPtr C_PlacesSidebarOpenLocationCallback)
- noPlacesSidebarOpenLocationCallback :: Maybe PlacesSidebarOpenLocationCallback
- onPlacesSidebarOpenLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarOpenLocationCallback -> m SignalHandlerId
- wrap_PlacesSidebarOpenLocationCallback :: PlacesSidebarOpenLocationCallback -> Ptr () -> Ptr File -> CUInt -> Ptr () -> IO ()
- type C_PlacesSidebarPopulatePopupCallback = Ptr () -> Ptr Widget -> Ptr File -> Ptr Volume -> Ptr () -> IO ()
- type PlacesSidebarPopulatePopupCallback = Widget -> Maybe File -> Maybe Volume -> IO ()
- afterPlacesSidebarPopulatePopup :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarPopulatePopupCallback -> m SignalHandlerId
- genClosure_PlacesSidebarPopulatePopup :: PlacesSidebarPopulatePopupCallback -> IO Closure
- mk_PlacesSidebarPopulatePopupCallback :: C_PlacesSidebarPopulatePopupCallback -> IO (FunPtr C_PlacesSidebarPopulatePopupCallback)
- noPlacesSidebarPopulatePopupCallback :: Maybe PlacesSidebarPopulatePopupCallback
- onPlacesSidebarPopulatePopup :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarPopulatePopupCallback -> m SignalHandlerId
- wrap_PlacesSidebarPopulatePopupCallback :: PlacesSidebarPopulatePopupCallback -> Ptr () -> Ptr Widget -> Ptr File -> Ptr Volume -> Ptr () -> IO ()
- type C_PlacesSidebarShowConnectToServerCallback = Ptr () -> Ptr () -> IO ()
- type PlacesSidebarShowConnectToServerCallback = IO ()
- afterPlacesSidebarShowConnectToServer :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowConnectToServerCallback -> m SignalHandlerId
- genClosure_PlacesSidebarShowConnectToServer :: PlacesSidebarShowConnectToServerCallback -> IO Closure
- mk_PlacesSidebarShowConnectToServerCallback :: C_PlacesSidebarShowConnectToServerCallback -> IO (FunPtr C_PlacesSidebarShowConnectToServerCallback)
- noPlacesSidebarShowConnectToServerCallback :: Maybe PlacesSidebarShowConnectToServerCallback
- onPlacesSidebarShowConnectToServer :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowConnectToServerCallback -> m SignalHandlerId
- wrap_PlacesSidebarShowConnectToServerCallback :: PlacesSidebarShowConnectToServerCallback -> Ptr () -> Ptr () -> IO ()
- type C_PlacesSidebarShowEnterLocationCallback = Ptr () -> Ptr () -> IO ()
- type PlacesSidebarShowEnterLocationCallback = IO ()
- afterPlacesSidebarShowEnterLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowEnterLocationCallback -> m SignalHandlerId
- genClosure_PlacesSidebarShowEnterLocation :: PlacesSidebarShowEnterLocationCallback -> IO Closure
- mk_PlacesSidebarShowEnterLocationCallback :: C_PlacesSidebarShowEnterLocationCallback -> IO (FunPtr C_PlacesSidebarShowEnterLocationCallback)
- noPlacesSidebarShowEnterLocationCallback :: Maybe PlacesSidebarShowEnterLocationCallback
- onPlacesSidebarShowEnterLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowEnterLocationCallback -> m SignalHandlerId
- wrap_PlacesSidebarShowEnterLocationCallback :: PlacesSidebarShowEnterLocationCallback -> Ptr () -> Ptr () -> IO ()
- type C_PlacesSidebarShowErrorMessageCallback = Ptr () -> CString -> CString -> Ptr () -> IO ()
- type PlacesSidebarShowErrorMessageCallback = Text -> Text -> IO ()
- afterPlacesSidebarShowErrorMessage :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowErrorMessageCallback -> m SignalHandlerId
- genClosure_PlacesSidebarShowErrorMessage :: PlacesSidebarShowErrorMessageCallback -> IO Closure
- mk_PlacesSidebarShowErrorMessageCallback :: C_PlacesSidebarShowErrorMessageCallback -> IO (FunPtr C_PlacesSidebarShowErrorMessageCallback)
- noPlacesSidebarShowErrorMessageCallback :: Maybe PlacesSidebarShowErrorMessageCallback
- onPlacesSidebarShowErrorMessage :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowErrorMessageCallback -> m SignalHandlerId
- wrap_PlacesSidebarShowErrorMessageCallback :: PlacesSidebarShowErrorMessageCallback -> Ptr () -> CString -> CString -> Ptr () -> IO ()
- type C_PlacesSidebarShowOtherLocationsCallback = Ptr () -> Ptr () -> IO ()
- type PlacesSidebarShowOtherLocationsCallback = IO ()
- afterPlacesSidebarShowOtherLocations :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsCallback -> m SignalHandlerId
- genClosure_PlacesSidebarShowOtherLocations :: PlacesSidebarShowOtherLocationsCallback -> IO Closure
- mk_PlacesSidebarShowOtherLocationsCallback :: C_PlacesSidebarShowOtherLocationsCallback -> IO (FunPtr C_PlacesSidebarShowOtherLocationsCallback)
- noPlacesSidebarShowOtherLocationsCallback :: Maybe PlacesSidebarShowOtherLocationsCallback
- onPlacesSidebarShowOtherLocations :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsCallback -> m SignalHandlerId
- wrap_PlacesSidebarShowOtherLocationsCallback :: PlacesSidebarShowOtherLocationsCallback -> Ptr () -> Ptr () -> IO ()
- type C_PlacesSidebarShowOtherLocationsWithFlagsCallback = Ptr () -> CUInt -> Ptr () -> IO ()
- type PlacesSidebarShowOtherLocationsWithFlagsCallback = [PlacesOpenFlags] -> IO ()
- afterPlacesSidebarShowOtherLocationsWithFlags :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsWithFlagsCallback -> m SignalHandlerId
- genClosure_PlacesSidebarShowOtherLocationsWithFlags :: PlacesSidebarShowOtherLocationsWithFlagsCallback -> IO Closure
- mk_PlacesSidebarShowOtherLocationsWithFlagsCallback :: C_PlacesSidebarShowOtherLocationsWithFlagsCallback -> IO (FunPtr C_PlacesSidebarShowOtherLocationsWithFlagsCallback)
- noPlacesSidebarShowOtherLocationsWithFlagsCallback :: Maybe PlacesSidebarShowOtherLocationsWithFlagsCallback
- onPlacesSidebarShowOtherLocationsWithFlags :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsWithFlagsCallback -> m SignalHandlerId
- wrap_PlacesSidebarShowOtherLocationsWithFlagsCallback :: PlacesSidebarShowOtherLocationsWithFlagsCallback -> Ptr () -> CUInt -> Ptr () -> IO ()
- type C_PlacesSidebarUnmountCallback = Ptr () -> Ptr MountOperation -> Ptr () -> IO ()
- type PlacesSidebarUnmountCallback = MountOperation -> IO ()
- afterPlacesSidebarUnmount :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarUnmountCallback -> m SignalHandlerId
- genClosure_PlacesSidebarUnmount :: PlacesSidebarUnmountCallback -> IO Closure
- mk_PlacesSidebarUnmountCallback :: C_PlacesSidebarUnmountCallback -> IO (FunPtr C_PlacesSidebarUnmountCallback)
- noPlacesSidebarUnmountCallback :: Maybe PlacesSidebarUnmountCallback
- onPlacesSidebarUnmount :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarUnmountCallback -> m SignalHandlerId
- wrap_PlacesSidebarUnmountCallback :: PlacesSidebarUnmountCallback -> Ptr () -> Ptr MountOperation -> Ptr () -> IO ()
Exported types
newtype PlacesSidebar Source #
class GObject o => IsPlacesSidebar o Source #
toPlacesSidebar :: (MonadIO m, IsPlacesSidebar o) => o -> m PlacesSidebar Source #
Methods
addShortcut
placesSidebarAddShortcut Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a, IsFile b) | |
=> a |
|
-> b |
|
-> m () |
Applications may want to present some folders in the places sidebar if they could be immediately useful to users. For example, a drawing program could add a “/usr/share/clipart” location when the sidebar is being used in an “Insert Clipart” dialog box.
This function adds the specified location
to a special place for immutable
shortcuts. The shortcuts are application-specific; they are not shared
across applications, and they are not persistent. If this function
is called multiple times with different locations, then they are added
to the sidebar’s list in the same order as the function is called.
Since: 3.10
getLocalOnly
placesSidebarGetLocalOnly Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m Bool | Returns: |
Returns the value previously set with placesSidebarSetLocalOnly
.
Since: 3.12
getLocation
placesSidebarGetLocation Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m (Maybe File) | Returns: a GFile with the selected location, or
|
Gets the currently-selected location in the sidebar
. This can be NULL
when
nothing is selected, for example, when placesSidebarSetLocation
has
been called with a location that is not among the sidebar’s list of places to
show.
You can use this function to get the selection in the sidebar
. Also, if you
connect to the PlacesSidebar
::populate-popup
signal, you can use this
function to get the location that is being referred to during the callbacks
for your menu items.
Since: 3.10
getNthBookmark
placesSidebarGetNthBookmark Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> Int32 |
|
-> m (Maybe File) | Returns: The bookmark specified by the index |
This function queries the bookmarks added by the user to the places sidebar,
and returns one of them. This function is used by FileChooser
to implement
the “Alt-1”, “Alt-2”, etc. shortcuts, which activate the cooresponding bookmark.
Since: 3.10
getOpenFlags
placesSidebarGetOpenFlags Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m [PlacesOpenFlags] | Returns: the |
Gets the open flags.
Since: 3.10
getShowConnectToServer
placesSidebarGetShowConnectToServer Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m Bool | Returns: |
Deprecated: (Since version 3.18)It is recommended to group this functionality with the drives and network location under the new 'Other Location' item
Returns the value previously set with placesSidebarSetShowConnectToServer
getShowDesktop
placesSidebarGetShowDesktop Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m Bool | Returns: |
Returns the value previously set with placesSidebarSetShowDesktop
Since: 3.10
getShowEnterLocation
placesSidebarGetShowEnterLocation Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m Bool | Returns: |
Returns the value previously set with placesSidebarSetShowEnterLocation
Since: 3.14
getShowOtherLocations
placesSidebarGetShowOtherLocations Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m Bool | Returns: |
Returns the value previously set with placesSidebarSetShowOtherLocations
Since: 3.18
getShowRecent
placesSidebarGetShowRecent Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m Bool | Returns: |
Returns the value previously set with placesSidebarSetShowRecent
Since: 3.18
getShowTrash
placesSidebarGetShowTrash Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m Bool | Returns: |
Returns the value previously set with placesSidebarSetShowTrash
Since: 3.18
listShortcuts
placesSidebarListShortcuts Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m [File] | Returns:
A C codeg_slist_free_full (list, (GDestroyNotify) g_object_unref); |
Gets the list of shortcuts.
Since: 3.10
new
:: (HasCallStack, MonadIO m) | |
=> m PlacesSidebar | Returns: a newly created |
Creates a new PlacesSidebar
widget.
The application should connect to at least the
PlacesSidebar
::open-location
signal to be notified
when the user makes a selection in the sidebar.
Since: 3.10
removeShortcut
placesSidebarRemoveShortcut Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a, IsFile b) | |
=> a |
|
-> b |
|
-> m () |
Removes an application-specific shortcut that has been previously been
inserted with placesSidebarAddShortcut
. If the location
is not a
shortcut in the sidebar, then nothing is done.
Since: 3.10
setDropTargetsVisible
placesSidebarSetDropTargetsVisible Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a, IsDragContext b) | |
=> a |
|
-> Bool |
|
-> b |
|
-> m () |
Make the GtkPlacesSidebar show drop targets, so it can show the available drop targets and a "new bookmark" row. This improves the Drag-and-Drop experience of the user and allows applications to show all available drop targets at once.
This needs to be called when the application is aware of an ongoing drag that might target the sidebar. The drop-targets-visible state will be unset automatically if the drag finishes in the GtkPlacesSidebar. You only need to unset the state when the drag ends on some other widget on your application.
Since: 3.18
setLocalOnly
placesSidebarSetLocalOnly Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the sidebar
should only show local files.
Since: 3.12
setLocation
placesSidebarSetLocation Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a, IsFile b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the location that is being shown in the widgets surrounding the
sidebar
, for example, in a folder view in a file manager. In turn, the
sidebar
will highlight that location if it is being shown in the list of
places, or it will unhighlight everything if the location
is not among the
places in the list.
Since: 3.10
setOpenFlags
placesSidebarSetOpenFlags Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> [PlacesOpenFlags] |
|
-> m () |
Sets the way in which the calling application can open new locations from the places sidebar. For example, some applications only open locations “directly” into their main view, while others may support opening locations in a new notebook tab or a new window.
This function is used to tell the places sidebar
about the ways in which the
application can open new locations, so that the sidebar can display (or not)
the “Open in new tab” and “Open in new window” menu items as appropriate.
When the PlacesSidebar
::open-location
signal is emitted, its flags
argument will be set to one of the flags
that was passed in
placesSidebarSetOpenFlags
.
Passing 0 for flags
will cause GTK_PLACES_OPEN_NORMAL
to always be sent
to callbacks for the “open-location” signal.
Since: 3.10
setShowConnectToServer
placesSidebarSetShowConnectToServer Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> Bool |
|
-> m () |
Deprecated: (Since version 3.18)It is recommended to group this functionality with the drives and network location under the new 'Other Location' item
Sets whether the sidebar
should show an item for connecting to a network server;
this is off by default. An application may want to turn this on if it implements
a way for the user to connect to network servers directly.
If you enable this, you should connect to the
PlacesSidebar
::show-connect-to-server
signal.
Since: 3.10
setShowDesktop
placesSidebarSetShowDesktop Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the sidebar
should show an item for the Desktop folder.
The default value for this option is determined by the desktop
environment and the user’s configuration, but this function can be
used to override it on a per-application basis.
Since: 3.10
setShowEnterLocation
placesSidebarSetShowEnterLocation Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the sidebar
should show an item for entering a location;
this is off by default. An application may want to turn this on if manually
entering URLs is an expected user action.
If you enable this, you should connect to the
PlacesSidebar
::show-enter-location
signal.
Since: 3.14
setShowOtherLocations
placesSidebarSetShowOtherLocations Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the sidebar
should show an item for the application to show
an Other Locations view; this is off by default. When set to True
, persistent
devices such as hard drives are hidden, otherwise they are shown in the sidebar.
An application may want to turn this on if it implements a way for the user to
see and interact with drives and network servers directly.
If you enable this, you should connect to the
PlacesSidebar
::show-other-locations
signal.
Since: 3.18
setShowRecent
placesSidebarSetShowRecent Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the sidebar
should show an item for recent files.
The default value for this option is determined by the desktop
environment, but this function can be used to override it on a
per-application basis.
Since: 3.18
setShowTrash
placesSidebarSetShowTrash Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the sidebar
should show an item for the Trash location.
Since: 3.18
Properties
localOnly
constructPlacesSidebarLocalOnly :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o) Source #
getPlacesSidebarLocalOnly :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
setPlacesSidebarLocalOnly :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
location
clearPlacesSidebarLocation :: (MonadIO m, IsPlacesSidebar o) => o -> m () Source #
constructPlacesSidebarLocation :: (IsPlacesSidebar o, IsFile a) => a -> IO (GValueConstruct o) Source #
getPlacesSidebarLocation :: (MonadIO m, IsPlacesSidebar o) => o -> m (Maybe File) Source #
setPlacesSidebarLocation :: (MonadIO m, IsPlacesSidebar o, IsFile a) => o -> a -> m () Source #
openFlags
constructPlacesSidebarOpenFlags :: IsPlacesSidebar o => [PlacesOpenFlags] -> IO (GValueConstruct o) Source #
getPlacesSidebarOpenFlags :: (MonadIO m, IsPlacesSidebar o) => o -> m [PlacesOpenFlags] Source #
setPlacesSidebarOpenFlags :: (MonadIO m, IsPlacesSidebar o) => o -> [PlacesOpenFlags] -> m () Source #
populateAll
constructPlacesSidebarPopulateAll :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o) Source #
getPlacesSidebarPopulateAll :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
setPlacesSidebarPopulateAll :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
showConnectToServer
constructPlacesSidebarShowConnectToServer :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o) Source #
getPlacesSidebarShowConnectToServer :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
setPlacesSidebarShowConnectToServer :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
showDesktop
constructPlacesSidebarShowDesktop :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o) Source #
getPlacesSidebarShowDesktop :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
setPlacesSidebarShowDesktop :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
showEnterLocation
constructPlacesSidebarShowEnterLocation :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o) Source #
getPlacesSidebarShowEnterLocation :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
setPlacesSidebarShowEnterLocation :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
showOtherLocations
constructPlacesSidebarShowOtherLocations :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o) Source #
getPlacesSidebarShowOtherLocations :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
setPlacesSidebarShowOtherLocations :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
showRecent
constructPlacesSidebarShowRecent :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o) Source #
getPlacesSidebarShowRecent :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
setPlacesSidebarShowRecent :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
showTrash
constructPlacesSidebarShowTrash :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o) Source #
getPlacesSidebarShowTrash :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
setPlacesSidebarShowTrash :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
Signals
dragActionAsk
afterPlacesSidebarDragActionAsk :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragActionAskCallback -> m SignalHandlerId Source #
mk_PlacesSidebarDragActionAskCallback :: C_PlacesSidebarDragActionAskCallback -> IO (FunPtr C_PlacesSidebarDragActionAskCallback) Source #
onPlacesSidebarDragActionAsk :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragActionAskCallback -> m SignalHandlerId Source #
wrap_PlacesSidebarDragActionAskCallback :: PlacesSidebarDragActionAskCallback -> Ptr () -> Int32 -> Ptr () -> IO Int32 Source #
dragActionRequested
type C_PlacesSidebarDragActionRequestedCallback = Ptr () -> Ptr DragContext -> Ptr File -> Ptr (GList (Ptr File)) -> Ptr () -> IO Int32 Source #
type PlacesSidebarDragActionRequestedCallback = DragContext -> File -> [File] -> IO Int32 Source #
afterPlacesSidebarDragActionRequested :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragActionRequestedCallback -> m SignalHandlerId Source #
genClosure_PlacesSidebarDragActionRequested :: PlacesSidebarDragActionRequestedCallback -> IO Closure Source #
mk_PlacesSidebarDragActionRequestedCallback :: C_PlacesSidebarDragActionRequestedCallback -> IO (FunPtr C_PlacesSidebarDragActionRequestedCallback) Source #
noPlacesSidebarDragActionRequestedCallback :: Maybe PlacesSidebarDragActionRequestedCallback Source #
onPlacesSidebarDragActionRequested :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragActionRequestedCallback -> m SignalHandlerId Source #
wrap_PlacesSidebarDragActionRequestedCallback :: PlacesSidebarDragActionRequestedCallback -> Ptr () -> Ptr DragContext -> Ptr File -> Ptr (GList (Ptr File)) -> Ptr () -> IO Int32 Source #
dragPerformDrop
type C_PlacesSidebarDragPerformDropCallback = Ptr () -> Ptr File -> Ptr (GList (Ptr File)) -> Int32 -> Ptr () -> IO () Source #
afterPlacesSidebarDragPerformDrop :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragPerformDropCallback -> m SignalHandlerId Source #
genClosure_PlacesSidebarDragPerformDrop :: PlacesSidebarDragPerformDropCallback -> IO Closure Source #
mk_PlacesSidebarDragPerformDropCallback :: C_PlacesSidebarDragPerformDropCallback -> IO (FunPtr C_PlacesSidebarDragPerformDropCallback) Source #
onPlacesSidebarDragPerformDrop :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragPerformDropCallback -> m SignalHandlerId Source #
wrap_PlacesSidebarDragPerformDropCallback :: PlacesSidebarDragPerformDropCallback -> Ptr () -> Ptr File -> Ptr (GList (Ptr File)) -> Int32 -> Ptr () -> IO () Source #
mount
type C_PlacesSidebarMountCallback = Ptr () -> Ptr MountOperation -> Ptr () -> IO () Source #
type PlacesSidebarMountCallback = MountOperation -> IO () Source #
afterPlacesSidebarMount :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarMountCallback -> m SignalHandlerId Source #
mk_PlacesSidebarMountCallback :: C_PlacesSidebarMountCallback -> IO (FunPtr C_PlacesSidebarMountCallback) Source #
onPlacesSidebarMount :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarMountCallback -> m SignalHandlerId Source #
wrap_PlacesSidebarMountCallback :: PlacesSidebarMountCallback -> Ptr () -> Ptr MountOperation -> Ptr () -> IO () Source #
openLocation
type PlacesSidebarOpenLocationCallback = File -> [PlacesOpenFlags] -> IO () Source #
afterPlacesSidebarOpenLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarOpenLocationCallback -> m SignalHandlerId Source #
mk_PlacesSidebarOpenLocationCallback :: C_PlacesSidebarOpenLocationCallback -> IO (FunPtr C_PlacesSidebarOpenLocationCallback) Source #
onPlacesSidebarOpenLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarOpenLocationCallback -> m SignalHandlerId Source #
wrap_PlacesSidebarOpenLocationCallback :: PlacesSidebarOpenLocationCallback -> Ptr () -> Ptr File -> CUInt -> Ptr () -> IO () Source #
populatePopup
type C_PlacesSidebarPopulatePopupCallback = Ptr () -> Ptr Widget -> Ptr File -> Ptr Volume -> Ptr () -> IO () Source #
afterPlacesSidebarPopulatePopup :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarPopulatePopupCallback -> m SignalHandlerId Source #
mk_PlacesSidebarPopulatePopupCallback :: C_PlacesSidebarPopulatePopupCallback -> IO (FunPtr C_PlacesSidebarPopulatePopupCallback) Source #
onPlacesSidebarPopulatePopup :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarPopulatePopupCallback -> m SignalHandlerId Source #
wrap_PlacesSidebarPopulatePopupCallback :: PlacesSidebarPopulatePopupCallback -> Ptr () -> Ptr Widget -> Ptr File -> Ptr Volume -> Ptr () -> IO () Source #
showConnectToServer
type PlacesSidebarShowConnectToServerCallback = IO () Source #
Deprecated: (Since version 3.18)use the PlacesSidebar
::show-other-locations
signal to connect to network servers.
afterPlacesSidebarShowConnectToServer :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowConnectToServerCallback -> m SignalHandlerId Source #
genClosure_PlacesSidebarShowConnectToServer :: PlacesSidebarShowConnectToServerCallback -> IO Closure Source #
mk_PlacesSidebarShowConnectToServerCallback :: C_PlacesSidebarShowConnectToServerCallback -> IO (FunPtr C_PlacesSidebarShowConnectToServerCallback) Source #
noPlacesSidebarShowConnectToServerCallback :: Maybe PlacesSidebarShowConnectToServerCallback Source #
onPlacesSidebarShowConnectToServer :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowConnectToServerCallback -> m SignalHandlerId Source #
wrap_PlacesSidebarShowConnectToServerCallback :: PlacesSidebarShowConnectToServerCallback -> Ptr () -> Ptr () -> IO () Source #
showEnterLocation
type PlacesSidebarShowEnterLocationCallback = IO () Source #
afterPlacesSidebarShowEnterLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowEnterLocationCallback -> m SignalHandlerId Source #
genClosure_PlacesSidebarShowEnterLocation :: PlacesSidebarShowEnterLocationCallback -> IO Closure Source #
mk_PlacesSidebarShowEnterLocationCallback :: C_PlacesSidebarShowEnterLocationCallback -> IO (FunPtr C_PlacesSidebarShowEnterLocationCallback) Source #
onPlacesSidebarShowEnterLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowEnterLocationCallback -> m SignalHandlerId Source #
wrap_PlacesSidebarShowEnterLocationCallback :: PlacesSidebarShowEnterLocationCallback -> Ptr () -> Ptr () -> IO () Source #
showErrorMessage
type C_PlacesSidebarShowErrorMessageCallback = Ptr () -> CString -> CString -> Ptr () -> IO () Source #
afterPlacesSidebarShowErrorMessage :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowErrorMessageCallback -> m SignalHandlerId Source #
genClosure_PlacesSidebarShowErrorMessage :: PlacesSidebarShowErrorMessageCallback -> IO Closure Source #
mk_PlacesSidebarShowErrorMessageCallback :: C_PlacesSidebarShowErrorMessageCallback -> IO (FunPtr C_PlacesSidebarShowErrorMessageCallback) Source #
onPlacesSidebarShowErrorMessage :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowErrorMessageCallback -> m SignalHandlerId Source #
wrap_PlacesSidebarShowErrorMessageCallback :: PlacesSidebarShowErrorMessageCallback -> Ptr () -> CString -> CString -> Ptr () -> IO () Source #
showOtherLocations
type PlacesSidebarShowOtherLocationsCallback = IO () Source #
Deprecated: (Since version 3.20)use the PlacesSidebar
::show-other-locations-with-flags
which includes the open flags in order to allow the user to specify to openin a new tab or window, in a similar way than PlacesSidebar
::open-location
afterPlacesSidebarShowOtherLocations :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsCallback -> m SignalHandlerId Source #
genClosure_PlacesSidebarShowOtherLocations :: PlacesSidebarShowOtherLocationsCallback -> IO Closure Source #
mk_PlacesSidebarShowOtherLocationsCallback :: C_PlacesSidebarShowOtherLocationsCallback -> IO (FunPtr C_PlacesSidebarShowOtherLocationsCallback) Source #
onPlacesSidebarShowOtherLocations :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsCallback -> m SignalHandlerId Source #
wrap_PlacesSidebarShowOtherLocationsCallback :: PlacesSidebarShowOtherLocationsCallback -> Ptr () -> Ptr () -> IO () Source #
showOtherLocationsWithFlags
type C_PlacesSidebarShowOtherLocationsWithFlagsCallback = Ptr () -> CUInt -> Ptr () -> IO () Source #
type PlacesSidebarShowOtherLocationsWithFlagsCallback = [PlacesOpenFlags] -> IO () Source #
afterPlacesSidebarShowOtherLocationsWithFlags :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsWithFlagsCallback -> m SignalHandlerId Source #
genClosure_PlacesSidebarShowOtherLocationsWithFlags :: PlacesSidebarShowOtherLocationsWithFlagsCallback -> IO Closure Source #
mk_PlacesSidebarShowOtherLocationsWithFlagsCallback :: C_PlacesSidebarShowOtherLocationsWithFlagsCallback -> IO (FunPtr C_PlacesSidebarShowOtherLocationsWithFlagsCallback) Source #
noPlacesSidebarShowOtherLocationsWithFlagsCallback :: Maybe PlacesSidebarShowOtherLocationsWithFlagsCallback Source #
onPlacesSidebarShowOtherLocationsWithFlags :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsWithFlagsCallback -> m SignalHandlerId Source #
wrap_PlacesSidebarShowOtherLocationsWithFlagsCallback :: PlacesSidebarShowOtherLocationsWithFlagsCallback -> Ptr () -> CUInt -> Ptr () -> IO () Source #
unmount
type C_PlacesSidebarUnmountCallback = Ptr () -> Ptr MountOperation -> Ptr () -> IO () Source #
type PlacesSidebarUnmountCallback = MountOperation -> IO () Source #
afterPlacesSidebarUnmount :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarUnmountCallback -> m SignalHandlerId Source #
mk_PlacesSidebarUnmountCallback :: C_PlacesSidebarUnmountCallback -> IO (FunPtr C_PlacesSidebarUnmountCallback) Source #
onPlacesSidebarUnmount :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarUnmountCallback -> m SignalHandlerId Source #
wrap_PlacesSidebarUnmountCallback :: PlacesSidebarUnmountCallback -> Ptr () -> Ptr MountOperation -> Ptr () -> IO () Source #