package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/App_chooser_widget/index.html

Module Wrappers.App_chooser_widget

type t = [ `app_chooser_widget | `widget | `initially_unowned | `object_ ] Gobject.obj
val new_ : string -> t

Create a new AppChooserWidget

Sets whether the app chooser should show recommended applications for the content type in a separate section.

val set_show_other : t -> bool -> unit

Sets whether the app chooser should show applications which are unrelated to the content type.

val set_show_fallback : t -> bool -> unit

Sets whether the app chooser should show related applications for the content type in a separate section.

val set_show_default : t -> bool -> unit

Sets whether the app chooser should show the default handler for the content type in a separate section.

val set_show_all : t -> bool -> unit

Sets whether the app chooser should show all applications in a flat list.

val set_default_text : t -> string -> unit

Sets the text that is shown if there are not applications that can handle the content type.

Gets whether the app chooser should show recommended applications for the content type in a separate section.

val get_show_other : t -> bool

Gets whether the app chooser should show applications which are unrelated to the content type.

val get_show_fallback : t -> bool

Gets whether the app chooser should show related applications for the content type in a separate section.

val get_show_default : t -> bool

Gets whether the app chooser should show the default handler for the content type in a separate section.

val get_show_all : t -> bool

Gets whether the app chooser should show all applications in a flat list.

val get_default_text : t -> string option

Returns the text that is shown if there are not applications that can handle the content type.

val on_application_activated : ?after:bool -> t -> callback:(application:Ocgtk_gio.Gio.Wrappers.App_info.t -> unit) -> Gobject.Signal.handler_id
val on_application_selected : ?after:bool -> t -> callback:(application:Ocgtk_gio.Gio.Wrappers.App_info.t -> unit) -> Gobject.Signal.handler_id