implemented according to the design of each platform and/or application requiring them.
gtk.app_chooser_widget
Module for AppChooserWidget class
Types 3
gtk.app_chooser_widget.AppChooserWidget is a widget for selecting applications.
It is the main building block for gtk.app_chooser_dialog.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.
gtk.app_chooser_widget.AppChooserWidget offers detailed control over what applications are shown, using the gtk.app_chooser_widget.AppChooserWidget.showDefault, gtk.app_chooser_widget.AppChooserWidget.showRecommended, gtk.app_chooser_widget.AppChooserWidget.showFallback, gtk.app_chooser_widget.AppChooserWidget.showOther and gtk.app_chooser_widget.AppChooserWidget.showAll properties. See the gtk.app_chooser.AppChooser documentation for more information about these groups of applications.
To keep track of the selected application, use the gtk.app_chooser_widget.AppChooserWidget.applicationSelected and gtk.app_chooser_widget.AppChooserWidget.applicationActivated signals.
CSS nodes
gtk.app_chooser_widget.AppChooserWidget has a single CSS node with name appchooser.
Deprecated
AppChooserWidget self()Returns `this`, for use in `with` statements.AppChooserWidgetGidBuilder builder()Get builder for [gtk.app_chooser_widget.AppChooserWidget] Returns: New builder objectstring defaultText() @propertyGet `defaultText` property. Returns: The text that appears in the widget when there are no applications for the given content type.void defaultText(string propval) @propertySet `defaultText` property. Params: propval = The text that appears in the widget when there are no applications for the given content type.bool showAll() @propertyGet `showAll` property. Returns: If true, the app chooser presents all applications in a single list, without subsections for default, recommended or related applications.void showAll(bool propval) @propertySet `showAll` property. Params: propval = If true, the app chooser presents all applications in a single list, without subsections for default, recommended or related applications.bool showDefault() @propertyGet `showDefault` property. Returns: Determines whether the app chooser should show the default handler for the content type in a separate section.void showDefault(bool propval) @propertySet `showDefault` property. Params: propval = Determines whether the app chooser should show the default handler for the content type in a separate section.bool showFallback() @propertyGet `showFallback` property. Returns: Determines whether the app chooser should show a section for fallback applications.void showFallback(bool propval) @propertySet `showFallback` property. Params: propval = Determines whether the app chooser should show a section for fallback applications.bool showOther() @propertyGet `showOther` property. Returns: Determines whether the app chooser should show a section for other applications.void showOther(bool propval) @propertySet `showOther` property. Params: propval = Determines whether the app chooser should show a section for other applications.bool showRecommended() @propertyGet `showRecommended` property. Returns: Determines whether the app chooser should show a section for recommended applications.void showRecommended(bool propval) @propertySet `showRecommended` property. Params: propval = Determines whether the app chooser should show a section for recommended applications.string getDefaultText()Returns the text that is shown if there are not applications that can handle the content type. Returns: the value of [gtk.app_chooser_widget.AppChooserWidget.defaultText]bool getShowAll()Gets whether the app chooser should show all applications in a flat list. Returns: the value of [gtk.app_chooser_widget.AppChooserWidget.showAll]bool getShowDefault()Gets whether the app chooser should show the default handler for the content type in a separate section. Returns: the value of [gtk.app_chooser_widget.AppChooserWidget.showDefault]bool getShowFallback()Gets whether the app chooser should show related applications for the content type in a separate section. Returns: the value of [gtk.app_chooser_widget.AppChooserWidget.showFallback]bool getShowOther()Gets whether the app chooser should show applications which are unrelated to the content type. Returns: the value of [gtk.app_chooser_widget.AppChooserWidget.showOther]bool getShowRecommended()Gets whether the app chooser should show recommended applications for the content type in a separate section. Returns: the value of [gtk.app_chooser_widget.AppChooserWidget.showRecommended]void setDefaultText(string text)Sets the text that is shown if there are not applications that can handle the content type.void setShowAll(bool setting)Sets whether the app chooser should show all applications in a flat list.void setShowDefault(bool setting)Sets whether the app chooser should show the default handler for the content type in a separate section.void setShowFallback(bool setting)Sets whether the app chooser should show related applications for the content type in a separate section.void setShowOther(bool setting)Sets whether the app chooser should show applications which are unrelated to the content type.void setShowRecommended(bool setting)Sets 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)Connect 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)Connect to `ApplicationSelected` signal.Fluent builder implementation template for gtk.app_chooser_widget.AppChooserWidget
T defaultText(string propval)Set `defaultText` property. Params: propval = The text that appears in the widget when there are no applications for the given content type. Returns: Builder instance for fluent chainingT showAll(bool propval)Set `showAll` property. Params: propval = If true, the app chooser presents all applications in a single list, without subsections for default, recommended or related applications. Returns: Builder...T showDefault(bool propval)Set `showDefault` property. Params: propval = Determines whether the app chooser should show the default handler for the content type in a separate section.T showFallback(bool propval)Set `showFallback` property. Params: propval = Determines whether the app chooser should show a section for fallback applications.T showOther(bool propval)Set `showOther` property. Params: propval = Determines whether the app chooser should show a section for other applications. Returns: Builder instance for fluent chainingT showRecommended(bool propval)Set `showRecommended` property. Params: propval = Determines whether the app chooser should show a section for recommended applications.Fluent builder for gtk.app_chooser_widget.AppChooserWidget
AppChooserWidget build()Create object from builder. Returns: New object