diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-02-03 17:46:40 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-02-03 17:46:40 +0000 |
commit | 45c38b44229f6a329bc1865e6b6b7347e21d8392 (patch) | |
tree | 48ee5d86a0679c6046baf60739b93e311c5d4284 /gtk/gtkstock.h | |
parent | 64768cae2a322c31fcfb798b5ef47996972f877f (diff) | |
download | gtk+-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.h | 5 |
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 \ |