gi-gtk-4.0.6: Gtk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Objects.AppChooserDialog

Description

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

Exported types

newtype AppChooserDialog Source #

Memory-managed wrapper type.

Constructors

AppChooserDialog (ManagedPtr AppChooserDialog) 

Instances

Instances details
Eq AppChooserDialog Source # 
Instance details

Defined in GI.Gtk.Objects.AppChooserDialog

GObject AppChooserDialog Source # 
Instance details

Defined in GI.Gtk.Objects.AppChooserDialog

ManagedPtrNewtype AppChooserDialog Source # 
Instance details

Defined in GI.Gtk.Objects.AppChooserDialog

TypedObject AppChooserDialog Source # 
Instance details

Defined in GI.Gtk.Objects.AppChooserDialog

Methods

glibType :: IO GType

HasParentTypes AppChooserDialog Source # 
Instance details

Defined in GI.Gtk.Objects.AppChooserDialog

IsGValue (Maybe AppChooserDialog) Source #

Convert AppChooserDialog to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.AppChooserDialog

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe AppChooserDialog -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe AppChooserDialog)

type ParentTypes AppChooserDialog Source # 
Instance details

Defined in GI.Gtk.Objects.AppChooserDialog

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

Instances details
(GObject o, IsDescendantOf AppChooserDialog o) => IsAppChooserDialog o Source # 
Instance details

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

Expand

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, updateProperty, updateRelation, updateState, watchClosure.

Getters

getAccessibleRole, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getAppInfo, getApplication, getBuildableId, getCanFocus, getCanTarget, getChild, getChildVisible, getClipboard, getContentArea, getContentType, getCssClasses, getCssName, getCursor, getData, getDecorated, getDefaultSize, getDefaultWidget, getDeletable, getDestroyWithParent, getDirection, getDisplay, 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, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, 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

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 #

Arguments

:: (HasCallStack, MonadIO m, IsAppChooserDialog a) 
=> a

self: a GtkAppChooserDialog

-> m (Maybe Text)

Returns: the text to display at the top of the dialog, or Nothing, in which case a default text is displayed

Returns the text to display at the top of the dialog.

getWidget

appChooserDialogGetWidget Source #

Arguments

:: (HasCallStack, MonadIO m, IsAppChooserDialog a) 
=> a

self: a GtkAppChooserDialog

-> m Widget

Returns: the GtkAppChooserWidget of self

Returns the GtkAppChooserWidget of this dialog.

new

appChooserDialogNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsWindow a, IsFile b) 
=> Maybe a

parent: a GtkWindow

-> [DialogFlags]

flags: flags for this dialog

-> b

file: a GFile

-> m AppChooserDialog

Returns: a newly created GtkAppChooserDialog

Creates a new GtkAppChooserDialog for the provided GFile.

The dialog will show applications that can open the file.

newForContentType

appChooserDialogNewForContentType Source #

Arguments

:: (HasCallStack, MonadIO m, IsWindow a) 
=> Maybe a

parent: a GtkWindow

-> [DialogFlags]

flags: flags for this dialog

-> Text

contentType: a content type string

-> m AppChooserDialog

Returns: a newly created GtkAppChooserDialog

Creates a new GtkAppChooserDialog for the provided content type.

The dialog will show applications that can open the content type.

setHeading

appChooserDialogSetHeading Source #

Arguments

:: (HasCallStack, MonadIO m, IsAppChooserDialog a) 
=> a

self: a GtkAppChooserDialog

-> Text

heading: a string containing Pango markup

-> m () 

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 ]