ActionGroup.setTranslateFunc

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().

class ActionGroup
void
setTranslateFunc

Parameters

func GtkTranslateFunc

a #GtkTranslateFunc

data void*

data to be passed to @func and @notify

notify GDestroyNotify

a #GDestroyNotify function to be called when @action_group is destroyed and when the translation function is changed again

Meta