Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
- Exported types
- Methods
- addShortcut
- getLocalOnly
- getLocation
- getNthBookmark
- getOpenFlags
- getShowConnectToServer
- getShowDesktop
- getShowEnterLocation
- getShowOtherLocations
- getShowRecent
- getShowStarredLocation
- getShowTrash
- listShortcuts
- new
- removeShortcut
- setDropTargetsVisible
- setLocalOnly
- setLocation
- setOpenFlags
- setShowConnectToServer
- setShowDesktop
- setShowEnterLocation
- setShowOtherLocations
- setShowRecent
- setShowStarredLocation
- 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 openLocation 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
Synopsis
- newtype PlacesSidebar = PlacesSidebar (ManagedPtr PlacesSidebar)
- class (GObject o, IsDescendantOf PlacesSidebar o) => IsPlacesSidebar o
- toPlacesSidebar :: (MonadIO m, IsPlacesSidebar o) => o -> m 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
- placesSidebarGetShowStarredLocation :: (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 ()
- placesSidebarSetShowStarredLocation :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Bool -> m ()
- placesSidebarSetShowTrash :: (HasCallStack, MonadIO m, IsPlacesSidebar a) => a -> Bool -> m ()
- constructPlacesSidebarLocalOnly :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (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, MonadIO m, IsFile a) => a -> m (GValueConstruct o)
- getPlacesSidebarLocation :: (MonadIO m, IsPlacesSidebar o) => o -> m (Maybe File)
- setPlacesSidebarLocation :: (MonadIO m, IsPlacesSidebar o, IsFile a) => o -> a -> m ()
- constructPlacesSidebarOpenFlags :: (IsPlacesSidebar o, MonadIO m) => [PlacesOpenFlags] -> m (GValueConstruct o)
- getPlacesSidebarOpenFlags :: (MonadIO m, IsPlacesSidebar o) => o -> m [PlacesOpenFlags]
- setPlacesSidebarOpenFlags :: (MonadIO m, IsPlacesSidebar o) => o -> [PlacesOpenFlags] -> m ()
- constructPlacesSidebarPopulateAll :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (GValueConstruct o)
- getPlacesSidebarPopulateAll :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- setPlacesSidebarPopulateAll :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- constructPlacesSidebarShowConnectToServer :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (GValueConstruct o)
- getPlacesSidebarShowConnectToServer :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- setPlacesSidebarShowConnectToServer :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- constructPlacesSidebarShowDesktop :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (GValueConstruct o)
- getPlacesSidebarShowDesktop :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- setPlacesSidebarShowDesktop :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- constructPlacesSidebarShowEnterLocation :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (GValueConstruct o)
- getPlacesSidebarShowEnterLocation :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- setPlacesSidebarShowEnterLocation :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- constructPlacesSidebarShowOtherLocations :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (GValueConstruct o)
- getPlacesSidebarShowOtherLocations :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- setPlacesSidebarShowOtherLocations :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- constructPlacesSidebarShowRecent :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (GValueConstruct o)
- getPlacesSidebarShowRecent :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- setPlacesSidebarShowRecent :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- constructPlacesSidebarShowStarredLocation :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (GValueConstruct o)
- getPlacesSidebarShowStarredLocation :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool
- setPlacesSidebarShowStarredLocation :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m ()
- constructPlacesSidebarShowTrash :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (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 :: MonadIO m => PlacesSidebarDragActionAskCallback -> m (GClosure C_PlacesSidebarDragActionAskCallback)
- mk_PlacesSidebarDragActionAskCallback :: C_PlacesSidebarDragActionAskCallback -> IO (FunPtr C_PlacesSidebarDragActionAskCallback)
- noPlacesSidebarDragActionAskCallback :: Maybe PlacesSidebarDragActionAskCallback
- onPlacesSidebarDragActionAsk :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragActionAskCallback -> m SignalHandlerId
- wrap_PlacesSidebarDragActionAskCallback :: PlacesSidebarDragActionAskCallback -> C_PlacesSidebarDragActionAskCallback
- 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 :: MonadIO m => PlacesSidebarDragActionRequestedCallback -> m (GClosure C_PlacesSidebarDragActionRequestedCallback)
- mk_PlacesSidebarDragActionRequestedCallback :: C_PlacesSidebarDragActionRequestedCallback -> IO (FunPtr C_PlacesSidebarDragActionRequestedCallback)
- noPlacesSidebarDragActionRequestedCallback :: Maybe PlacesSidebarDragActionRequestedCallback
- onPlacesSidebarDragActionRequested :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragActionRequestedCallback -> m SignalHandlerId
- wrap_PlacesSidebarDragActionRequestedCallback :: PlacesSidebarDragActionRequestedCallback -> C_PlacesSidebarDragActionRequestedCallback
- 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 :: MonadIO m => PlacesSidebarDragPerformDropCallback -> m (GClosure C_PlacesSidebarDragPerformDropCallback)
- mk_PlacesSidebarDragPerformDropCallback :: C_PlacesSidebarDragPerformDropCallback -> IO (FunPtr C_PlacesSidebarDragPerformDropCallback)
- noPlacesSidebarDragPerformDropCallback :: Maybe PlacesSidebarDragPerformDropCallback
- onPlacesSidebarDragPerformDrop :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragPerformDropCallback -> m SignalHandlerId
- wrap_PlacesSidebarDragPerformDropCallback :: PlacesSidebarDragPerformDropCallback -> C_PlacesSidebarDragPerformDropCallback
- type C_PlacesSidebarMountCallback = Ptr () -> Ptr MountOperation -> Ptr () -> IO ()
- type PlacesSidebarMountCallback = MountOperation -> IO ()
- afterPlacesSidebarMount :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarMountCallback -> m SignalHandlerId
- genClosure_PlacesSidebarMount :: MonadIO m => PlacesSidebarMountCallback -> m (GClosure C_PlacesSidebarMountCallback)
- mk_PlacesSidebarMountCallback :: C_PlacesSidebarMountCallback -> IO (FunPtr C_PlacesSidebarMountCallback)
- noPlacesSidebarMountCallback :: Maybe PlacesSidebarMountCallback
- onPlacesSidebarMount :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarMountCallback -> m SignalHandlerId
- wrap_PlacesSidebarMountCallback :: PlacesSidebarMountCallback -> C_PlacesSidebarMountCallback
- 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 :: MonadIO m => PlacesSidebarOpenLocationCallback -> m (GClosure C_PlacesSidebarOpenLocationCallback)
- mk_PlacesSidebarOpenLocationCallback :: C_PlacesSidebarOpenLocationCallback -> IO (FunPtr C_PlacesSidebarOpenLocationCallback)
- noPlacesSidebarOpenLocationCallback :: Maybe PlacesSidebarOpenLocationCallback
- onPlacesSidebarOpenLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarOpenLocationCallback -> m SignalHandlerId
- wrap_PlacesSidebarOpenLocationCallback :: PlacesSidebarOpenLocationCallback -> C_PlacesSidebarOpenLocationCallback
- 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 :: MonadIO m => PlacesSidebarPopulatePopupCallback -> m (GClosure C_PlacesSidebarPopulatePopupCallback)
- mk_PlacesSidebarPopulatePopupCallback :: C_PlacesSidebarPopulatePopupCallback -> IO (FunPtr C_PlacesSidebarPopulatePopupCallback)
- noPlacesSidebarPopulatePopupCallback :: Maybe PlacesSidebarPopulatePopupCallback
- onPlacesSidebarPopulatePopup :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarPopulatePopupCallback -> m SignalHandlerId
- wrap_PlacesSidebarPopulatePopupCallback :: PlacesSidebarPopulatePopupCallback -> C_PlacesSidebarPopulatePopupCallback
- type C_PlacesSidebarShowConnectToServerCallback = Ptr () -> Ptr () -> IO ()
- type PlacesSidebarShowConnectToServerCallback = IO ()
- afterPlacesSidebarShowConnectToServer :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowConnectToServerCallback -> m SignalHandlerId
- genClosure_PlacesSidebarShowConnectToServer :: MonadIO m => PlacesSidebarShowConnectToServerCallback -> m (GClosure C_PlacesSidebarShowConnectToServerCallback)
- mk_PlacesSidebarShowConnectToServerCallback :: C_PlacesSidebarShowConnectToServerCallback -> IO (FunPtr C_PlacesSidebarShowConnectToServerCallback)
- noPlacesSidebarShowConnectToServerCallback :: Maybe PlacesSidebarShowConnectToServerCallback
- onPlacesSidebarShowConnectToServer :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowConnectToServerCallback -> m SignalHandlerId
- wrap_PlacesSidebarShowConnectToServerCallback :: PlacesSidebarShowConnectToServerCallback -> C_PlacesSidebarShowConnectToServerCallback
- type C_PlacesSidebarShowEnterLocationCallback = Ptr () -> Ptr () -> IO ()
- type PlacesSidebarShowEnterLocationCallback = IO ()
- afterPlacesSidebarShowEnterLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowEnterLocationCallback -> m SignalHandlerId
- genClosure_PlacesSidebarShowEnterLocation :: MonadIO m => PlacesSidebarShowEnterLocationCallback -> m (GClosure C_PlacesSidebarShowEnterLocationCallback)
- mk_PlacesSidebarShowEnterLocationCallback :: C_PlacesSidebarShowEnterLocationCallback -> IO (FunPtr C_PlacesSidebarShowEnterLocationCallback)
- noPlacesSidebarShowEnterLocationCallback :: Maybe PlacesSidebarShowEnterLocationCallback
- onPlacesSidebarShowEnterLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowEnterLocationCallback -> m SignalHandlerId
- wrap_PlacesSidebarShowEnterLocationCallback :: PlacesSidebarShowEnterLocationCallback -> C_PlacesSidebarShowEnterLocationCallback
- type C_PlacesSidebarShowErrorMessageCallback = Ptr () -> CString -> CString -> Ptr () -> IO ()
- type PlacesSidebarShowErrorMessageCallback = Text -> Text -> IO ()
- afterPlacesSidebarShowErrorMessage :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowErrorMessageCallback -> m SignalHandlerId
- genClosure_PlacesSidebarShowErrorMessage :: MonadIO m => PlacesSidebarShowErrorMessageCallback -> m (GClosure C_PlacesSidebarShowErrorMessageCallback)
- mk_PlacesSidebarShowErrorMessageCallback :: C_PlacesSidebarShowErrorMessageCallback -> IO (FunPtr C_PlacesSidebarShowErrorMessageCallback)
- noPlacesSidebarShowErrorMessageCallback :: Maybe PlacesSidebarShowErrorMessageCallback
- onPlacesSidebarShowErrorMessage :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowErrorMessageCallback -> m SignalHandlerId
- wrap_PlacesSidebarShowErrorMessageCallback :: PlacesSidebarShowErrorMessageCallback -> C_PlacesSidebarShowErrorMessageCallback
- type C_PlacesSidebarShowOtherLocationsCallback = Ptr () -> Ptr () -> IO ()
- type PlacesSidebarShowOtherLocationsCallback = IO ()
- afterPlacesSidebarShowOtherLocations :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsCallback -> m SignalHandlerId
- genClosure_PlacesSidebarShowOtherLocations :: MonadIO m => PlacesSidebarShowOtherLocationsCallback -> m (GClosure C_PlacesSidebarShowOtherLocationsCallback)
- mk_PlacesSidebarShowOtherLocationsCallback :: C_PlacesSidebarShowOtherLocationsCallback -> IO (FunPtr C_PlacesSidebarShowOtherLocationsCallback)
- noPlacesSidebarShowOtherLocationsCallback :: Maybe PlacesSidebarShowOtherLocationsCallback
- onPlacesSidebarShowOtherLocations :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsCallback -> m SignalHandlerId
- wrap_PlacesSidebarShowOtherLocationsCallback :: PlacesSidebarShowOtherLocationsCallback -> C_PlacesSidebarShowOtherLocationsCallback
- type C_PlacesSidebarShowOtherLocationsWithFlagsCallback = Ptr () -> CUInt -> Ptr () -> IO ()
- type PlacesSidebarShowOtherLocationsWithFlagsCallback = [PlacesOpenFlags] -> IO ()
- afterPlacesSidebarShowOtherLocationsWithFlags :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsWithFlagsCallback -> m SignalHandlerId
- genClosure_PlacesSidebarShowOtherLocationsWithFlags :: MonadIO m => PlacesSidebarShowOtherLocationsWithFlagsCallback -> m (GClosure C_PlacesSidebarShowOtherLocationsWithFlagsCallback)
- mk_PlacesSidebarShowOtherLocationsWithFlagsCallback :: C_PlacesSidebarShowOtherLocationsWithFlagsCallback -> IO (FunPtr C_PlacesSidebarShowOtherLocationsWithFlagsCallback)
- noPlacesSidebarShowOtherLocationsWithFlagsCallback :: Maybe PlacesSidebarShowOtherLocationsWithFlagsCallback
- onPlacesSidebarShowOtherLocationsWithFlags :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsWithFlagsCallback -> m SignalHandlerId
- wrap_PlacesSidebarShowOtherLocationsWithFlagsCallback :: PlacesSidebarShowOtherLocationsWithFlagsCallback -> C_PlacesSidebarShowOtherLocationsWithFlagsCallback
- type C_PlacesSidebarShowStarredLocationCallback = Ptr () -> CUInt -> Ptr () -> IO ()
- type PlacesSidebarShowStarredLocationCallback = [PlacesOpenFlags] -> IO ()
- afterPlacesSidebarShowStarredLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowStarredLocationCallback -> m SignalHandlerId
- genClosure_PlacesSidebarShowStarredLocation :: MonadIO m => PlacesSidebarShowStarredLocationCallback -> m (GClosure C_PlacesSidebarShowStarredLocationCallback)
- mk_PlacesSidebarShowStarredLocationCallback :: C_PlacesSidebarShowStarredLocationCallback -> IO (FunPtr C_PlacesSidebarShowStarredLocationCallback)
- noPlacesSidebarShowStarredLocationCallback :: Maybe PlacesSidebarShowStarredLocationCallback
- onPlacesSidebarShowStarredLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowStarredLocationCallback -> m SignalHandlerId
- wrap_PlacesSidebarShowStarredLocationCallback :: PlacesSidebarShowStarredLocationCallback -> C_PlacesSidebarShowStarredLocationCallback
- type C_PlacesSidebarUnmountCallback = Ptr () -> Ptr MountOperation -> Ptr () -> IO ()
- type PlacesSidebarUnmountCallback = MountOperation -> IO ()
- afterPlacesSidebarUnmount :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarUnmountCallback -> m SignalHandlerId
- genClosure_PlacesSidebarUnmount :: MonadIO m => PlacesSidebarUnmountCallback -> m (GClosure C_PlacesSidebarUnmountCallback)
- mk_PlacesSidebarUnmountCallback :: C_PlacesSidebarUnmountCallback -> IO (FunPtr C_PlacesSidebarUnmountCallback)
- noPlacesSidebarUnmountCallback :: Maybe PlacesSidebarUnmountCallback
- onPlacesSidebarUnmount :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarUnmountCallback -> m SignalHandlerId
- wrap_PlacesSidebarUnmountCallback :: PlacesSidebarUnmountCallback -> C_PlacesSidebarUnmountCallback
Exported types
newtype PlacesSidebar Source #
Memory-managed wrapper type.
PlacesSidebar (ManagedPtr PlacesSidebar) |
Instances
Eq PlacesSidebar Source # | |
Defined in GI.Gtk.Objects.PlacesSidebar (==) :: PlacesSidebar -> PlacesSidebar -> Bool # (/=) :: PlacesSidebar -> PlacesSidebar -> Bool # | |
GObject PlacesSidebar Source # | |
Defined in GI.Gtk.Objects.PlacesSidebar | |
ManagedPtrNewtype PlacesSidebar Source # | |
Defined in GI.Gtk.Objects.PlacesSidebar toManagedPtr :: PlacesSidebar -> ManagedPtr PlacesSidebar | |
TypedObject PlacesSidebar Source # | |
Defined in GI.Gtk.Objects.PlacesSidebar | |
HasParentTypes PlacesSidebar Source # | |
Defined in GI.Gtk.Objects.PlacesSidebar | |
IsGValue (Maybe PlacesSidebar) Source # | Convert |
Defined in GI.Gtk.Objects.PlacesSidebar gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe PlacesSidebar -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe PlacesSidebar) | |
type ParentTypes PlacesSidebar Source # | |
Defined in GI.Gtk.Objects.PlacesSidebar type ParentTypes PlacesSidebar = '[ScrolledWindow, Bin, Container, Widget, Object, ImplementorIface, Buildable] |
class (GObject o, IsDescendantOf PlacesSidebar o) => IsPlacesSidebar o Source #
Type class for types which can be safely cast to PlacesSidebar
, for instance with toPlacesSidebar
.
Instances
(GObject o, IsDescendantOf PlacesSidebar o) => IsPlacesSidebar o Source # | |
Defined in GI.Gtk.Objects.PlacesSidebar |
toPlacesSidebar :: (MonadIO m, IsPlacesSidebar o) => o -> m PlacesSidebar Source #
Cast to PlacesSidebar
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
activate, add, addAccelerator, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addShortcut, addTickCallback, addWithViewport, bindProperty, bindPropertyFull, canActivateAccel, checkResize, childFocus, childGetProperty, childNotify, childNotifyByPspec, childSetProperty, childType, classPath, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, destroy, destroyed, deviceIsShadowed, dragBegin, dragBeginWithCoordinates, dragCheckThreshold, dragDestAddImageTargets, dragDestAddTextTargets, dragDestAddUriTargets, dragDestFindTarget, dragDestGetTargetList, dragDestGetTrackMotion, dragDestSet, dragDestSetProxy, dragDestSetTargetList, dragDestSetTrackMotion, dragDestUnset, dragGetData, dragHighlight, dragSourceAddImageTargets, dragSourceAddTextTargets, dragSourceAddUriTargets, dragSourceGetTargetList, dragSourceSet, dragSourceSetIconGicon, dragSourceSetIconName, dragSourceSetIconPixbuf, dragSourceSetIconStock, dragSourceSetTargetList, dragSourceUnset, dragUnhighlight, draw, ensureStyle, errorBell, event, forall, forceFloating, foreach, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, intersect, isAncestor, isComposited, isDrawable, isFloating, isFocus, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, listShortcuts, map, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parserFinished, path, propagateDraw, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, remove, removeAccelerator, removeMnemonicLabel, removeShortcut, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, resizeChildren, runDispose, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetFocusChain, unsetPlacement, unsetStateFlags, watchClosure.
Getters
getAccessible, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getBorderWidth, getCanDefault, getCanFocus, getCaptureButtonPress, getChild, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEvents, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusVadjustment, getFontMap, getFontOptions, getFrameClock, getHadjustment, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getHscrollbar, getInternalChild, getKineticScrolling, getLocalOnly, getLocation, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getMaxContentHeight, getMaxContentWidth, getMinContentHeight, getMinContentWidth, getModifierMask, getModifierStyle, getName, getNoShowAll, getNthBookmark, getOpacity, getOpenFlags, getOverlayScrolling, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPlacement, getPointer, getPolicy, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getPropagateNaturalHeight, getPropagateNaturalWidth, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getResizeMode, getRootWindow, getScaleFactor, getScreen, getSensitive, getSettings, getShadowType, getShowConnectToServer, getShowDesktop, getShowEnterLocation, getShowOtherLocations, getShowRecent, getShowStarredLocation, getShowTrash, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getVadjustment, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getVscrollbar, getWindow.
Setters
setAccelPath, setAllocation, setAppPaintable, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setCaptureButtonPress, setChildVisible, setClip, setCompositeName, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setDropTargetsVisible, setEvents, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusVadjustment, setFontMap, setFontOptions, setHadjustment, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setKineticScrolling, setLocalOnly, setLocation, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setMaxContentHeight, setMaxContentWidth, setMinContentHeight, setMinContentWidth, setName, setNoShowAll, setOpacity, setOpenFlags, setOverlayScrolling, setParent, setParentWindow, setPlacement, setPolicy, setPropagateNaturalHeight, setPropagateNaturalWidth, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setResizeMode, setSensitive, setShadowType, setShowConnectToServer, setShowDesktop, setShowEnterLocation, setShowOtherLocations, setShowRecent, setShowStarredLocation, setShowTrash, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setVadjustment, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.
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 |
Gets the currently selected location in the sidebar
. This can be Nothing
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 populatePopup 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
getShowStarredLocation
placesSidebarGetShowStarredLocation Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> m Bool | Returns: |
Returns the value previously set with placesSidebarSetShowStarredLocation
Since: 3.22.26
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 openLocation 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 openLocation 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 showConnectToServer 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 showEnterLocation 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 showOtherLocations 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
setShowStarredLocation
placesSidebarSetShowStarredLocation Source #
:: (HasCallStack, MonadIO m, IsPlacesSidebar a) | |
=> a |
|
-> Bool |
|
-> m () |
If you enable this, you should connect to the showStarredLocation signal.
Since: 3.22.26
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
No description available in the introspection data.
constructPlacesSidebarLocalOnly :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “local-only
” property. This is rarely needed directly, but it is used by new
.
getPlacesSidebarLocalOnly :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
Get the value of the “local-only
” property.
When overloading is enabled, this is equivalent to
get
placesSidebar #localOnly
setPlacesSidebarLocalOnly :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
Set the value of the “local-only
” property.
When overloading is enabled, this is equivalent to
set
placesSidebar [ #localOnly:=
value ]
location
No description available in the introspection data.
clearPlacesSidebarLocation :: (MonadIO m, IsPlacesSidebar o) => o -> m () Source #
Set the value of the “location
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#location
constructPlacesSidebarLocation :: (IsPlacesSidebar o, MonadIO m, IsFile a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “location
” property. This is rarely needed directly, but it is used by new
.
getPlacesSidebarLocation :: (MonadIO m, IsPlacesSidebar o) => o -> m (Maybe File) Source #
Get the value of the “location
” property.
When overloading is enabled, this is equivalent to
get
placesSidebar #location
setPlacesSidebarLocation :: (MonadIO m, IsPlacesSidebar o, IsFile a) => o -> a -> m () Source #
Set the value of the “location
” property.
When overloading is enabled, this is equivalent to
set
placesSidebar [ #location:=
value ]
openFlags
No description available in the introspection data.
constructPlacesSidebarOpenFlags :: (IsPlacesSidebar o, MonadIO m) => [PlacesOpenFlags] -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “open-flags
” property. This is rarely needed directly, but it is used by new
.
getPlacesSidebarOpenFlags :: (MonadIO m, IsPlacesSidebar o) => o -> m [PlacesOpenFlags] Source #
Get the value of the “open-flags
” property.
When overloading is enabled, this is equivalent to
get
placesSidebar #openFlags
setPlacesSidebarOpenFlags :: (MonadIO m, IsPlacesSidebar o) => o -> [PlacesOpenFlags] -> m () Source #
Set the value of the “open-flags
” property.
When overloading is enabled, this is equivalent to
set
placesSidebar [ #openFlags:=
value ]
populateAll
If :populate-all is True
, the populatePopup signal
is also emitted for popovers.
Since: 3.18
constructPlacesSidebarPopulateAll :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “populate-all
” property. This is rarely needed directly, but it is used by new
.
getPlacesSidebarPopulateAll :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
Get the value of the “populate-all
” property.
When overloading is enabled, this is equivalent to
get
placesSidebar #populateAll
setPlacesSidebarPopulateAll :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
Set the value of the “populate-all
” property.
When overloading is enabled, this is equivalent to
set
placesSidebar [ #populateAll:=
value ]
showConnectToServer
No description available in the introspection data.
constructPlacesSidebarShowConnectToServer :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-connect-to-server
” property. This is rarely needed directly, but it is used by new
.
getPlacesSidebarShowConnectToServer :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
Get the value of the “show-connect-to-server
” property.
When overloading is enabled, this is equivalent to
get
placesSidebar #showConnectToServer
setPlacesSidebarShowConnectToServer :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
Set the value of the “show-connect-to-server
” property.
When overloading is enabled, this is equivalent to
set
placesSidebar [ #showConnectToServer:=
value ]
showDesktop
No description available in the introspection data.
constructPlacesSidebarShowDesktop :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-desktop
” property. This is rarely needed directly, but it is used by new
.
getPlacesSidebarShowDesktop :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
Get the value of the “show-desktop
” property.
When overloading is enabled, this is equivalent to
get
placesSidebar #showDesktop
setPlacesSidebarShowDesktop :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
Set the value of the “show-desktop
” property.
When overloading is enabled, this is equivalent to
set
placesSidebar [ #showDesktop:=
value ]
showEnterLocation
No description available in the introspection data.
constructPlacesSidebarShowEnterLocation :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-enter-location
” property. This is rarely needed directly, but it is used by new
.
getPlacesSidebarShowEnterLocation :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
Get the value of the “show-enter-location
” property.
When overloading is enabled, this is equivalent to
get
placesSidebar #showEnterLocation
setPlacesSidebarShowEnterLocation :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
Set the value of the “show-enter-location
” property.
When overloading is enabled, this is equivalent to
set
placesSidebar [ #showEnterLocation:=
value ]
showOtherLocations
No description available in the introspection data.
constructPlacesSidebarShowOtherLocations :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-other-locations
” property. This is rarely needed directly, but it is used by new
.
getPlacesSidebarShowOtherLocations :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
Get the value of the “show-other-locations
” property.
When overloading is enabled, this is equivalent to
get
placesSidebar #showOtherLocations
setPlacesSidebarShowOtherLocations :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
Set the value of the “show-other-locations
” property.
When overloading is enabled, this is equivalent to
set
placesSidebar [ #showOtherLocations:=
value ]
showRecent
No description available in the introspection data.
constructPlacesSidebarShowRecent :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-recent
” property. This is rarely needed directly, but it is used by new
.
getPlacesSidebarShowRecent :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
Get the value of the “show-recent
” property.
When overloading is enabled, this is equivalent to
get
placesSidebar #showRecent
setPlacesSidebarShowRecent :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
Set the value of the “show-recent
” property.
When overloading is enabled, this is equivalent to
set
placesSidebar [ #showRecent:=
value ]
showStarredLocation
No description available in the introspection data.
constructPlacesSidebarShowStarredLocation :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-starred-location
” property. This is rarely needed directly, but it is used by new
.
getPlacesSidebarShowStarredLocation :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
Get the value of the “show-starred-location
” property.
When overloading is enabled, this is equivalent to
get
placesSidebar #showStarredLocation
setPlacesSidebarShowStarredLocation :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
Set the value of the “show-starred-location
” property.
When overloading is enabled, this is equivalent to
set
placesSidebar [ #showStarredLocation:=
value ]
showTrash
No description available in the introspection data.
constructPlacesSidebarShowTrash :: (IsPlacesSidebar o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-trash
” property. This is rarely needed directly, but it is used by new
.
getPlacesSidebarShowTrash :: (MonadIO m, IsPlacesSidebar o) => o -> m Bool Source #
Get the value of the “show-trash
” property.
When overloading is enabled, this is equivalent to
get
placesSidebar #showTrash
setPlacesSidebarShowTrash :: (MonadIO m, IsPlacesSidebar o) => o -> Bool -> m () Source #
Set the value of the “show-trash
” property.
When overloading is enabled, this is equivalent to
set
placesSidebar [ #showTrash:=
value ]
Signals
dragActionAsk
type C_PlacesSidebarDragActionAskCallback = Ptr () -> Int32 -> Ptr () -> IO Int32 Source #
Type for the callback on the (unwrapped) C side.
type PlacesSidebarDragActionAskCallback Source #
= Int32 |
|
-> IO Int32 | Returns: the final drag action that the sidebar should pass to the drag side of the drag-and-drop operation. |
The places sidebar emits this signal when it needs to ask the application to pop up a menu to ask the user for which drag action to perform.
Since: 3.10
afterPlacesSidebarDragActionAsk :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragActionAskCallback -> m SignalHandlerId Source #
Connect a signal handler for the dragActionAsk signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
placesSidebar #dragActionAsk callback
genClosure_PlacesSidebarDragActionAsk :: MonadIO m => PlacesSidebarDragActionAskCallback -> m (GClosure C_PlacesSidebarDragActionAskCallback) Source #
Wrap the callback into a GClosure
.
mk_PlacesSidebarDragActionAskCallback :: C_PlacesSidebarDragActionAskCallback -> IO (FunPtr C_PlacesSidebarDragActionAskCallback) Source #
Generate a function pointer callable from C code, from a C_PlacesSidebarDragActionAskCallback
.
noPlacesSidebarDragActionAskCallback :: Maybe PlacesSidebarDragActionAskCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PlacesSidebarDragActionAskCallback
onPlacesSidebarDragActionAsk :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragActionAskCallback -> m SignalHandlerId Source #
Connect a signal handler for the dragActionAsk signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
placesSidebar #dragActionAsk callback
wrap_PlacesSidebarDragActionAskCallback :: PlacesSidebarDragActionAskCallback -> C_PlacesSidebarDragActionAskCallback Source #
dragActionRequested
type C_PlacesSidebarDragActionRequestedCallback = Ptr () -> Ptr DragContext -> Ptr File -> Ptr (GList (Ptr File)) -> Ptr () -> IO Int32 Source #
Type for the callback on the (unwrapped) C side.
type PlacesSidebarDragActionRequestedCallback Source #
= DragContext |
|
-> File |
|
-> [File] |
|
-> IO Int32 | Returns: The drag action to use, for example, |
When the user starts a drag-and-drop operation and the sidebar needs to ask the application for which drag action to perform, then the sidebar will emit this signal.
The application can evaluate the context
for customary actions, or
it can check the type of the files indicated by sourceFileList
against the
possible actions for the destination destFile
.
The drag action to use must be the return value of the signal handler.
Since: 3.10
afterPlacesSidebarDragActionRequested :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragActionRequestedCallback -> m SignalHandlerId Source #
Connect a signal handler for the dragActionRequested signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
placesSidebar #dragActionRequested callback
genClosure_PlacesSidebarDragActionRequested :: MonadIO m => PlacesSidebarDragActionRequestedCallback -> m (GClosure C_PlacesSidebarDragActionRequestedCallback) Source #
Wrap the callback into a GClosure
.
mk_PlacesSidebarDragActionRequestedCallback :: C_PlacesSidebarDragActionRequestedCallback -> IO (FunPtr C_PlacesSidebarDragActionRequestedCallback) Source #
Generate a function pointer callable from C code, from a C_PlacesSidebarDragActionRequestedCallback
.
noPlacesSidebarDragActionRequestedCallback :: Maybe PlacesSidebarDragActionRequestedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PlacesSidebarDragActionRequestedCallback
onPlacesSidebarDragActionRequested :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragActionRequestedCallback -> m SignalHandlerId Source #
Connect a signal handler for the dragActionRequested signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
placesSidebar #dragActionRequested callback
wrap_PlacesSidebarDragActionRequestedCallback :: PlacesSidebarDragActionRequestedCallback -> C_PlacesSidebarDragActionRequestedCallback Source #
dragPerformDrop
type C_PlacesSidebarDragPerformDropCallback = Ptr () -> Ptr File -> Ptr (GList (Ptr File)) -> Int32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PlacesSidebarDragPerformDropCallback Source #
The places sidebar emits this signal when the user completes a
drag-and-drop operation and one of the sidebar's items is the
destination. This item is in the destFile
, and the
sourceFileList
has the list of files that are dropped into it and
which should be copied/moved/etc. based on the specified action
.
Since: 3.10
afterPlacesSidebarDragPerformDrop :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragPerformDropCallback -> m SignalHandlerId Source #
Connect a signal handler for the dragPerformDrop signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
placesSidebar #dragPerformDrop callback
genClosure_PlacesSidebarDragPerformDrop :: MonadIO m => PlacesSidebarDragPerformDropCallback -> m (GClosure C_PlacesSidebarDragPerformDropCallback) Source #
Wrap the callback into a GClosure
.
mk_PlacesSidebarDragPerformDropCallback :: C_PlacesSidebarDragPerformDropCallback -> IO (FunPtr C_PlacesSidebarDragPerformDropCallback) Source #
Generate a function pointer callable from C code, from a C_PlacesSidebarDragPerformDropCallback
.
noPlacesSidebarDragPerformDropCallback :: Maybe PlacesSidebarDragPerformDropCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PlacesSidebarDragPerformDropCallback
onPlacesSidebarDragPerformDrop :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarDragPerformDropCallback -> m SignalHandlerId Source #
Connect a signal handler for the dragPerformDrop signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
placesSidebar #dragPerformDrop callback
wrap_PlacesSidebarDragPerformDropCallback :: PlacesSidebarDragPerformDropCallback -> C_PlacesSidebarDragPerformDropCallback Source #
mount
type C_PlacesSidebarMountCallback = Ptr () -> Ptr MountOperation -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PlacesSidebarMountCallback Source #
= MountOperation |
|
-> IO () |
The places sidebar emits this signal when it starts a new operation
because the user clicked on some location that needs mounting.
In this way the application using the PlacesSidebar
can track the
progress of the operation and, for example, show a notification.
Since: 3.20
afterPlacesSidebarMount :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarMountCallback -> m SignalHandlerId Source #
Connect a signal handler for the mount signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
placesSidebar #mount callback
genClosure_PlacesSidebarMount :: MonadIO m => PlacesSidebarMountCallback -> m (GClosure C_PlacesSidebarMountCallback) Source #
Wrap the callback into a GClosure
.
mk_PlacesSidebarMountCallback :: C_PlacesSidebarMountCallback -> IO (FunPtr C_PlacesSidebarMountCallback) Source #
Generate a function pointer callable from C code, from a C_PlacesSidebarMountCallback
.
noPlacesSidebarMountCallback :: Maybe PlacesSidebarMountCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PlacesSidebarMountCallback
onPlacesSidebarMount :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarMountCallback -> m SignalHandlerId Source #
Connect a signal handler for the mount signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
placesSidebar #mount callback
wrap_PlacesSidebarMountCallback :: PlacesSidebarMountCallback -> C_PlacesSidebarMountCallback Source #
Wrap a PlacesSidebarMountCallback
into a C_PlacesSidebarMountCallback
.
openLocation
type C_PlacesSidebarOpenLocationCallback = Ptr () -> Ptr File -> CUInt -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PlacesSidebarOpenLocationCallback Source #
= File |
|
-> [PlacesOpenFlags] |
|
-> IO () |
The places sidebar emits this signal when the user selects a location in it. The calling application should display the contents of that location; for example, a file manager should show a list of files in the specified location.
Since: 3.10
afterPlacesSidebarOpenLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarOpenLocationCallback -> m SignalHandlerId Source #
Connect a signal handler for the openLocation signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
placesSidebar #openLocation callback
genClosure_PlacesSidebarOpenLocation :: MonadIO m => PlacesSidebarOpenLocationCallback -> m (GClosure C_PlacesSidebarOpenLocationCallback) Source #
Wrap the callback into a GClosure
.
mk_PlacesSidebarOpenLocationCallback :: C_PlacesSidebarOpenLocationCallback -> IO (FunPtr C_PlacesSidebarOpenLocationCallback) Source #
Generate a function pointer callable from C code, from a C_PlacesSidebarOpenLocationCallback
.
noPlacesSidebarOpenLocationCallback :: Maybe PlacesSidebarOpenLocationCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PlacesSidebarOpenLocationCallback
onPlacesSidebarOpenLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarOpenLocationCallback -> m SignalHandlerId Source #
Connect a signal handler for the openLocation signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
placesSidebar #openLocation callback
wrap_PlacesSidebarOpenLocationCallback :: PlacesSidebarOpenLocationCallback -> C_PlacesSidebarOpenLocationCallback Source #
populatePopup
type C_PlacesSidebarPopulatePopupCallback = Ptr () -> Ptr Widget -> Ptr File -> Ptr Volume -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PlacesSidebarPopulatePopupCallback Source #
= Widget | |
-> Maybe File |
|
-> Maybe Volume |
|
-> IO () |
The places sidebar emits this signal when the user invokes a contextual popup on one of its items. In the signal handler, the application may add extra items to the menu as appropriate. For example, a file manager may want to add a "Properties" command to the menu.
It is not necessary to store the selectedItem
for each menu item;
during their callbacks, the application can use placesSidebarGetLocation
to get the file to which the item refers.
The selectedItem
argument may be Nothing
in case the selection refers to
a volume. In this case, selectedVolume
will be non-Nothing
. In this case,
the calling application will have to objectRef
the selectedVolume
and
keep it around to use it in the callback.
The container
and all its contents are destroyed after the user
dismisses the popup. The popup is re-created (and thus, this signal is
emitted) every time the user activates the contextual menu.
Before 3.18, the container
always was a Menu
, and you were expected
to add your items as GtkMenuItems
. Since 3.18, the popup may be implemented
as a Popover
, in which case container
will be something else, e.g. a
Box
, to which you may add GtkModelButtons
or other widgets, such as
GtkEntries
, GtkSpinButtons
, etc. If your application can deal with this
situation, you can set PlacesSidebar
::populate-all
to True
to request
that this signal is emitted for populating popovers as well.
Since: 3.10
afterPlacesSidebarPopulatePopup :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarPopulatePopupCallback -> m SignalHandlerId Source #
Connect a signal handler for the populatePopup signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
placesSidebar #populatePopup callback
genClosure_PlacesSidebarPopulatePopup :: MonadIO m => PlacesSidebarPopulatePopupCallback -> m (GClosure C_PlacesSidebarPopulatePopupCallback) Source #
Wrap the callback into a GClosure
.
mk_PlacesSidebarPopulatePopupCallback :: C_PlacesSidebarPopulatePopupCallback -> IO (FunPtr C_PlacesSidebarPopulatePopupCallback) Source #
Generate a function pointer callable from C code, from a C_PlacesSidebarPopulatePopupCallback
.
noPlacesSidebarPopulatePopupCallback :: Maybe PlacesSidebarPopulatePopupCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PlacesSidebarPopulatePopupCallback
onPlacesSidebarPopulatePopup :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarPopulatePopupCallback -> m SignalHandlerId Source #
Connect a signal handler for the populatePopup signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
placesSidebar #populatePopup callback
wrap_PlacesSidebarPopulatePopupCallback :: PlacesSidebarPopulatePopupCallback -> C_PlacesSidebarPopulatePopupCallback Source #
showConnectToServer
type C_PlacesSidebarShowConnectToServerCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PlacesSidebarShowConnectToServerCallback = IO () Source #
Deprecated: (Since version 3.18)use the showOtherLocations signal to connect to network servers.
The places sidebar emits this signal when it needs the calling
application to present an way to connect directly to a network server.
For example, the application may bring up a dialog box asking for
a URL like "sftp://ftp.example.com". It is up to the application to create
the corresponding mount by using, for example, fileMountEnclosingVolume
.
afterPlacesSidebarShowConnectToServer :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowConnectToServerCallback -> m SignalHandlerId Source #
Connect a signal handler for the showConnectToServer signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
placesSidebar #showConnectToServer callback
genClosure_PlacesSidebarShowConnectToServer :: MonadIO m => PlacesSidebarShowConnectToServerCallback -> m (GClosure C_PlacesSidebarShowConnectToServerCallback) Source #
Wrap the callback into a GClosure
.
mk_PlacesSidebarShowConnectToServerCallback :: C_PlacesSidebarShowConnectToServerCallback -> IO (FunPtr C_PlacesSidebarShowConnectToServerCallback) Source #
Generate a function pointer callable from C code, from a C_PlacesSidebarShowConnectToServerCallback
.
noPlacesSidebarShowConnectToServerCallback :: Maybe PlacesSidebarShowConnectToServerCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PlacesSidebarShowConnectToServerCallback
onPlacesSidebarShowConnectToServer :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowConnectToServerCallback -> m SignalHandlerId Source #
Connect a signal handler for the showConnectToServer signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
placesSidebar #showConnectToServer callback
wrap_PlacesSidebarShowConnectToServerCallback :: PlacesSidebarShowConnectToServerCallback -> C_PlacesSidebarShowConnectToServerCallback Source #
showEnterLocation
type C_PlacesSidebarShowEnterLocationCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PlacesSidebarShowEnterLocationCallback = IO () Source #
The places sidebar emits this signal when it needs the calling application to present an way to directly enter a location. For example, the application may bring up a dialog box asking for a URL like "http://http.example.com".
Since: 3.14
afterPlacesSidebarShowEnterLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowEnterLocationCallback -> m SignalHandlerId Source #
Connect a signal handler for the showEnterLocation signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
placesSidebar #showEnterLocation callback
genClosure_PlacesSidebarShowEnterLocation :: MonadIO m => PlacesSidebarShowEnterLocationCallback -> m (GClosure C_PlacesSidebarShowEnterLocationCallback) Source #
Wrap the callback into a GClosure
.
mk_PlacesSidebarShowEnterLocationCallback :: C_PlacesSidebarShowEnterLocationCallback -> IO (FunPtr C_PlacesSidebarShowEnterLocationCallback) Source #
Generate a function pointer callable from C code, from a C_PlacesSidebarShowEnterLocationCallback
.
noPlacesSidebarShowEnterLocationCallback :: Maybe PlacesSidebarShowEnterLocationCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PlacesSidebarShowEnterLocationCallback
onPlacesSidebarShowEnterLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowEnterLocationCallback -> m SignalHandlerId Source #
Connect a signal handler for the showEnterLocation signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
placesSidebar #showEnterLocation callback
wrap_PlacesSidebarShowEnterLocationCallback :: PlacesSidebarShowEnterLocationCallback -> C_PlacesSidebarShowEnterLocationCallback Source #
showErrorMessage
type C_PlacesSidebarShowErrorMessageCallback = Ptr () -> CString -> CString -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PlacesSidebarShowErrorMessageCallback Source #
= Text |
|
-> Text |
|
-> IO () |
The places sidebar emits this signal when it needs the calling application to present an error message. Most of these messages refer to mounting or unmounting media, for example, when a drive cannot be started for some reason.
Since: 3.10
afterPlacesSidebarShowErrorMessage :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowErrorMessageCallback -> m SignalHandlerId Source #
Connect a signal handler for the showErrorMessage signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
placesSidebar #showErrorMessage callback
genClosure_PlacesSidebarShowErrorMessage :: MonadIO m => PlacesSidebarShowErrorMessageCallback -> m (GClosure C_PlacesSidebarShowErrorMessageCallback) Source #
Wrap the callback into a GClosure
.
mk_PlacesSidebarShowErrorMessageCallback :: C_PlacesSidebarShowErrorMessageCallback -> IO (FunPtr C_PlacesSidebarShowErrorMessageCallback) Source #
Generate a function pointer callable from C code, from a C_PlacesSidebarShowErrorMessageCallback
.
noPlacesSidebarShowErrorMessageCallback :: Maybe PlacesSidebarShowErrorMessageCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PlacesSidebarShowErrorMessageCallback
onPlacesSidebarShowErrorMessage :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowErrorMessageCallback -> m SignalHandlerId Source #
Connect a signal handler for the showErrorMessage signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
placesSidebar #showErrorMessage callback
wrap_PlacesSidebarShowErrorMessageCallback :: PlacesSidebarShowErrorMessageCallback -> C_PlacesSidebarShowErrorMessageCallback Source #
showOtherLocations
type C_PlacesSidebarShowOtherLocationsCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PlacesSidebarShowOtherLocationsCallback = IO () Source #
Deprecated: (Since version 3.20)use the showOtherLocationsWithFlagswhich includes the open flags in order to allow the user to specify to openin a new tab or window, in a similar way than openLocation
The places sidebar emits this signal when it needs the calling application to present a way to show other locations e.g. drives and network access points. For example, the application may bring up a page showing persistent volumes and discovered network addresses.
Since: 3.18
afterPlacesSidebarShowOtherLocations :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsCallback -> m SignalHandlerId Source #
Connect a signal handler for the showOtherLocations signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
placesSidebar #showOtherLocations callback
genClosure_PlacesSidebarShowOtherLocations :: MonadIO m => PlacesSidebarShowOtherLocationsCallback -> m (GClosure C_PlacesSidebarShowOtherLocationsCallback) Source #
Wrap the callback into a GClosure
.
mk_PlacesSidebarShowOtherLocationsCallback :: C_PlacesSidebarShowOtherLocationsCallback -> IO (FunPtr C_PlacesSidebarShowOtherLocationsCallback) Source #
Generate a function pointer callable from C code, from a C_PlacesSidebarShowOtherLocationsCallback
.
noPlacesSidebarShowOtherLocationsCallback :: Maybe PlacesSidebarShowOtherLocationsCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PlacesSidebarShowOtherLocationsCallback
onPlacesSidebarShowOtherLocations :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsCallback -> m SignalHandlerId Source #
Connect a signal handler for the showOtherLocations signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
placesSidebar #showOtherLocations callback
wrap_PlacesSidebarShowOtherLocationsCallback :: PlacesSidebarShowOtherLocationsCallback -> C_PlacesSidebarShowOtherLocationsCallback Source #
showOtherLocationsWithFlags
type C_PlacesSidebarShowOtherLocationsWithFlagsCallback = Ptr () -> CUInt -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PlacesSidebarShowOtherLocationsWithFlagsCallback Source #
= [PlacesOpenFlags] |
|
-> IO () |
The places sidebar emits this signal when it needs the calling application to present a way to show other locations e.g. drives and network access points. For example, the application may bring up a page showing persistent volumes and discovered network addresses.
Since: 3.20
afterPlacesSidebarShowOtherLocationsWithFlags :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsWithFlagsCallback -> m SignalHandlerId Source #
Connect a signal handler for the showOtherLocationsWithFlags signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
placesSidebar #showOtherLocationsWithFlags callback
genClosure_PlacesSidebarShowOtherLocationsWithFlags :: MonadIO m => PlacesSidebarShowOtherLocationsWithFlagsCallback -> m (GClosure C_PlacesSidebarShowOtherLocationsWithFlagsCallback) Source #
Wrap the callback into a GClosure
.
mk_PlacesSidebarShowOtherLocationsWithFlagsCallback :: C_PlacesSidebarShowOtherLocationsWithFlagsCallback -> IO (FunPtr C_PlacesSidebarShowOtherLocationsWithFlagsCallback) Source #
Generate a function pointer callable from C code, from a C_PlacesSidebarShowOtherLocationsWithFlagsCallback
.
noPlacesSidebarShowOtherLocationsWithFlagsCallback :: Maybe PlacesSidebarShowOtherLocationsWithFlagsCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PlacesSidebarShowOtherLocationsWithFlagsCallback
onPlacesSidebarShowOtherLocationsWithFlags :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowOtherLocationsWithFlagsCallback -> m SignalHandlerId Source #
Connect a signal handler for the showOtherLocationsWithFlags signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
placesSidebar #showOtherLocationsWithFlags callback
wrap_PlacesSidebarShowOtherLocationsWithFlagsCallback :: PlacesSidebarShowOtherLocationsWithFlagsCallback -> C_PlacesSidebarShowOtherLocationsWithFlagsCallback Source #
showStarredLocation
type C_PlacesSidebarShowStarredLocationCallback = Ptr () -> CUInt -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PlacesSidebarShowStarredLocationCallback Source #
= [PlacesOpenFlags] |
|
-> IO () |
The places sidebar emits this signal when it needs the calling application to present a way to show the starred files. In GNOME, starred files are implemented by setting the nao:predefined-tag-favorite tag in the tracker database.
Since: 3.22.26
afterPlacesSidebarShowStarredLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowStarredLocationCallback -> m SignalHandlerId Source #
Connect a signal handler for the showStarredLocation signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
placesSidebar #showStarredLocation callback
genClosure_PlacesSidebarShowStarredLocation :: MonadIO m => PlacesSidebarShowStarredLocationCallback -> m (GClosure C_PlacesSidebarShowStarredLocationCallback) Source #
Wrap the callback into a GClosure
.
mk_PlacesSidebarShowStarredLocationCallback :: C_PlacesSidebarShowStarredLocationCallback -> IO (FunPtr C_PlacesSidebarShowStarredLocationCallback) Source #
Generate a function pointer callable from C code, from a C_PlacesSidebarShowStarredLocationCallback
.
noPlacesSidebarShowStarredLocationCallback :: Maybe PlacesSidebarShowStarredLocationCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PlacesSidebarShowStarredLocationCallback
onPlacesSidebarShowStarredLocation :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarShowStarredLocationCallback -> m SignalHandlerId Source #
Connect a signal handler for the showStarredLocation signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
placesSidebar #showStarredLocation callback
wrap_PlacesSidebarShowStarredLocationCallback :: PlacesSidebarShowStarredLocationCallback -> C_PlacesSidebarShowStarredLocationCallback Source #
unmount
type C_PlacesSidebarUnmountCallback = Ptr () -> Ptr MountOperation -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PlacesSidebarUnmountCallback Source #
= MountOperation |
|
-> IO () |
The places sidebar emits this signal when it starts a new operation
because the user for example ejected some drive or unmounted a mount.
In this way the application using the PlacesSidebar
can track the
progress of the operation and, for example, show a notification.
Since: 3.20
afterPlacesSidebarUnmount :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarUnmountCallback -> m SignalHandlerId Source #
Connect a signal handler for the unmount signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
placesSidebar #unmount callback
genClosure_PlacesSidebarUnmount :: MonadIO m => PlacesSidebarUnmountCallback -> m (GClosure C_PlacesSidebarUnmountCallback) Source #
Wrap the callback into a GClosure
.
mk_PlacesSidebarUnmountCallback :: C_PlacesSidebarUnmountCallback -> IO (FunPtr C_PlacesSidebarUnmountCallback) Source #
Generate a function pointer callable from C code, from a C_PlacesSidebarUnmountCallback
.
noPlacesSidebarUnmountCallback :: Maybe PlacesSidebarUnmountCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PlacesSidebarUnmountCallback
onPlacesSidebarUnmount :: (IsPlacesSidebar a, MonadIO m) => a -> PlacesSidebarUnmountCallback -> m SignalHandlerId Source #
Connect a signal handler for the unmount signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
placesSidebar #unmount callback