gi-gtk-3.0.32: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.AppChooserDialog

Contents

Description

tAppChooserDialog shows a tAppChooserWidget inside a tDialog.

Note that tAppChooserDialog does not have any interesting methods of its own. Instead, you should get the embedded tAppChooserWidget using appChooserDialogGetWidget and call its methods if the generic tAppChooser interface is not sufficient for your needs.

To set the heading that is shown above the tAppChooserWidget, use appChooserDialogSetHeading.

Synopsis

Exported types

newtype AppChooserDialog Source #

Memory-managed wrapper type.

Constructors

AppChooserDialog (ManagedPtr AppChooserDialog) 
Instances
Eq AppChooserDialog Source # 
Instance details

Defined in GI.Gtk.Objects.AppChooserDialog

GObject AppChooserDialog Source # 
Instance details

Defined in GI.Gtk.Objects.AppChooserDialog

Methods

gobjectType :: IO GType

IsGValue AppChooserDialog Source #

Convert AppChooserDialog to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.AppChooserDialog

Methods

toGValue :: AppChooserDialog -> IO GValue

fromGValue :: GValue -> IO AppChooserDialog

HasParentTypes AppChooserDialog Source # 
Instance details

Defined in GI.Gtk.Objects.AppChooserDialog

type ParentTypes AppChooserDialog Source # 
Instance details

Defined in GI.Gtk.Objects.AppChooserDialog

type ParentTypes AppChooserDialog = Dialog ': (Window ': (Bin ': (Container ': (Widget ': (Object ': (ImplementorIface ': (AppChooser ': (Buildable ': ([] :: [Type])))))))))

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 # 
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.

noAppChooserDialog :: Maybe AppChooserDialog Source #

A convenience alias for Nothing :: Maybe AppChooserDialog.

Methods

Overloaded methods

getHeading

appChooserDialogGetHeading Source #

Arguments

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

self: a tAppChooserDialog

-> 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 tAppChooserDialog

-> m Widget

Returns: the tAppChooserWidget of self

Returns the tAppChooserWidget of this dialog.

Since: 3.0

new

appChooserDialogNew Source #

Arguments

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

parent: a tWindow, or Nothing

-> [DialogFlags]

flags: flags for this dialog

-> b

file: a tFile

-> m AppChooserDialog

Returns: a newly created tAppChooserDialog

Creates a new tAppChooserDialog for the provided tFile, to allow the user to select an application for it.

Since: 3.0

newForContentType

appChooserDialogNewForContentType Source #

Arguments

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

parent: a tWindow, or Nothing

-> [DialogFlags]

flags: flags for this dialog

-> Text

contentType: a content type string

-> m AppChooserDialog

Returns: a newly created tAppChooserDialog

Creates a new tAppChooserDialog for the provided content type, to allow the user to select an application for it.

Since: 3.0

setHeading

appChooserDialogSetHeading Source #

Arguments

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

self: a tAppChooserDialog

-> 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 tAppChooserDialog. The dialog's tAppChooserWidget content type will be guessed from the file, if present.

constructAppChooserDialogGfile :: (IsAppChooserDialog o, IsFile a) => a -> IO (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 => Text -> IO (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 ]