AppChooserDialog

gtk.app_chooser_dialog.AppChooserDialog shows a gtk.app_chooser_widget.AppChooserWidget inside a gtk.dialog.Dialog.

An example GtkAppChooserDialog

Note that gtk.app_chooser_dialog.AppChooserDialog does not have any interesting methods of its own. Instead, you should get the embedded gtk.app_chooser_widget.AppChooserWidget using gtk.app_chooser_dialog.AppChooserDialog.getWidget and call its methods if the generic gtk.app_chooser.AppChooser interface is not sufficient for your needs.

To set the heading that is shown above the gtk.app_chooser_widget.AppChooserWidget, use gtk.app_chooser_dialog.AppChooserDialog.setHeading.

CSS nodes

gtk.app_chooser_dialog.AppChooserDialog has a single CSS node with the name window and style class .appchooser.

More...

Constructors

this
this(gtk.window.Window parent, gtk.types.DialogFlags flags, gio.file.File file)

Creates a new gtk.app_chooser_dialog.AppChooserDialog for the provided gio.file.File.

Members

Functions

getHeading
string getHeading()

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

getWidget
gtk.widget.Widget getWidget()

Returns the gtk.app_chooser_widget.AppChooserWidget of this dialog.

setHeading
void setHeading(string heading)

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

Static functions

newForContentType
gtk.app_chooser_dialog.AppChooserDialog newForContentType(gtk.window.Window parent, gtk.types.DialogFlags flags, string contentType)

Creates a new gtk.app_chooser_dialog.AppChooserDialog for the provided content type.

Mixed In Members

From mixin AppChooserT!()

getAppInfo
gio.app_info.AppInfo getAppInfo()

Returns the currently selected application.

getContentType
string getContentType()

Returns the content type for which the gtk.app_chooser.AppChooser shows applications.

refresh
void refresh()

Reloads the list of applications.

Inherited Members

From Dialog

addActionWidget
void addActionWidget(gtk.widget.Widget child, int responseId)

Adds an activatable widget to the action area of a gtk.dialog.Dialog.

addButton
gtk.widget.Widget addButton(string buttonText, int responseId)

Adds a button with the given text.

getContentArea
gtk.box.Box getContentArea()

Returns the content area of dialog.

getHeaderBar
gtk.header_bar.HeaderBar getHeaderBar()

Returns the header bar of dialog.

getResponseForWidget
int getResponseForWidget(gtk.widget.Widget widget)

Gets the response id of a widget in the action area of a dialog.

getWidgetForResponse
gtk.widget.Widget getWidgetForResponse(int responseId)

Gets the widget button that uses the given response ID in the action area of a dialog.

response
void response(int responseId)

Emits the ::response signal with the given response ID.

setDefaultResponse
void setDefaultResponse(int responseId)

Sets the default widget for the dialog based on the response ID.

setResponseSensitive
void setResponseSensitive(int responseId, bool setting)

A convenient way to sensitize/desensitize dialog buttons.

connectClose
ulong connectClose(T callback, Flag!"After" after)

Connect to Close signal.

connectResponse
ulong connectResponse(T callback, Flag!"After" after)

Connect to Response signal.

From AppChooser

getAppInfo
gio.app_info.AppInfo getAppInfo()

Returns the currently selected application.

getContentType
string getContentType()

Returns the content type for which the gtk.app_chooser.AppChooser shows applications.

refresh
void refresh()

Reloads the list of applications.

Detailed Description

Deprecated: The application selection widgets should be implemented according to the design of each platform and/or application requiring them.