AppChooserDialog

GtkAppChooserDialog shows a GtkAppChooserWidget inside a GtkDialog.

An example GtkAppChooserDialog

Note that GtkAppChooserDialog does not have any interesting methods of its own. Instead, you should get the embedded GtkAppChooserWidget using [method@Gtk.AppChooserDialog.get_widget] and call its methods if the generic [iface@Gtk.AppChooser] interface is not sufficient for your needs.

To set the heading that is shown above the GtkAppChooserWidget, use [method@Gtk.AppChooserDialog.set_heading].

Constructors

this
this(GtkAppChooserDialog* gtkAppChooserDialog, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(Window parent, GtkDialogFlags flags, FileIF file)

Creates a new GtkAppChooserDialog for the provided GFile.

this
this(Window parent, GtkDialogFlags flags, string contentType)

Creates a new GtkAppChooserDialog for the provided content type.

Members

Functions

getAppChooserDialogStruct
GtkAppChooserDialog* getAppChooserDialogStruct(bool transferOwnership)

Get the main Gtk struct

getHeading
string getHeading()

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

getStruct
void* getStruct()

the main Gtk struct as a void*

getWidget
Widget getWidget()

Returns the GtkAppChooserWidget of this dialog.

setHeading
void setHeading(string heading)

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

Mixins

__anonymous
mixin AppChooserT!(GtkAppChooserDialog)
Undocumented in source.

Static functions

getType
GType getType()

Variables

gtkAppChooserDialog
GtkAppChooserDialog* gtkAppChooserDialog;

the main Gtk struct

Inherited Members

From Dialog

gtkDialog
GtkDialog* gtkDialog;

the main Gtk struct

getDialogStruct
GtkDialog* getDialogStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

addButtons
void addButtons(string[] buttonsText, ResponseType[] responses)
getType
GType getType()
addActionWidget
void addActionWidget(Widget child, int responseId)

Adds an activatable widget to the action area of a GtkDialog.

addButton
Widget addButton(string buttonText, int responseId)

Adds a button with the given text.

getContentArea
Box getContentArea()

Returns the content area of @dialog.

getHeaderBar
HeaderBar getHeaderBar()

Returns the header bar of @dialog.

getResponseForWidget
int getResponseForWidget(Widget widget)

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

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

addOnClose
gulong addOnClose(void delegate(Dialog) dlg, ConnectFlags connectFlags)

Emitted when the user uses a keybinding to close the dialog.

addOnResponse
gulong addOnResponse(void delegate(int, Dialog) dlg, ConnectFlags connectFlags)

Emitted when an action widget is clicked.

From AppChooserIF

getAppChooserStruct
GtkAppChooser* getAppChooserStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getAppInfo
AppInfoIF getAppInfo()

Returns the currently selected application.

getContentType
string getContentType()

Returns the content type for which the GtkAppChooser shows applications.

refresh
void refresh()

Reloads the list of applications.

Meta