Gtk.AppChooserWidget

const Gtk = imports.gi.Gtk;

let app_chooser_widget = new Gtk.AppChooserWidget({
    default_text: value,
    show_all: value,
    show_default: value,
    show_fallback: value,
    show_other: value,
    show_recommended: value,
});
  

Gtk.AppChooserWidget is a widget for selecting applications. It is the main building block for Gtk.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.AppChooserWidget offers detailed control over what applications are shown, using the Gtk.show-default, Gtk.show-recommended, Gtk.show-fallback, Gtk.show-other and Gtk.show-all properties. See the Gtk.AppChooser documentation for more information about these groups of applications.

To keep track of the selected application, use the Gtk.application-selected and Gtk.application-activated signals.

Hierarchy

  • GObject.Object
    • GObject.InitiallyUnowned
      • Gtk.Widget
        • Gtk.Container
          • Gtk.Box
            • Gtk.AppChooserWidget