Package: gtk

Class gtk:editable-label

Superclasses

Documented Subclasses

None

Direct Slots

editing
The editing property of type :boolean (Read)
The property is true while the widget is in edit mode.
Default value: false

Details

The gtk:editable-label widget is a gtk:label widget that allows users to edit the text by switching the widget to an "edit mode".

Figure: GtkEditableLabel

The gtk:editable-label widget does not have API of its own, but it implements the gtk:editable interface.

The default bindings for activating the edit mode is to click or press the Enter key. The default bindings for leaving the edit mode are the Enter key, to save the results, or the Escape key, to cancel the editing.

Shortcuts and Gestures

  • Enter starts editing.
  • Escape stops editing.

Actions

  • editing.starts switches the widget into editing mode.
  • editing.stop switches the widget out of editing mode.

CSS Nodes

editablelabel[.editing]
╰── stack
    ├── label
    ╰── text    
The gtk:editable-label implementation has a main node with the name editablelabel. When the text entry is in editing mode, it gets the .editing style class. For all the subnodes added to the text node in various situations, see the gtk:text documentation.
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

2025-05-31