---
name: "GEdit"
section: "3o"
platform: "linux"
package: "liblablgtk2-ocaml-doc"
version: "2.4.0v0.2tv-8"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/GEdit"
---

# GEdit(3o)

Editable Widgets

## NAME

GEdit - Editable Widgets

## Module

Module   GEdit

## Documentation

Module **GEdit**\
  :  **sig end**

Editable Widgets

**=== Editable Widgets ===**

**===** **GtkEditable** **===**

*class editable\_signals :* **\[\> Gtk.editable \] Gtk.obj -\> object end**

*class editable :* **\[\> Gtk.editable \] Gtk.obj -\> object end**

Interface for text-editing widgets

**===** **GtkEntry & GtkEntryCompletion** **===**

*class entry\_completion\_signals :* **\[\> \`entrycompletion \] Gtk.obj -\> object end**

**Since** GTK 2.4

*class entry\_completion :* **\[\> \`celllayout \| \`entrycompletion \] Gtk.obj -\> object end**

**Since** GTK 2.4

*class entry\_signals :* **\[\> Gtk.entry \] Gtk.obj -\> object end**

*class entry :* **\[\> Gtk.entry \] Gtk.obj -\> object end**

A single line text entry field

*val entry* :  **?text:string -\>** **?visibility:bool -\>** **?max\_length:int -\>** **?activates\_default:bool -\>** **?editable:bool -\>** **?has\_frame:bool -\>** **?width\_chars:int -\>** **?xalign:float -\>** **?width:int -\>** **?height:int -\>** **?packing:(GObj.widget -\> unit) -\> ?show:bool -\> unit -\> entry**

*val entry\_completion* :  **?model:#GTree.model -\>** **?minimum\_key\_length:int -\>** **?entry:entry -\> unit -\> entry\_completion**

**Since** GTK 2.4

**===** **GtkSpinButton** **===**

*class spin\_button\_signals :* **\[\> Gtk.spin\_button \] Gtk.obj -\> object end**

*class spin\_button :* **Gtk.spin\_button Gtk.obj -\> object end**

Retrieve an integer or floating-point number from the user

*val spin\_button* :  **?adjustment:GData.adjustment -\>** **?rate:float -\>** **?digits:int -\>** **?numeric:bool -\>** **?snap\_to\_ticks:bool -\>** **?update\_policy:\[ \`ALWAYS \| \`IF\_VALID \] -\>** **?value:float -\>** **?wrap:bool -\>** **?width:int -\>** **?height:int -\>** **?packing:(GObj.widget -\> unit) -\> ?show:bool -\> unit -\> spin\_button**

**===** **GtkCombo** **===**

*class combo :* **Gtk.combo Gtk.obj -\> object end**

A text entry field with a dropdown list

*val combo* :  **?popdown\_strings:string list -\>** **?allow\_empty:bool -\>** **?case\_sensitive:bool -\>** **?enable\_arrow\_keys:bool -\>** **?value\_in\_list:bool -\>** **?border\_width:int -\>** **?width:int -\>** **?height:int -\>** **?packing:(GObj.widget -\> unit) -\> ?show:bool -\> unit -\> combo**

**===** **GtkComboBox** **===**

*class combo\_box\_signals :* **\[\> Gtk.combo\_box \] Gtk.obj -\> object end**

**Since** GTK 2.4

*class combo\_box :* **\[\> Gtk.combo\_box \] Gtk.obj -\> object end**

**Since** GTK 2.4

*val combo\_box* :  **?model:#GTree.model -\>** **?active:int -\>** **?add\_tearoffs:bool -\>** **?focus\_on\_click:bool -\>** **?has\_frame:bool -\>** **?wrap\_width:int -\>** **?width:int -\>** **?height:int -\>** **?packing:(GObj.widget -\> unit) -\> ?show:bool -\> unit -\> combo\_box**

**Since** GTK 2.4

*class combo\_box\_entry :* **\[\> Gtk.combo\_box\_entry \] Gtk.obj -\> object end**

**Since** GTK 2.4

*val combo\_box\_entry* :  **?model:#GTree.model -\>** **?text\_column:string GTree.column -\>** **?active:int -\>** **?add\_tearoffs:bool -\>** **?focus\_on\_click:bool -\>** **?has\_frame:bool -\>** **?wrap\_width:int -\>** **?width:int -\>** **?height:int -\>** **?packing:(GObj.widget -\> unit) -\> ?show:bool -\> unit -\> combo\_box\_entry**

**Since** GTK 2.4

**===** **Convenience API for text-only ComboBoxes** **===**

*type* **#combo\_box** *text\_combo* =  **(#combo\_box as 'a) \* (GTree.list\_store \* string GTree.column)**

*val text\_combo\_add* :  **#combo\_box text\_combo -\> string -\> unit**

*val text\_combo\_get\_active* :  **#combo\_box text\_combo -\> string option**

*val combo\_box\_text* :  **?strings:string list -\>** **?use\_markup:bool -\>** **?active:int -\>** **?add\_tearoffs:bool -\>** **?focus\_on\_click:bool -\>** **?has\_frame:bool -\>** **?wrap\_width:int -\>** **?width:int -\>** **?height:int -\>** **?packing:(GObj.widget -\> unit) -\>** **?show:bool -\> unit -\> combo\_box text\_combo**

A convenience function for creating simple  **GEdit.combo\_box** .  Creates a simple  **GTree.list\_store** with a single text column,  adds  **strings** in it, creates a  **GTree.cell\_renderer\_text** and  connects it with the model.

**Since** GTK 2.4

*val combo\_box\_entry\_text* :  **?strings:string list -\>** **?active:int -\>** **?add\_tearoffs:bool -\>** **?focus\_on\_click:bool -\>** **?has\_frame:bool -\>** **?wrap\_width:int -\>** **?width:int -\>** **?height:int -\>** **?packing:(GObj.widget -\> unit) -\>** **?show:bool -\> unit -\> combo\_box\_entry text\_combo**

A convenience function. See  **GEdit.combo\_box\_text**

**Since** GTK 2.4
