From 98440ad03190396bd2bef02557f8d41e12dd5795 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 4 Jan 2011 14:51:19 -0500 Subject: Remove gtktypeutils altogether MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on patches by Javier Jardón. https://bugzilla.gnome.org/show_bug.cgi?id=629955 --- gtk/gtkstock.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'gtk/gtkstock.h') diff --git a/gtk/gtkstock.h b/gtk/gtkstock.h index 57e4b8f227..b32d4b162f 100644 --- a/gtk/gtkstock.h +++ b/gtk/gtkstock.h @@ -33,10 +33,23 @@ #include -#include /* for GtkTranslateFunc */ G_BEGIN_DECLS +/* + * GtkTranslateFunc: + * @path: The id of the message. In #GtkActionGroup this will be a label + * or tooltip from a #GtkActionEntry. + * @func_data: user data passed in when registering the function + * + * The function used to translate messages in e.g. #GtkIconFactory + * and #GtkActionGroup. + * + * Returns: the translated message + */ +typedef gchar * (*GtkTranslateFunc) (const gchar *path, + gpointer func_data); + typedef struct _GtkStockItem GtkStockItem; struct _GtkStockItem -- cgit v1.2.1