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.Interfaces.AppChooser

Contents

Description

AppChooser is an interface that can be implemented by widgets which allow the user to choose an application (typically for the purpose of opening a file). The main objects that implement this interface are AppChooserWidget, AppChooserDialog and AppChooserButton.

Applications are represented by GIO AppInfo objects here. GIO has a concept of recommended and fallback applications for a given content type. Recommended applications are those that claim to handle the content type itself, while fallback also includes applications that handle a more generic content type. GIO also knows the default and last-used application for a given content type. The AppChooserWidget provides detailed control over whether the shown list of applications should include default, recommended or fallback applications.

To obtain the application that has been selected in a AppChooser, use appChooserGetAppInfo.

Synopsis

Exported types

Methods

getAppInfo

appChooserGetAppInfo Source #

Arguments

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

self: a AppChooser

-> m (Maybe AppInfo)

Returns: a AppInfo for the currently selected application, or Nothing if none is selected. Free with objectUnref

Returns the currently selected application.

Since: 3.0

getContentType

appChooserGetContentType Source #

Arguments

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

self: a AppChooser

-> m Text

Returns: the content type of self. Free with free

Returns the current value of the AppChooser:content-type property.

Since: 3.0

refresh

data AppChooserRefreshMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m, IsAppChooser a) => MethodInfo * AppChooserRefreshMethodInfo a signature Source # 

appChooserRefresh Source #

Arguments

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

self: a AppChooser

-> m () 

Reloads the list of applications.

Since: 3.0

Properties

contentType

data AppChooserContentTypePropertyInfo Source #

Instances

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