Function

GtkTranslateFunc

Declaration

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

Description [src]

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

Parameters

path 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 string is a NUL terminated UTF-8 string.
func_data gpointer
 

User data passed in when registering the function.

Return value

Returns: gchar*
 

The translated message.

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