package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/App_chooser_button/index.html
Module Wrappers.App_chooser_button
type t =
[ `app_chooser_button | `widget | `initially_unowned | `object_ ] Gobject.objval new_ : string -> tCreate a new AppChooserButton
val set_show_dialog_item : t -> bool -> unitSets whether the dropdown menu of this button should show an entry to trigger a `GtkAppChooserDialog`.
val set_show_default_item : t -> bool -> unitSets whether the dropdown menu of this button should show the default application for the given content type at top.
val set_modal : t -> bool -> unitSets whether the dialog should be modal.
val set_heading : t -> string -> unitSets the text to display at the top of the dialog.
If the heading is not set, the dialog displays a default text.
val set_active_custom_item : t -> string -> unitSelects a custom item.
See method@Gtk.AppChooserButton.append_custom_item.
Use method@Gtk.AppChooser.refresh to bring the selection to its initial state.
val get_show_dialog_item : t -> boolReturns whether the dropdown menu shows an item for a `GtkAppChooserDialog`.
val get_show_default_item : t -> boolReturns whether the dropdown menu should show the default application at the top.
val get_modal : t -> boolGets whether the dialog is modal.
val get_heading : t -> string optionReturns the text to display at the top of the dialog.
val append_separator : t -> unitAppends a separator to the list of applications that is shown in the popup.
val append_custom_item :
t ->
string ->
string ->
Ocgtk_gio.Gio.Wrappers.Icon.t ->
unitAppends a custom item to the list of applications that is shown in the popup.
The item name must be unique per-widget. Clients can use the provided name as a detail for the signal@Gtk.AppChooserButton::custom-item-activated signal, to add a callback for the activation of a particular custom item in the list.
See also method@Gtk.AppChooserButton.append_separator.
val on_activate :
?after:bool ->
t ->
callback:(unit -> unit) ->
Gobject.Signal.handler_idval on_changed :
?after:bool ->
t ->
callback:(unit -> unit) ->
Gobject.Signal.handler_idval on_custom_item_activated :
?after:bool ->
t ->
callback:(item_name:string -> unit) ->
Gobject.Signal.handler_id