Function

GtkTranslateFunc

deprecated: 3.10 

Declaration

gchar*
(* GtkTranslateFunc) (
  const gchar* path,
  gpointer func_data
)

Description [src]

The function used to translate messages in e.g. GtkIconFactory and GtkActionGroup.

Deprecated since: 3.10

Please do not use it in newly written code.

Parameters

path

Type: const gchar*

The id of the message. In GtkActionGroup this will be a label or tooltip from a GtkActionEntry.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
func_data

Type: gpointer

User data passed in when registering the function.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: gchar*

The translated message.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.