Index

Package: Set_Translate_Func_User_Data (generic)

Description

generic
      type User_Data_Type (<>) is private;
      with procedure Destroy (Data : in out User_Data_Type) is null;
   package Set_Translate_Func_User_Data is

Types

User_Data_Type

type User_Data_Type (<>) is private;

Gtk_Translate_Func

type Gtk_Translate_Func is access function
        (Path      : UTF8_String;
         Func_Data : User_Data_Type) return UTF8_String;

Subprograms & Entries

Destroy

procedure Destroy 
(Data: in out User_Data_Type) is null;

Set_Translate_Func

procedure Set_Translate_Func 
(Action_Group: not null access Gtk.Action_Group.Gtk_Action_Group_Record'Class;
Func: Gtk_Translate_Func;
Data: User_Data_Type;
Notify: Glib.G_Destroy_Notify_Address);
Sets a function to be used for translating the Label and Tooltip of Gtk_Action_Entry<!-- -->s added by gtk_action_group_add_actions. If you're using gettext, it is enough to set the translation domain with Gtk.Action_Group.Set_Translation_Domain. Since: gtk+ 2.4 "func": a Gtk_Translate_Func "data": data to be passed to Func and Notify "notify": a Glib.G_Destroy_Notify_Address function to be called when Action_Group is destroyed and when the translation function is changed again