StockItem.setTranslateFunc

Warning gtk_stock_set_translate_func is deprecated and should not be used in newly-written code. 3.10 Sets a function to be used for translating the label of a stock item. If no function is registered for a translation domain, g_dgettext() is used. The function is used for all stock items whose translation_domain matches domain. Note that it is possible to use strings different from the actual gettext translation domain of your application for this, as long as your GtkTranslateFunc uses the correct domain when calling dgettext(). This can be useful, e.g. Since 2.8

class StockItem
static
void
setTranslateFunc

Parameters

domain string

the translation domain for which func shall be used

func GtkTranslateFunc

a GtkTranslateFunc

data void*

data to pass to func

notify GDestroyNotify

a GDestroyNotify that is called when data is no longer needed

Meta