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.
AppChooserWidget self()Returns `this`, for use in `with` statements.AppChooserWidgetGidBuilder builder()Get builder for [gtk.appchooserwidget.AppChooserWidget] Returns: New builder objectstring defaultText() @propertyGet `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) @propertySet `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() @propertyGet `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) @propertySet `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() @propertyGet `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) @propertySet `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() @propertyGet `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) @propertySet `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() @propertyGet `showOther` property. Returns: The #GtkAppChooserWidget:show-other property determines whether the app chooser should show a section for other applications.void showOther(bool propval) @propertySet `showOther` property. Params: propval = The #GtkAppChooserWidget:show-other property determines whether the app chooser should show a section for other applications.bool showRecommended() @propertyGet `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) @propertySet `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()Returns the text that is shown if there are not applications that can handle the content type. Returns: the value of #GtkAppChooserWidget:default-textbool getShowAll()Returns the current value of the #GtkAppChooserWidget:show-all property. Returns: the value of #GtkAppChooserWidget:show-allbool getShowDefault()Returns the current value of the #GtkAppChooserWidget:show-default property. Returns: the value of #GtkAppChooserWidget:show-defaultbool getShowFallback()Returns the current value of the #GtkAppChooserWidget:show-fallback property. Returns: the value of #GtkAppChooserWidget:show-fallbackbool getShowOther()Returns the current value of the #GtkAppChooserWidget:show-other property. Returns: the value of #GtkAppChooserWidget:show-otherbool getShowRecommended()Returns the current value of the #GtkAppChooserWidget:show-recommended property. Returns: the value of #GtkAppChooserWidget:show-recommendedvoid 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.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)Connect to `PopulatePopup` signal.T defaultText(string propval)Set `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)Set `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)Set `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)Set `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)Set `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)Set `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]