gi-gtk-3.0.17: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.AppChooserWidget

Contents

Description

AppChooserWidget is a widget for selecting applications. It is the main building block for AppChooserDialog. Most applications only need to use the latter; but you can use this widget as part of a larger widget if you have special needs.

AppChooserWidget offers detailed control over what applications are shown, using the AppChooserWidget:show-default, AppChooserWidget:show-recommended, AppChooserWidget:show-fallback, AppChooserWidget:show-other and AppChooserWidget:show-all properties. See the AppChooser documentation for more information about these groups of applications.

To keep track of the selected application, use the AppChooserWidget::application-selected and AppChooserWidget::application-activated signals.

CSS nodes

GtkAppChooserWidget has a single CSS node with name appchooser.

Synopsis

Exported types

Methods

getDefaultText

appChooserWidgetGetDefaultText Source #

Arguments

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

self: a AppChooserWidget

-> m Text

Returns: the value of AppChooserWidget:default-text

Returns the text that is shown if there are not applications that can handle the content type.

Since: 3.0

getShowAll

appChooserWidgetGetShowAll Source #

Arguments

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

self: a AppChooserWidget

-> m Bool

Returns: the value of AppChooserWidget:show-all

Returns the current value of the AppChooserWidget:show-all property.

Since: 3.0

getShowDefault

appChooserWidgetGetShowDefault Source #

Arguments

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

self: a AppChooserWidget

-> m Bool

Returns: the value of AppChooserWidget:show-default

Returns the current value of the AppChooserWidget:show-default property.

Since: 3.0

getShowFallback

appChooserWidgetGetShowFallback Source #

Arguments

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

self: a AppChooserWidget

-> m Bool

Returns: the value of AppChooserWidget:show-fallback

Returns the current value of the AppChooserWidget:show-fallback property.

Since: 3.0

getShowOther

appChooserWidgetGetShowOther Source #

Arguments

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

self: a AppChooserWidget

-> m Bool

Returns: the value of AppChooserWidget:show-other

Returns the current value of the AppChooserWidget:show-other property.

Since: 3.0

getShowRecommended

appChooserWidgetGetShowRecommended Source #

Arguments

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

self: a AppChooserWidget

-> m Bool

Returns: the value of AppChooserWidget:show-recommended

Returns the current value of the AppChooserWidget:show-recommended property.

Since: 3.0

new

appChooserWidgetNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

contentType: the content type to show applications for

-> m AppChooserWidget

Returns: a newly created AppChooserWidget

Creates a new AppChooserWidget for applications that can handle content of the given type.

Since: 3.0

setDefaultText

appChooserWidgetSetDefaultText Source #

Arguments

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

self: a AppChooserWidget

-> Text

text: the new value for AppChooserWidget:default-text

-> m () 

Sets the text that is shown if there are not applications that can handle the content type.

setShowAll

appChooserWidgetSetShowAll Source #

Arguments

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

self: a AppChooserWidget

-> Bool

setting: the new value for AppChooserWidget:show-all

-> m () 

Sets whether the app chooser should show all applications in a flat list.

Since: 3.0

setShowDefault

appChooserWidgetSetShowDefault Source #

Arguments

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

self: a AppChooserWidget

-> Bool

setting: the new value for AppChooserWidget:show-default

-> m () 

Sets whether the app chooser should show the default handler for the content type in a separate section.

Since: 3.0

setShowFallback

appChooserWidgetSetShowFallback Source #

Arguments

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

self: a AppChooserWidget

-> Bool

setting: the new value for AppChooserWidget:show-fallback

-> m () 

Sets whether the app chooser should show related applications for the content type in a separate section.

Since: 3.0

setShowOther

appChooserWidgetSetShowOther Source #

Arguments

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

self: a AppChooserWidget

-> Bool

setting: the new value for AppChooserWidget:show-other

-> m () 

Sets whether the app chooser should show applications which are unrelated to the content type.

Since: 3.0

setShowRecommended

appChooserWidgetSetShowRecommended Source #

Arguments

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

self: a AppChooserWidget

-> Bool

setting: the new value for AppChooserWidget:show-recommended

-> m () 

Sets whether the app chooser should show recommended applications for the content type in a separate section.

Since: 3.0

Properties

defaultText

showAll

showDefault

showFallback

showOther

showRecommended

Signals

applicationActivated

applicationSelected

populatePopup