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 placesidebar 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 :: IsPlacesSidebar o => o -> IO PlacesSidebar
- noPlacesSidebar :: Maybe PlacesSidebar
- data PlacesSidebarAddShortcutMethodInfo
- placesSidebarAddShortcut :: (HasCallStack, MonadIO m, IsPlacesSidebar a, IsFile b) => a -> b -> m ()
- data PlacesSidebarGetLocalOnlyMethodInfo
- placesSidebarGetLocalOnly :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m Bool
- data PlacesSidebarGetLocationMethodInfo
- placesSidebarGetLocation :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m (Maybe File)
- data PlacesSidebarGetNthBookmarkMethodInfo
- placesSidebarGetNthBookmark :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Int32 -> m (Maybe File)
- data PlacesSidebarGetOpenFlagsMethodInfo
- placesSidebarGetOpenFlags :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m [PlacesOpenFlags]
- data PlacesSidebarGetShowConnectToServerMethodInfo
- placesSidebarGetShowConnectToServer :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m Bool
- data PlacesSidebarGetShowDesktopMethodInfo
- placesSidebarGetShowDesktop :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m Bool
- data PlacesSidebarGetShowEnterLocationMethodInfo
- placesSidebarGetShowEnterLocation :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m Bool
- data PlacesSidebarGetShowOtherLocationsMethodInfo
- placesSidebarGetShowOtherLocations :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m Bool
- data PlacesSidebarGetShowRecentMethodInfo
- placesSidebarGetShowRecent :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m Bool
- data PlacesSidebarGetShowTrashMethodInfo
- placesSidebarGetShowTrash :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m Bool
- data PlacesSidebarListShortcutsMethodInfo
- placesSidebarListShortcuts :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> m [File]
- placesSidebarNew :: (HasCallStack, MonadIO m) => m PlacesSidebar
- data PlacesSidebarRemoveShortcutMethodInfo
- placesSidebarRemoveShortcut :: (HasCallStack, MonadIO m, IsPlacesSidebar a, IsFile b) => a -> b -> m ()
- data PlacesSidebarSetDropTargetsVisibleMethodInfo
- placesSidebarSetDropTargetsVisible :: (HasCallStack, MonadIO m, IsPlacesSidebar a, IsDragContext b) => a -> Bool -> b -> m ()
- data PlacesSidebarSetLocalOnlyMethodInfo
- placesSidebarSetLocalOnly :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Bool -> m ()
- data PlacesSidebarSetLocationMethodInfo
- placesSidebarSetLocation :: (HasCallStack, MonadIO m, IsPlacesSidebar a, IsFile b) => a -> Maybe b -> m ()
- data PlacesSidebarSetOpenFlagsMethodInfo
- placesSidebarSetOpenFlags :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> [PlacesOpenFlags] -> m ()
- data PlacesSidebarSetShowConnectToServerMethodInfo
- placesSidebarSetShowConnectToServer :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Bool -> m ()
- data PlacesSidebarSetShowDesktopMethodInfo
- placesSidebarSetShowDesktop :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Bool -> m ()
- data PlacesSidebarSetShowEnterLocationMethodInfo
- placesSidebarSetShowEnterLocation :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Bool -> m ()
- data PlacesSidebarSetShowOtherLocationsMethodInfo
- placesSidebarSetShowOtherLocations :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Bool -> m ()
- data PlacesSidebarSetShowRecentMethodInfo
- placesSidebarSetShowRecent :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Bool -> m ()
- data PlacesSidebarSetShowTrashMethodInfo
- placesSidebarSetShowTrash :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Bool -> m ()
- data PlacesSidebarLocalOnlyPropertyInfo
- constructPlacesSidebarLocalOnly :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o)
- getPlacesSidebarLocalOnly :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- placesSidebarLocalOnly :: AttrLabelProxy "localOnly"
- setPlacesSidebarLocalOnly :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- data PlacesSidebarLocationPropertyInfo
- 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)
- placesSidebarLocation :: AttrLabelProxy "location"
- setPlacesSidebarLocation :: (MonadIO m, IsPlacesSidebar o, IsFile a) => o -> a -> m ()
- data PlacesSidebarOpenFlagsPropertyInfo
- constructPlacesSidebarOpenFlags :: IsPlacesSidebar o => [PlacesOpenFlags] -> IO (GValueConstruct o)
- getPlacesSidebarOpenFlags :: (MonadIO m, IsPlacesSidebar o) => o -> m [PlacesOpenFlags]
- placesSidebarOpenFlags :: AttrLabelProxy "openFlags"
- setPlacesSidebarOpenFlags :: (MonadIO m, IsPlacesSidebar o) => o -> [PlacesOpenFlags] -> m ()
- data PlacesSidebarPopulateAllPropertyInfo
- constructPlacesSidebarPopulateAll :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o)
- getPlacesSidebarPopulateAll :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- placesSidebarPopulateAll :: AttrLabelProxy "populateAll"
- setPlacesSidebarPopulateAll :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- data PlacesSidebarShowConnectToServerPropertyInfo
- constructPlacesSidebarShowConnectToServer :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o)
- getPlacesSidebarShowConnectToServer :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- placesSidebarShowConnectToServer :: AttrLabelProxy "showConnectToServer"
- setPlacesSidebarShowConnectToServer :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- data PlacesSidebarShowDesktopPropertyInfo
- constructPlacesSidebarShowDesktop :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o)
- getPlacesSidebarShowDesktop :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- placesSidebarShowDesktop :: AttrLabelProxy "showDesktop"
- setPlacesSidebarShowDesktop :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- data PlacesSidebarShowEnterLocationPropertyInfo
- constructPlacesSidebarShowEnterLocation :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o)
- getPlacesSidebarShowEnterLocation :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- placesSidebarShowEnterLocation :: AttrLabelProxy "showEnterLocation"
- setPlacesSidebarShowEnterLocation :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- data PlacesSidebarShowOtherLocationsPropertyInfo
- constructPlacesSidebarShowOtherLocations :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o)
- getPlacesSidebarShowOtherLocations :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- placesSidebarShowOtherLocations :: AttrLabelProxy "showOtherLocations"
- setPlacesSidebarShowOtherLocations :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- data PlacesSidebarShowRecentPropertyInfo
- constructPlacesSidebarShowRecent :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o)
- getPlacesSidebarShowRecent :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- placesSidebarShowRecent :: AttrLabelProxy "showRecent"
- setPlacesSidebarShowRecent :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- data PlacesSidebarShowTrashPropertyInfo
- constructPlacesSidebarShowTrash :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o)
- getPlacesSidebarShowTrash :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- placesSidebarShowTrash :: AttrLabelProxy "showTrash"
- setPlacesSidebarShowTrash :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- type C_PlacesSidebarDragActionAskCallback = Ptr () -> Int32 -> Ptr () -> IO Int32
- type PlacesSidebarDragActionAskCallback = Int32 -> IO Int32
- data PlacesSidebarDragActionAskSignalInfo
- afterPlacesSidebarDragActionAsk :: (GObject a, MonadIO m) => a -> PlacesSidebarDragActionAskCallback -> m SignalHandlerId
- genClosure_PlacesSidebarDragActionAsk :: PlacesSidebarDragActionAskCallback -> IO Closure
- mk_PlacesSidebarDragActionAskCallback :: C_PlacesSidebarDragActionAskCallback -> IO (FunPtr C_PlacesSidebarDragActionAskCallback)
- noPlacesSidebarDragActionAskCallback :: Maybe PlacesSidebarDragActionAskCallback
- onPlacesSidebarDragActionAsk :: (GObject 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
- data PlacesSidebarDragActionRequestedSignalInfo
- afterPlacesSidebarDragActionRequested :: (GObject a, MonadIO m) => a -> PlacesSidebarDragActionRequestedCallback -> m SignalHandlerId
- genClosure_PlacesSidebarDragActionRequested :: PlacesSidebarDragActionRequestedCallback -> IO Closure
- mk_PlacesSidebarDragActionRequestedCallback :: C_PlacesSidebarDragActionRequestedCallback -> IO (FunPtr C_PlacesSidebarDragActionRequestedCallback)
- noPlacesSidebarDragActionRequestedCallback :: Maybe PlacesSidebarDragActionRequestedCallback
- onPlacesSidebarDragActionRequested :: (GObject 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 ()
- data PlacesSidebarDragPerformDropSignalInfo
- afterPlacesSidebarDragPerformDrop :: (GObject a, MonadIO m) => a -> PlacesSidebarDragPerformDropCallback -> m SignalHandlerId
- genClosure_PlacesSidebarDragPerformDrop :: PlacesSidebarDragPerformDropCallback -> IO Closure
- mk_PlacesSidebarDragPerformDropCallback :: C_PlacesSidebarDragPerformDropCallback -> IO (FunPtr C_PlacesSidebarDragPerformDropCallback)
- noPlacesSidebarDragPerformDropCallback :: Maybe PlacesSidebarDragPerformDropCallback
- onPlacesSidebarDragPerformDrop :: (GObject 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 ()
- data PlacesSidebarMountSignalInfo
- afterPlacesSidebarMount :: (GObject a, MonadIO m) => a -> PlacesSidebarMountCallback -> m SignalHandlerId
- genClosure_PlacesSidebarMount :: PlacesSidebarMountCallback -> IO Closure
- mk_PlacesSidebarMountCallback :: C_PlacesSidebarMountCallback -> IO (FunPtr C_PlacesSidebarMountCallback)
- noPlacesSidebarMountCallback :: Maybe PlacesSidebarMountCallback
- onPlacesSidebarMount :: (GObject 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 ()
- data PlacesSidebarOpenLocationSignalInfo
- afterPlacesSidebarOpenLocation :: (GObject a, MonadIO m) => a -> PlacesSidebarOpenLocationCallback -> m SignalHandlerId
- genClosure_PlacesSidebarOpenLocation :: PlacesSidebarOpenLocationCallback -> IO Closure
- mk_PlacesSidebarOpenLocationCallback :: C_PlacesSidebarOpenLocationCallback -> IO (FunPtr C_PlacesSidebarOpenLocationCallback)
- noPlacesSidebarOpenLocationCallback :: Maybe PlacesSidebarOpenLocationCallback
- onPlacesSidebarOpenLocation :: (GObject 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 ()
- data PlacesSidebarPopulatePopupSignalInfo
- afterPlacesSidebarPopulatePopup :: (GObject a, MonadIO m) => a -> PlacesSidebarPopulatePopupCallback -> m SignalHandlerId
- genClosure_PlacesSidebarPopulatePopup :: PlacesSidebarPopulatePopupCallback -> IO Closure
- mk_PlacesSidebarPopulatePopupCallback :: C_PlacesSidebarPopulatePopupCallback -> IO (FunPtr C_PlacesSidebarPopulatePopupCallback)
- noPlacesSidebarPopulatePopupCallback :: Maybe PlacesSidebarPopulatePopupCallback
- onPlacesSidebarPopulatePopup :: (GObject 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 ()
- data PlacesSidebarShowConnectToServerSignalInfo
- afterPlacesSidebarShowConnectToServer :: (GObject a, MonadIO m) => a -> PlacesSidebarShowConnectToServerCallback -> m SignalHandlerId
- genClosure_PlacesSidebarShowConnectToServer :: PlacesSidebarShowConnectToServerCallback -> IO Closure
- mk_PlacesSidebarShowConnectToServerCallback :: C_PlacesSidebarShowConnectToServerCallback -> IO (FunPtr C_PlacesSidebarShowConnectToServerCallback)
- noPlacesSidebarShowConnectToServerCallback :: Maybe PlacesSidebarShowConnectToServerCallback
- onPlacesSidebarShowConnectToServer :: (GObject a, MonadIO m) => a -> PlacesSidebarShowConnectToServerCallback -> m SignalHandlerId
- wrap_PlacesSidebarShowConnectToServerCallback :: PlacesSidebarShowConnectToServerCallback -> Ptr () -> Ptr () -> IO ()
- type C_PlacesSidebarShowEnterLocationCallback = Ptr () -> Ptr () -> IO ()
- type PlacesSidebarShowEnterLocationCallback = IO ()
- data PlacesSidebarShowEnterLocationSignalInfo
- afterPlacesSidebarShowEnterLocation :: (GObject a, MonadIO m) => a -> PlacesSidebarShowEnterLocationCallback -> m SignalHandlerId
- genClosure_PlacesSidebarShowEnterLocation :: PlacesSidebarShowEnterLocationCallback -> IO Closure
- mk_PlacesSidebarShowEnterLocationCallback :: C_PlacesSidebarShowEnterLocationCallback -> IO (FunPtr C_PlacesSidebarShowEnterLocationCallback)
- noPlacesSidebarShowEnterLocationCallback :: Maybe PlacesSidebarShowEnterLocationCallback
- onPlacesSidebarShowEnterLocation :: (GObject 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 ()
- data PlacesSidebarShowErrorMessageSignalInfo
- afterPlacesSidebarShowErrorMessage :: (GObject a, MonadIO m) => a -> PlacesSidebarShowErrorMessageCallback -> m SignalHandlerId
- genClosure_PlacesSidebarShowErrorMessage :: PlacesSidebarShowErrorMessageCallback -> IO Closure
- mk_PlacesSidebarShowErrorMessageCallback :: C_PlacesSidebarShowErrorMessageCallback -> IO (FunPtr C_PlacesSidebarShowErrorMessageCallback)
- noPlacesSidebarShowErrorMessageCallback :: Maybe PlacesSidebarShowErrorMessageCallback
- onPlacesSidebarShowErrorMessage :: (GObject a, MonadIO m) => a -> PlacesSidebarShowErrorMessageCallback -> m SignalHandlerId
- wrap_PlacesSidebarShowErrorMessageCallback :: PlacesSidebarShowErrorMessageCallback -> Ptr () -> CString -> CString -> Ptr () -> IO ()
- type C_PlacesSidebarShowOtherLocationsCallback = Ptr () -> Ptr () -> IO ()
- type PlacesSidebarShowOtherLocationsCallback = IO ()
- data PlacesSidebarShowOtherLocationsSignalInfo
- afterPlacesSidebarShowOtherLocations :: (GObject a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsCallback -> m SignalHandlerId
- genClosure_PlacesSidebarShowOtherLocations :: PlacesSidebarShowOtherLocationsCallback -> IO Closure
- mk_PlacesSidebarShowOtherLocationsCallback :: C_PlacesSidebarShowOtherLocationsCallback -> IO (FunPtr C_PlacesSidebarShowOtherLocationsCallback)
- noPlacesSidebarShowOtherLocationsCallback :: Maybe PlacesSidebarShowOtherLocationsCallback
- onPlacesSidebarShowOtherLocations :: (GObject a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsCallback -> m SignalHandlerId
- wrap_PlacesSidebarShowOtherLocationsCallback :: PlacesSidebarShowOtherLocationsCallback -> Ptr () -> Ptr () -> IO ()
- type C_PlacesSidebarShowOtherLocationsWithFlagsCallback = Ptr () -> CUInt -> Ptr () -> IO ()
- type PlacesSidebarShowOtherLocationsWithFlagsCallback = [PlacesOpenFlags] -> IO ()
- data PlacesSidebarShowOtherLocationsWithFlagsSignalInfo
- afterPlacesSidebarShowOtherLocationsWithFlags :: (GObject a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsWithFlagsCallback -> m SignalHandlerId
- genClosure_PlacesSidebarShowOtherLocationsWithFlags :: PlacesSidebarShowOtherLocationsWithFlagsCallback -> IO Closure
- mk_PlacesSidebarShowOtherLocationsWithFlagsCallback :: C_PlacesSidebarShowOtherLocationsWithFlagsCallback -> IO (FunPtr C_PlacesSidebarShowOtherLocationsWithFlagsCallback)
- noPlacesSidebarShowOtherLocationsWithFlagsCallback :: Maybe PlacesSidebarShowOtherLocationsWithFlagsCallback
- onPlacesSidebarShowOtherLocationsWithFlags :: (GObject 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 ()
- data PlacesSidebarUnmountSignalInfo
- afterPlacesSidebarUnmount :: (GObject a, MonadIO m) => a -> PlacesSidebarUnmountCallback -> m SignalHandlerId
- genClosure_PlacesSidebarUnmount :: PlacesSidebarUnmountCallback -> IO Closure
- mk_PlacesSidebarUnmountCallback :: C_PlacesSidebarUnmountCallback -> IO (FunPtr C_PlacesSidebarUnmountCallback)
- noPlacesSidebarUnmountCallback :: Maybe PlacesSidebarUnmountCallback
- onPlacesSidebarUnmount :: (GObject a, MonadIO m) => a -> PlacesSidebarUnmountCallback -> m SignalHandlerId
- wrap_PlacesSidebarUnmountCallback :: PlacesSidebarUnmountCallback -> Ptr () -> Ptr MountOperation -> Ptr () -> IO ()
Exported types
newtype PlacesSidebar Source #
GObject PlacesSidebar Source # | |
IsImplementorIface PlacesSidebar Source # | |
IsObject PlacesSidebar Source # | |
IsWidget PlacesSidebar Source # | |
IsScrolledWindow PlacesSidebar Source # | |
IsContainer PlacesSidebar Source # | |
IsBin PlacesSidebar Source # | |
IsBuildable PlacesSidebar Source # | |
IsPlacesSidebar PlacesSidebar Source # | |
((~) * info (ResolvePlacesSidebarMethod t PlacesSidebar), MethodInfo * info PlacesSidebar p) => IsLabel t (PlacesSidebar -> p) Source # | |
((~) * info (ResolvePlacesSidebarMethod t PlacesSidebar), MethodInfo * info PlacesSidebar p) => IsLabelProxy t (PlacesSidebar -> p) Source # | |
HasAttributeList * PlacesSidebar Source # | |
type AttributeList PlacesSidebar Source # | |
type SignalList PlacesSidebar Source # | |
class GObject o => IsPlacesSidebar o Source #
toPlacesSidebar :: IsPlacesSidebar o => o -> IO PlacesSidebar Source #
Methods
addShortcut
data PlacesSidebarAddShortcutMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsPlacesSidebar a, IsFile b) => MethodInfo * PlacesSidebarAddShortcutMethodInfo a signature Source # | |
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
data PlacesSidebarGetLocalOnlyMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarGetLocalOnlyMethodInfo a signature Source # | |
placesSidebarGetLocalOnly Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m Bool | Returns: |
Returns the value previously set with placesSidebarSetLocalOnly
.
Since: 3.12
getLocation
data PlacesSidebarGetLocationMethodInfo Source #
((~) * signature (m (Maybe File)), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarGetLocationMethodInfo a signature Source # | |
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
data PlacesSidebarGetNthBookmarkMethodInfo Source #
((~) * signature (Int32 -> m (Maybe File)), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarGetNthBookmarkMethodInfo a signature Source # | |
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
data PlacesSidebarGetOpenFlagsMethodInfo Source #
((~) * signature (m [PlacesOpenFlags]), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarGetOpenFlagsMethodInfo a signature Source # | |
placesSidebarGetOpenFlags Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m [PlacesOpenFlags] | Returns: the |
Gets the open flags.
Since: 3.10
getShowConnectToServer
data PlacesSidebarGetShowConnectToServerMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarGetShowConnectToServerMethodInfo a signature Source # | |
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
data PlacesSidebarGetShowDesktopMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarGetShowDesktopMethodInfo a signature Source # | |
placesSidebarGetShowDesktop Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m Bool | Returns: |
Returns the value previously set with placesSidebarSetShowDesktop
Since: 3.10
getShowEnterLocation
data PlacesSidebarGetShowEnterLocationMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarGetShowEnterLocationMethodInfo a signature Source # | |
placesSidebarGetShowEnterLocation Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m Bool | Returns: |
Returns the value previously set with placesSidebarSetShowEnterLocation
Since: 3.14
getShowOtherLocations
data PlacesSidebarGetShowOtherLocationsMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarGetShowOtherLocationsMethodInfo a signature Source # | |
placesSidebarGetShowOtherLocations Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m Bool | Returns: |
Returns the value previously set with placesSidebarSetShowOtherLocations
Since: 3.18
getShowRecent
data PlacesSidebarGetShowRecentMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarGetShowRecentMethodInfo a signature Source # | |
placesSidebarGetShowRecent Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m Bool | Returns: |
Returns the value previously set with placesSidebarSetShowRecent
Since: 3.18
getShowTrash
data PlacesSidebarGetShowTrashMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarGetShowTrashMethodInfo a signature Source # | |
placesSidebarGetShowTrash Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m Bool | Returns: |
Returns the value previously set with placesSidebarSetShowTrash
Since: 3.18
listShortcuts
data PlacesSidebarListShortcutsMethodInfo Source #
((~) * signature (m [File]), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarListShortcutsMethodInfo a signature Source # | |
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
data PlacesSidebarRemoveShortcutMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsPlacesSidebar a, IsFile b) => MethodInfo * PlacesSidebarRemoveShortcutMethodInfo a signature Source # | |
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
data PlacesSidebarSetDropTargetsVisibleMethodInfo Source #
((~) * signature (Bool -> b -> m ()), MonadIO m, IsPlacesSidebar a, IsDragContext b) => MethodInfo * PlacesSidebarSetDropTargetsVisibleMethodInfo a signature Source # | |
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
data PlacesSidebarSetLocalOnlyMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarSetLocalOnlyMethodInfo a signature Source # | |
placesSidebarSetLocalOnly Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the sidebar
should only show local files.
Since: 3.12
setLocation
data PlacesSidebarSetLocationMethodInfo Source #
((~) * signature (Maybe b -> m ()), MonadIO m, IsPlacesSidebar a, IsFile b) => MethodInfo * PlacesSidebarSetLocationMethodInfo a signature Source # | |
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
data PlacesSidebarSetOpenFlagsMethodInfo Source #
((~) * signature ([PlacesOpenFlags] -> m ()), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarSetOpenFlagsMethodInfo a signature Source # | |
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
data PlacesSidebarSetShowConnectToServerMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarSetShowConnectToServerMethodInfo a signature Source # | |
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
data PlacesSidebarSetShowDesktopMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarSetShowDesktopMethodInfo a signature Source # | |
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
data PlacesSidebarSetShowEnterLocationMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarSetShowEnterLocationMethodInfo a signature Source # | |
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
data PlacesSidebarSetShowOtherLocationsMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarSetShowOtherLocationsMethodInfo a signature Source # | |
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
data PlacesSidebarSetShowRecentMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarSetShowRecentMethodInfo a signature Source # | |
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
data PlacesSidebarSetShowTrashMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsPlacesSidebar a) => MethodInfo * PlacesSidebarSetShowTrashMethodInfo a signature Source # | |
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
data PlacesSidebarLocalOnlyPropertyInfo Source #
constructPlacesSidebarLocalOnly :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o) Source #
getPlacesSidebarLocalOnly :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
placesSidebarLocalOnly :: AttrLabelProxy "localOnly" Source #
setPlacesSidebarLocalOnly :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
location
data PlacesSidebarLocationPropertyInfo Source #
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 #
placesSidebarLocation :: AttrLabelProxy "location" Source #
setPlacesSidebarLocation :: (MonadIO m, IsPlacesSidebar o, IsFile a) => o -> a -> m () Source #
openFlags
data PlacesSidebarOpenFlagsPropertyInfo Source #
constructPlacesSidebarOpenFlags :: IsPlacesSidebar o => [PlacesOpenFlags] -> IO (GValueConstruct o) Source #
getPlacesSidebarOpenFlags :: (MonadIO m, IsPlacesSidebar o) => o -> m [PlacesOpenFlags] Source #
placesSidebarOpenFlags :: AttrLabelProxy "openFlags" Source #
setPlacesSidebarOpenFlags :: (MonadIO m, IsPlacesSidebar o) => o -> [PlacesOpenFlags] -> m () Source #
populateAll
data PlacesSidebarPopulateAllPropertyInfo Source #
constructPlacesSidebarPopulateAll :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o) Source #
getPlacesSidebarPopulateAll :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
placesSidebarPopulateAll :: AttrLabelProxy "populateAll" Source #
setPlacesSidebarPopulateAll :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
showConnectToServer
data PlacesSidebarShowConnectToServerPropertyInfo Source #
constructPlacesSidebarShowConnectToServer :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o) Source #
getPlacesSidebarShowConnectToServer :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
placesSidebarShowConnectToServer :: AttrLabelProxy "showConnectToServer" Source #
setPlacesSidebarShowConnectToServer :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
showDesktop
data PlacesSidebarShowDesktopPropertyInfo Source #
constructPlacesSidebarShowDesktop :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o) Source #
getPlacesSidebarShowDesktop :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
placesSidebarShowDesktop :: AttrLabelProxy "showDesktop" Source #
setPlacesSidebarShowDesktop :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
showEnterLocation
data PlacesSidebarShowEnterLocationPropertyInfo Source #
constructPlacesSidebarShowEnterLocation :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o) Source #
getPlacesSidebarShowEnterLocation :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
placesSidebarShowEnterLocation :: AttrLabelProxy "showEnterLocation" Source #
setPlacesSidebarShowEnterLocation :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
showOtherLocations
data PlacesSidebarShowOtherLocationsPropertyInfo Source #
constructPlacesSidebarShowOtherLocations :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o) Source #
getPlacesSidebarShowOtherLocations :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
placesSidebarShowOtherLocations :: AttrLabelProxy "showOtherLocations" Source #
setPlacesSidebarShowOtherLocations :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
showRecent
data PlacesSidebarShowRecentPropertyInfo Source #
constructPlacesSidebarShowRecent :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o) Source #
getPlacesSidebarShowRecent :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
placesSidebarShowRecent :: AttrLabelProxy "showRecent" Source #
setPlacesSidebarShowRecent :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
showTrash
data PlacesSidebarShowTrashPropertyInfo Source #
constructPlacesSidebarShowTrash :: IsPlacesSidebar o => Bool -> IO (GValueConstruct o) Source #
getPlacesSidebarShowTrash :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
placesSidebarShowTrash :: AttrLabelProxy "showTrash" Source #
setPlacesSidebarShowTrash :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
Signals
dragActionAsk
afterPlacesSidebarDragActionAsk :: (GObject a, MonadIO m) => a -> PlacesSidebarDragActionAskCallback -> m SignalHandlerId Source #
mk_PlacesSidebarDragActionAskCallback :: C_PlacesSidebarDragActionAskCallback -> IO (FunPtr C_PlacesSidebarDragActionAskCallback) Source #
onPlacesSidebarDragActionAsk :: (GObject 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 :: (GObject 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 :: (GObject 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 :: (GObject a, MonadIO m) => a -> PlacesSidebarDragPerformDropCallback -> m SignalHandlerId Source #
genClosure_PlacesSidebarDragPerformDrop :: PlacesSidebarDragPerformDropCallback -> IO Closure Source #
mk_PlacesSidebarDragPerformDropCallback :: C_PlacesSidebarDragPerformDropCallback -> IO (FunPtr C_PlacesSidebarDragPerformDropCallback) Source #
onPlacesSidebarDragPerformDrop :: (GObject 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 :: (GObject a, MonadIO m) => a -> PlacesSidebarMountCallback -> m SignalHandlerId Source #
mk_PlacesSidebarMountCallback :: C_PlacesSidebarMountCallback -> IO (FunPtr C_PlacesSidebarMountCallback) Source #
onPlacesSidebarMount :: (GObject 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 :: (GObject a, MonadIO m) => a -> PlacesSidebarOpenLocationCallback -> m SignalHandlerId Source #
mk_PlacesSidebarOpenLocationCallback :: C_PlacesSidebarOpenLocationCallback -> IO (FunPtr C_PlacesSidebarOpenLocationCallback) Source #
onPlacesSidebarOpenLocation :: (GObject 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 :: (GObject a, MonadIO m) => a -> PlacesSidebarPopulatePopupCallback -> m SignalHandlerId Source #
mk_PlacesSidebarPopulatePopupCallback :: C_PlacesSidebarPopulatePopupCallback -> IO (FunPtr C_PlacesSidebarPopulatePopupCallback) Source #
onPlacesSidebarPopulatePopup :: (GObject 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 :: (GObject 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 :: (GObject a, MonadIO m) => a -> PlacesSidebarShowConnectToServerCallback -> m SignalHandlerId Source #
wrap_PlacesSidebarShowConnectToServerCallback :: PlacesSidebarShowConnectToServerCallback -> Ptr () -> Ptr () -> IO () Source #
showEnterLocation
type PlacesSidebarShowEnterLocationCallback = IO () Source #
afterPlacesSidebarShowEnterLocation :: (GObject a, MonadIO m) => a -> PlacesSidebarShowEnterLocationCallback -> m SignalHandlerId Source #
genClosure_PlacesSidebarShowEnterLocation :: PlacesSidebarShowEnterLocationCallback -> IO Closure Source #
mk_PlacesSidebarShowEnterLocationCallback :: C_PlacesSidebarShowEnterLocationCallback -> IO (FunPtr C_PlacesSidebarShowEnterLocationCallback) Source #
onPlacesSidebarShowEnterLocation :: (GObject 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 :: (GObject a, MonadIO m) => a -> PlacesSidebarShowErrorMessageCallback -> m SignalHandlerId Source #
genClosure_PlacesSidebarShowErrorMessage :: PlacesSidebarShowErrorMessageCallback -> IO Closure Source #
mk_PlacesSidebarShowErrorMessageCallback :: C_PlacesSidebarShowErrorMessageCallback -> IO (FunPtr C_PlacesSidebarShowErrorMessageCallback) Source #
onPlacesSidebarShowErrorMessage :: (GObject 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 :: (GObject a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsCallback -> m SignalHandlerId Source #
genClosure_PlacesSidebarShowOtherLocations :: PlacesSidebarShowOtherLocationsCallback -> IO Closure Source #
mk_PlacesSidebarShowOtherLocationsCallback :: C_PlacesSidebarShowOtherLocationsCallback -> IO (FunPtr C_PlacesSidebarShowOtherLocationsCallback) Source #
onPlacesSidebarShowOtherLocations :: (GObject 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 :: (GObject 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 :: (GObject 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 :: (GObject a, MonadIO m) => a -> PlacesSidebarUnmountCallback -> m SignalHandlerId Source #
mk_PlacesSidebarUnmountCallback :: C_PlacesSidebarUnmountCallback -> IO (FunPtr C_PlacesSidebarUnmountCallback) Source #
onPlacesSidebarUnmount :: (GObject a, MonadIO m) => a -> PlacesSidebarUnmountCallback -> m SignalHandlerId Source #
wrap_PlacesSidebarUnmountCallback :: PlacesSidebarUnmountCallback -> Ptr () -> Ptr MountOperation -> Ptr () -> IO () Source #