X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkstock.h;h=0c60f6727a753f95ad2ee4e39981b7b5f619d3ff;hb=563eb60666d9f72c38d7542b0ab37841e6aac488;hp=57e4b8f227693af679bd0305a9fef89148d2f464;hpb=38fad431299bccd4a6c9154de131169852ca1a3a;p=~andy%2Fgtk diff --git a/gtk/gtkstock.h b/gtk/gtkstock.h index 57e4b8f22..0c60f6727 100644 --- a/gtk/gtkstock.h +++ b/gtk/gtkstock.h @@ -12,9 +12,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * License along with this library. If not, see . */ /* @@ -24,19 +22,32 @@ * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ -#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) -#error "Only can be included directly." -#endif - #ifndef __GTK_STOCK_H__ #define __GTK_STOCK_H__ +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + #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 @@ -306,7 +317,7 @@ void gtk_stock_set_translate_func (const gchar *domain, * GTK_STOCK_FILE: * * The "File" item. - * + * * * Since 3.0, this item has a label, before it only had an icon. * @@ -458,9 +469,9 @@ void gtk_stock_set_translate_func (const gchar *domain, * GTK_STOCK_INDENT: * * The "Indent" item. - * + * * RTL variant - * + * * * Since: 2.4 */