Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GtkAppChooserDialog
shows a GtkAppChooserWidget
inside a GtkDialog
.
Note that GtkAppChooserDialog
does not have any interesting methods
of its own. Instead, you should get the embedded GtkAppChooserWidget
using appChooserDialogGetWidget
and call its methods if
the generic AppChooser
interface is not sufficient for
your needs.
To set the heading that is shown above the GtkAppChooserWidget
,
use appChooserDialogSetHeading
.
Synopsis
- newtype AppChooserDialog = AppChooserDialog (ManagedPtr AppChooserDialog)
- class (GObject o, IsDescendantOf AppChooserDialog o) => IsAppChooserDialog o
- toAppChooserDialog :: (MonadIO m, IsAppChooserDialog o) => o -> m AppChooserDialog
- appChooserDialogGetHeading :: (HasCallStack, MonadIO m, IsAppChooserDialog a) => a -> m (Maybe Text)
- appChooserDialogGetWidget :: (HasCallStack, MonadIO m, IsAppChooserDialog a) => a -> m Widget
- appChooserDialogNew :: (HasCallStack, MonadIO m, IsWindow a, IsFile b) => Maybe a -> [DialogFlags] -> b -> m AppChooserDialog
- appChooserDialogNewForContentType :: (HasCallStack, MonadIO m, IsWindow a) => Maybe a -> [DialogFlags] -> Text -> m AppChooserDialog
- appChooserDialogSetHeading :: (HasCallStack, MonadIO m, IsAppChooserDialog a) => a -> Text -> m ()
- constructAppChooserDialogGfile :: (IsAppChooserDialog o, MonadIO m, IsFile a) => a -> m (GValueConstruct o)
- getAppChooserDialogGfile :: (MonadIO m, IsAppChooserDialog o) => o -> m (Maybe File)
- constructAppChooserDialogHeading :: (IsAppChooserDialog o, MonadIO m) => Text -> m (GValueConstruct o)
- getAppChooserDialogHeading :: (MonadIO m, IsAppChooserDialog o) => o -> m (Maybe Text)
- setAppChooserDialogHeading :: (MonadIO m, IsAppChooserDialog o) => o -> Text -> m ()
Exported types
newtype AppChooserDialog Source #
Memory-managed wrapper type.
AppChooserDialog (ManagedPtr AppChooserDialog) |
Instances
class (GObject o, IsDescendantOf AppChooserDialog o) => IsAppChooserDialog o Source #
Type class for types which can be safely cast to AppChooserDialog
, for instance with toAppChooserDialog
.
Instances
(GObject o, IsDescendantOf AppChooserDialog o) => IsAppChooserDialog o Source # | |
Defined in GI.Gtk.Objects.AppChooserDialog |
toAppChooserDialog :: (MonadIO m, IsAppChooserDialog o) => o -> m AppChooserDialog Source #
Cast to AppChooserDialog
, 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
actionSetEnabled, activate, activateAction, activateDefault, addActionWidget, addButton, addController, addCssClass, addMnemonicLabel, addTickCallback, allocate, bindProperty, bindPropertyFull, childFocus, close, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, destroy, disposeTemplate, dragCheckThreshold, errorBell, forceFloating, freezeNotify, fullscreen, fullscreenOnMonitor, getv, grabFocus, hasCssClass, hasDefault, hasFocus, hasGroup, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertAfter, insertBefore, isActive, isAncestor, isDrawable, isFloating, isFocus, isFullscreen, isMaximized, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, maximize, measure, minimize, mnemonicActivate, notify, notifyByPspec, observeChildren, observeControllers, pick, present, presentWithTime, queueAllocate, queueDraw, queueResize, realize, ref, refSink, refresh, removeController, removeCssClass, removeMnemonicLabel, removeTickCallback, resetProperty, resetRelation, resetState, response, runDispose, shouldLayout, show, sizeAllocate, snapshotChild, stealData, stealQdata, thawNotify, translateCoordinates, triggerTooltipQuery, unfullscreen, unmap, unmaximize, unminimize, unparent, unrealize, unref, unsetStateFlags, updateNextAccessibleSibling, updateProperty, updateRelation, updateState, watchClosure.
Getters
getAccessibleParent, getAccessibleRole, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getAppInfo, getApplication, getAtContext, getBounds, getBuildableId, getCanFocus, getCanTarget, getChild, getChildVisible, getClipboard, getColor, getContentArea, getContentType, getCssClasses, getCssName, getCursor, getData, getDecorated, getDefaultSize, getDefaultWidget, getDeletable, getDestroyWithParent, getDirection, getDisplay, getFirstAccessibleChild, getFirstChild, getFocus, getFocusChild, getFocusOnClick, getFocusVisible, getFocusable, getFontMap, getFontOptions, getFrameClock, getGroup, getHalign, getHandleMenubarAccel, getHasTooltip, getHeaderBar, getHeading, getHeight, getHexpand, getHexpandSet, getHideOnClose, getIconName, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getMnemonicsVisible, getModal, getName, getNative, getNextAccessibleSibling, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPlatformState, getPreferredSize, getPrevSibling, getPrimaryClipboard, getProperty, getQdata, getRealized, getReceivesDefault, getRenderer, getRequestMode, getResizable, getResponseForWidget, getRoot, getScaleFactor, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getSurface, getSurfaceTransform, getTemplateChild, getTitle, getTitlebar, getTooltipMarkup, getTooltipText, getTransientFor, getValign, getVexpand, getVexpandSet, getVisible, getWidget, getWidgetForResponse, getWidth.
Setters
setAccessibleParent, setApplication, setCanFocus, setCanTarget, setChild, setChildVisible, setCssClasses, setCursor, setCursorFromName, setData, setDataFull, setDecorated, setDefaultResponse, setDefaultSize, setDefaultWidget, setDeletable, setDestroyWithParent, setDirection, setDisplay, setFocus, setFocusChild, setFocusOnClick, setFocusVisible, setFocusable, setFontMap, setFontOptions, setHalign, setHandleMenubarAccel, setHasTooltip, setHeading, setHexpand, setHexpandSet, setHideOnClose, setIconName, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setMnemonicsVisible, setModal, setName, setOpacity, setOverflow, setParent, setProperty, setReceivesDefault, setResizable, setResponseSensitive, setSensitive, setSizeRequest, setStartupId, setStateFlags, setTitle, setTitlebar, setTooltipMarkup, setTooltipText, setTransientFor, setValign, setVexpand, setVexpandSet, setVisible.
getHeading
appChooserDialogGetHeading Source #
:: (HasCallStack, MonadIO m, IsAppChooserDialog a) | |
=> a |
|
-> m (Maybe Text) | Returns: the text to display at the top of the dialog,
or |
Deprecated: (Since version 4.10)This widget will be removed in GTK 5
Returns the text to display at the top of the dialog.
getWidget
appChooserDialogGetWidget Source #
:: (HasCallStack, MonadIO m, IsAppChooserDialog a) | |
=> a |
|
-> m Widget | Returns: the |
Deprecated: (Since version 4.10)This widget will be removed in GTK 5
Returns the GtkAppChooserWidget
of this dialog.
new
:: (HasCallStack, MonadIO m, IsWindow a, IsFile b) | |
=> Maybe a |
|
-> [DialogFlags] |
|
-> b |
|
-> m AppChooserDialog | Returns: a newly created |
Deprecated: (Since version 4.10)This widget will be removed in GTK 5
Creates a new GtkAppChooserDialog
for the provided GFile
.
The dialog will show applications that can open the file.
newForContentType
appChooserDialogNewForContentType Source #
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> Maybe a |
|
-> [DialogFlags] |
|
-> Text |
|
-> m AppChooserDialog | Returns: a newly created |
Deprecated: (Since version 4.10)This widget will be removed in GTK 5
Creates a new GtkAppChooserDialog
for the provided content type.
The dialog will show applications that can open the content type.
setHeading
appChooserDialogSetHeading Source #
:: (HasCallStack, MonadIO m, IsAppChooserDialog a) | |
=> a |
|
-> Text |
|
-> m () |
Deprecated: (Since version 4.10)This widget will be removed in GTK 5
Sets the text to display at the top of the dialog.
If the heading is not set, the dialog displays a default text.
Properties
gfile
The GFile used by the GtkAppChooserDialog
.
The dialog's GtkAppChooserWidget
content type will
be guessed from the file, if present.
constructAppChooserDialogGfile :: (IsAppChooserDialog o, MonadIO m, IsFile a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “gfile
” property. This is rarely needed directly, but it is used by new
.
getAppChooserDialogGfile :: (MonadIO m, IsAppChooserDialog o) => o -> m (Maybe File) Source #
Get the value of the “gfile
” property.
When overloading is enabled, this is equivalent to
get
appChooserDialog #gfile
heading
The text to show at the top of the dialog.
The string may contain Pango markup.
constructAppChooserDialogHeading :: (IsAppChooserDialog o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “heading
” property. This is rarely needed directly, but it is used by new
.
getAppChooserDialogHeading :: (MonadIO m, IsAppChooserDialog o) => o -> m (Maybe Text) Source #
Get the value of the “heading
” property.
When overloading is enabled, this is equivalent to
get
appChooserDialog #heading
setAppChooserDialogHeading :: (MonadIO m, IsAppChooserDialog o) => o -> Text -> m () Source #
Set the value of the “heading
” property.
When overloading is enabled, this is equivalent to
set
appChooserDialog [ #heading:=
value ]