gi-gtk-3.0.11: 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

data AppChooserWidgetDefaultTextPropertyInfo Source #

Instances

AttrInfo AppChooserWidgetDefaultTextPropertyInfo Source # 
type AttrOrigin AppChooserWidgetDefaultTextPropertyInfo Source # 
type AttrLabel AppChooserWidgetDefaultTextPropertyInfo Source # 
type AttrGetType AppChooserWidgetDefaultTextPropertyInfo Source # 
type AttrBaseTypeConstraint AppChooserWidgetDefaultTextPropertyInfo Source # 
type AttrSetTypeConstraint AppChooserWidgetDefaultTextPropertyInfo Source # 
type AttrAllowedOps AppChooserWidgetDefaultTextPropertyInfo Source # 

showAll

data AppChooserWidgetShowAllPropertyInfo Source #

Instances

AttrInfo AppChooserWidgetShowAllPropertyInfo Source # 
type AttrOrigin AppChooserWidgetShowAllPropertyInfo Source # 
type AttrLabel AppChooserWidgetShowAllPropertyInfo Source # 
type AttrGetType AppChooserWidgetShowAllPropertyInfo Source # 
type AttrBaseTypeConstraint AppChooserWidgetShowAllPropertyInfo Source # 
type AttrSetTypeConstraint AppChooserWidgetShowAllPropertyInfo Source # 
type AttrAllowedOps AppChooserWidgetShowAllPropertyInfo Source # 

showDefault

data AppChooserWidgetShowDefaultPropertyInfo Source #

Instances

AttrInfo AppChooserWidgetShowDefaultPropertyInfo Source # 
type AttrOrigin AppChooserWidgetShowDefaultPropertyInfo Source # 
type AttrLabel AppChooserWidgetShowDefaultPropertyInfo Source # 
type AttrGetType AppChooserWidgetShowDefaultPropertyInfo Source # 
type AttrBaseTypeConstraint AppChooserWidgetShowDefaultPropertyInfo Source # 
type AttrSetTypeConstraint AppChooserWidgetShowDefaultPropertyInfo Source # 
type AttrAllowedOps AppChooserWidgetShowDefaultPropertyInfo Source # 

showFallback

data AppChooserWidgetShowFallbackPropertyInfo Source #

Instances

AttrInfo AppChooserWidgetShowFallbackPropertyInfo Source # 
type AttrOrigin AppChooserWidgetShowFallbackPropertyInfo Source # 
type AttrLabel AppChooserWidgetShowFallbackPropertyInfo Source # 
type AttrGetType AppChooserWidgetShowFallbackPropertyInfo Source # 
type AttrBaseTypeConstraint AppChooserWidgetShowFallbackPropertyInfo Source # 
type AttrSetTypeConstraint AppChooserWidgetShowFallbackPropertyInfo Source # 
type AttrAllowedOps AppChooserWidgetShowFallbackPropertyInfo Source # 

showOther

data AppChooserWidgetShowOtherPropertyInfo Source #

Instances

AttrInfo AppChooserWidgetShowOtherPropertyInfo Source # 
type AttrOrigin AppChooserWidgetShowOtherPropertyInfo Source # 
type AttrLabel AppChooserWidgetShowOtherPropertyInfo Source # 
type AttrGetType AppChooserWidgetShowOtherPropertyInfo Source # 
type AttrBaseTypeConstraint AppChooserWidgetShowOtherPropertyInfo Source # 
type AttrSetTypeConstraint AppChooserWidgetShowOtherPropertyInfo Source # 
type AttrAllowedOps AppChooserWidgetShowOtherPropertyInfo Source # 

showRecommended

data AppChooserWidgetShowRecommendedPropertyInfo Source #

Instances

AttrInfo AppChooserWidgetShowRecommendedPropertyInfo Source # 
type AttrOrigin AppChooserWidgetShowRecommendedPropertyInfo Source # 
type AttrLabel AppChooserWidgetShowRecommendedPropertyInfo Source # 
type AttrGetType AppChooserWidgetShowRecommendedPropertyInfo Source # 
type AttrBaseTypeConstraint AppChooserWidgetShowRecommendedPropertyInfo Source # 
type AttrSetTypeConstraint AppChooserWidgetShowRecommendedPropertyInfo Source # 
type AttrAllowedOps AppChooserWidgetShowRecommendedPropertyInfo Source # 

Signals

applicationActivated

applicationSelected

populatePopup