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/File_chooser_native/index.html

Module Wrappers.File_chooser_native

type t = [ `file_chooser_native | `native_dialog | `object_ ] Gobject.obj
val new_ : string option -> [ `window | `widget | `initially_unowned | `object_ ] Gobject.obj option -> Gtk_enums.filechooseraction -> string option -> string option -> t

Create a new FileChooserNative

val set_cancel_label : t -> string option -> unit

Sets the custom label text for the cancel button.

If characters in @label are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use “__” (two underscores). The first underlined character represents a keyboard accelerator called a mnemonic.

Pressing Alt and that key should activate the button.

val set_accept_label : t -> string option -> unit

Sets the custom label text for the accept button.

If characters in @label are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use “__” (two underscores). The first underlined character represents a keyboard accelerator called a mnemonic.

Pressing Alt and that key should activate the button.

val get_cancel_label : t -> string option

Retrieves the custom label text for the cancel button.

val get_accept_label : t -> string option

Retrieves the custom label text for the accept button.