summaryrefslogtreecommitdiff
path: root/gtk/gtkstock.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-01-04 14:51:19 -0500
committerMatthias Clasen <mclasen@redhat.com>2011-01-04 14:51:19 -0500
commit98440ad03190396bd2bef02557f8d41e12dd5795 (patch)
treeaae5ba3fb370a66f1c1db629644e4f527c0568f3 /gtk/gtkstock.h
parent1283368b1bc93f6190d9aca92c433def60e73c55 (diff)
downloadgtk+-98440ad03190396bd2bef02557f8d41e12dd5795.tar.gz
Remove gtktypeutils altogether
Based on patches by Javier Jardón. https://bugzilla.gnome.org/show_bug.cgi?id=629955
Diffstat (limited to 'gtk/gtkstock.h')
-rw-r--r--gtk/gtkstock.h15
1 files changed, 14 insertions, 1 deletions
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 <gdk/gdk.h>
-#include <gtk/gtktypeutils.h> /* 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