Method

GtkActionGroupset_translate_func

deprecated: 3.10 since: 2.4

Declaration [src]

void
gtk_action_group_set_translate_func (
  GtkActionGroup* action_group,
  GtkTranslateFunc func,
  gpointer data,
  GDestroyNotify notify
)

Description [src]

Sets a function to be used for translating the label and tooltip of GtkActionEntrys 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().

Available since: 2.4

Deprecated since: 3.10

Please do not use it in newly written code.

Parameters

func

Type: GtkTranslateFunc

A GtkTranslateFunc.

data

Type: gpointer

Data to be passed to func and notify.

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

Type: GDestroyNotify

A GDestroyNotify function to be called when action_group is destroyed and when the translation function is changed again.