## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Activatable

- Goto spec source

# Description

    package Gtk.Activatable is

Activatable widgets can be connected to a Gtk_Action and reflects the state of its action. A Gtk_Activatable can also provide feedback through its action, as they are responsible for activating their related actions.

# Types

### Gtk_Activatable

- Goto declaration in source

    type Gtk_Activatable is new Glib.Types.GType_Interface;

# Constants & Global variables

### Related_Action_Property

- Goto declaration in source

(Glib.Properties.Property_Object)

    Related_Action_Property : constant Glib.Properties.Property_Object;

### Use_Action_Appearance_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Use_Action_Appearance_Property : constant Glib.Properties.Property_Boolean;

# Subprograms & Entries

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return Glib.GType;

### Do_Set_Related_Action

- Goto spec in source

    procedure Do_Set_Related_Action (Self: Gtk_Activatable;Action: access Gtk.Action.Gtk_Action_Record'Class);

This is a utility function for Gtk.Activatable.Gtk_Activatable implementors. When implementing Gtk.Activatable.Gtk_Activatable you must call this when handling changes of the Gtk.Activatable.Gtk_Activatable:related-action, and you must also use this to break references in GObject->dispose. This function adds a reference to the currently set related action for you, it also makes sure the Gtk.Activatable.Gtk_Activatable->update method is called when the related Gtk.Action.Gtk_Action properties change and registers to the action's proxy list. Note: Be careful to call this before setting the local copy of the Gtk.Action.Gtk_Action property, since this function uses Gtk.Activatable.Get_Action to retrieve the previous action Since: gtk+ 2.16 "action": the Gtk.Action.Gtk_Action to set

### Get_Related_Action

- Goto spec in source

    function Get_Related_Action (Self: Gtk_Activatable) return Gtk.Action.Gtk_Action;

### Set_Related_Action

- Goto spec in source

    procedure Set_Related_Action (Self: Gtk_Activatable;Action: access Gtk.Action.Gtk_Action_Record'Class);

Sets the related action on the Activatable object. Note: Gtk.Activatable.Gtk_Activatable implementors need to handle the Gtk.Activatable.Gtk_Activatable:related-action property and call Gtk.Toggle_Button.Do_Set_Related_Action when it changes. Since: gtk+ 2.16 "action": the Gtk.Action.Gtk_Action to set

### Get_Use_Action_Appearance

- Goto spec in source

    function Get_Use_Action_Appearance (Self: Gtk_Activatable) return Boolean;

### Set_Use_Action_Appearance

- Goto spec in source

    procedure Set_Use_Action_Appearance (Self: Gtk_Activatable;Use_Appearance: Boolean);

Sets whether this activatable should reset its layout and appearance when setting the related action or when the action changes appearance Note: Gtk.Activatable.Gtk_Activatable implementors need to handle the Gtk.Activatable.Gtk_Activatable:use-action-appearance property and call Gtk.Toggle_Button.Sync_Action_Properties to update Activatable if needed. Since: gtk+ 2.16 "use_appearance": whether to use the actions appearance

### Sync_Action_Properties

- Goto spec in source

    procedure Sync_Action_Properties (Self: Gtk_Activatable;Action: access Gtk.Action.Gtk_Action_Record'Class);

This is called to update the activatable completely, this is called internally when the Gtk.Activatable.Gtk_Activatable::related-action property is set or unset and by the implementing class when Gtk.Activatable.Gtk_Activatable::use-action-appearance changes. Since: gtk+ 2.16 "action": the related Gtk.Action.Gtk_Action or null