gtk.app_chooser_widget
Module for [AppChooserWidget] class
Types 3
#GtkAppChooserWidget is a widget for selecting applications. It is the main building block for #GtkAppChooserDialog. 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.
#GtkAppChooserWidget offers detailed control over what applications are shown, using the #GtkAppChooserWidget:show-default, #GtkAppChooserWidget:show-recommended, #GtkAppChooserWidget:show-fallback, #GtkAppChooserWidget:show-other and #GtkAppChooserWidget:show-all properties. See the #GtkAppChooser documentation for more information about these groups of applications.
To keep track of the selected application, use the #GtkAppChooserWidget::application-selected and #GtkAppChooserWidget::application-activated signals.
CSS nodes
GtkAppChooserWidget has a single CSS node with name appchooser.
AppChooserWidgetGidBuilder builder() static nothrowGet builder for [gtk.app_chooser_widget.AppChooserWidget] Returns: New builder objectstring defaultText() @property nothrowGet `defaultText` property. Returns: The #GtkAppChooserWidget:default-text property determines the text that appears in the widget when there are no applications for the given content type. See als...void defaultText(string propval) @property nothrowSet `defaultText` property. Params: propval = The #GtkAppChooserWidget:default-text property determines the text that appears in the widget when there are no applications for the given content type...bool showAll() @property nothrowGet `showAll` property. Returns: If the #GtkAppChooserWidget:show-all property is true, the app chooser presents all applications in a single list, without subsections for default, recommended or r...void showAll(bool propval) @property nothrowSet `showAll` property. Params: propval = If the #GtkAppChooserWidget:show-all property is true, the app chooser presents all applications in a single list, without subsections for default, recomme...bool showDefault() @property nothrowGet `showDefault` property. Returns: The ::show-default property determines whether the app chooser should show the default handler for the content type in a separate section. If false, the default...void showDefault(bool propval) @property nothrowSet `showDefault` property. Params: propval = The ::show-default property determines whether the app chooser should show the default handler for the content type in a separate section. If false, th...bool showFallback() @property nothrowGet `showFallback` property. Returns: The #GtkAppChooserWidget:show-fallback property determines whether the app chooser should show a section for fallback applications. If false, the fallback appl...void showFallback(bool propval) @property nothrowSet `showFallback` property. Params: propval = The #GtkAppChooserWidget:show-fallback property determines whether the app chooser should show a section for fallback applications. If false, the fall...bool showOther() @property nothrowGet `showOther` property. Returns: The #GtkAppChooserWidget:show-other property determines whether the app chooser should show a section for other applications.void showOther(bool propval) @property nothrowSet `showOther` property. Params: propval = The #GtkAppChooserWidget:show-other property determines whether the app chooser should show a section for other applications.bool showRecommended() @property nothrowGet `showRecommended` property. Returns: The #GtkAppChooserWidget:show-recommended property determines whether the app chooser should show a section for recommended applications. If false, the reco...void showRecommended(bool propval) @property nothrowSet `showRecommended` property. Params: propval = The #GtkAppChooserWidget:show-recommended property determines whether the app chooser should show a section for recommended applications. If false,...string getDefaultText() nothrowReturns the text that is shown if there are not applications that can handle the content type. Returns: the value of #GtkAppChooserWidget:default-textbool getShowAll() nothrowReturns the current value of the #GtkAppChooserWidget:show-all property. Returns: the value of #GtkAppChooserWidget:show-allbool getShowDefault() nothrowReturns the current value of the #GtkAppChooserWidget:show-default property. Returns: the value of #GtkAppChooserWidget:show-defaultbool getShowFallback() nothrowReturns the current value of the #GtkAppChooserWidget:show-fallback property. Returns: the value of #GtkAppChooserWidget:show-fallbackbool getShowOther() nothrowReturns the current value of the #GtkAppChooserWidget:show-other property. Returns: the value of #GtkAppChooserWidget:show-otherbool getShowRecommended() nothrowReturns the current value of the #GtkAppChooserWidget:show-recommended property. Returns: the value of #GtkAppChooserWidget:show-recommendedvoid setDefaultText(string text) nothrowSets the text that is shown if there are not applications that can handle the content type.void setShowAll(bool setting) nothrowSets whether the app chooser should show all applications in a flat list.void setShowDefault(bool setting) nothrowSets whether the app chooser should show the default handler for the content type in a separate section.void setShowFallback(bool setting) nothrowSets whether the app chooser should show related applications for the content type in a separate section.void setShowOther(bool setting) nothrowSets whether the app chooser should show applications which are unrelated to the content type.void setShowRecommended(bool setting) nothrowSets whether the app chooser should show recommended applications for the content type in a separate section.gulong connectApplicationActivated(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gio.app_info.AppInfo)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.app_chooser_widget.AppChooserWidget)))
&& Parameters!T.length < 3) nothrowConnect to `ApplicationActivated` signal.gulong connectApplicationSelected(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gio.app_info.AppInfo)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.app_chooser_widget.AppChooserWidget)))
&& Parameters!T.length < 3) nothrowConnect to `ApplicationSelected` signal.gulong connectPopulatePopup(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.menu.Menu)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gio.app_info.AppInfo)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.app_chooser_widget.AppChooserWidget)))
&& Parameters!T.length < 4) nothrowConnect to `PopulatePopup` signal.Fluent builder implementation template for gtk.app_chooser_widget.AppChooserWidget
T defaultText(string propval) nothrowSet `defaultText` property. Params: propval = The #GtkAppChooserWidget:default-text property determines the text that appears in the widget when there are no applications for the given content type...T showAll(bool propval) nothrowSet `showAll` property. Params: propval = If the #GtkAppChooserWidget:show-all property is true, the app chooser presents all applications in a single list, without subsections for default, recomme...T showDefault(bool propval) nothrowSet `showDefault` property. Params: propval = The ::show-default property determines whether the app chooser should show the default handler for the content type in a separate section. If false, th...T showFallback(bool propval) nothrowSet `showFallback` property. Params: propval = The #GtkAppChooserWidget:show-fallback property determines whether the app chooser should show a section for fallback applications. If false, the fall...T showOther(bool propval) nothrowSet `showOther` property. Params: propval = The #GtkAppChooserWidget:show-other property determines whether the app chooser should show a section for other applications. Returns: Builder instance f...T showRecommended(bool propval) nothrowSet `showRecommended` property. Params: propval = The #GtkAppChooserWidget:show-recommended property determines whether the app chooser should show a section for recommended applications. If false,...Fluent builder for gtk.app_chooser_widget.AppChooserWidget