summaryrefslogtreecommitdiff
path: root/gtk/gtkstock.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-02-03 17:46:40 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-02-03 17:46:40 +0000
commit45c38b44229f6a329bc1865e6b6b7347e21d8392 (patch)
tree48ee5d86a0679c6046baf60739b93e311c5d4284 /gtk/gtkstock.h
parent64768cae2a322c31fcfb798b5ef47996972f877f (diff)
downloadgtk+-45c38b44229f6a329bc1865e6b6b7347e21d8392.tar.gz
New function which allows to change the function used for translation
2005-02-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkstock.h: * gtk/gtkstock.c (gtk_stock_set_translate_func): New function which allows to change the function used for translation stock labels, on a per-domain basis. Use this functionality to switch the GTK+ stock items to use Q_() prefixed msgids. (#166179, Funda Wang)
Diffstat (limited to 'gtk/gtkstock.h')
-rw-r--r--gtk/gtkstock.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkstock.h b/gtk/gtkstock.h
index 419cc5075a..d079a1aa21 100644
--- a/gtk/gtkstock.h
+++ b/gtk/gtkstock.h
@@ -29,6 +29,7 @@
#include <gdk/gdk.h>
+#include <gtk/gtkitemfactory.h> /* for GtkTranslateFunc */
#ifdef __cplusplus
extern "C" {
@@ -60,6 +61,10 @@ GSList* gtk_stock_list_ids (void);
GtkStockItem *gtk_stock_item_copy (const GtkStockItem *item);
void gtk_stock_item_free (GtkStockItem *item);
+void gtk_stock_set_translate_func (const gchar *domain,
+ GtkTranslateFunc func,
+ gpointer data,
+ GtkDestroyNotify notify);
/* Stock IDs (not all are stock items; some are images only) */
#define GTK_STOCK_DIALOG_AUTHENTICATION \