1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
21 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
22 * file for a list of people on the GTK+ Team. See the ChangeLog
23 * files for a list of changes. These files are distributed with
24 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
27 #ifndef __GTK_STOCK_H__
28 #define __GTK_STOCK_H__
35 #endif /* __cplusplus */
37 typedef struct _GtkStockItem GtkStockItem;
43 GdkModifierType modifier;
45 gchar *translation_domain;
48 void gtk_stock_add (const GtkStockItem *item,
50 void gtk_stock_add_static (const GtkStockItem *item,
52 gboolean gtk_stock_lookup (const gchar *stock_id,
55 /* Should free the list, but DO NOT modify the items in the list.
56 * This function is only useful for GUI builders and such.
58 GSList* gtk_stock_list_items (void);
60 GtkStockItem *gtk_stock_item_copy (const GtkStockItem *item);
61 void gtk_stock_item_free (GtkStockItem *item);
65 #define GTK_STOCK_DIALOG_INFO "gtk-dialog-info"
66 #define GTK_STOCK_DIALOG_WARNING "gtk-dialog-warning"
67 #define GTK_STOCK_DIALOG_ERROR "gtk-dialog-error"
68 #define GTK_STOCK_DIALOG_QUESTION "gtk-dialog-question"
70 #define GTK_STOCK_BUTTON_APPLY "gtk-button-apply"
71 #define GTK_STOCK_BUTTON_OK "gtk-button-ok"
72 #define GTK_STOCK_BUTTON_CANCEL "gtk-button-cancel"
73 #define GTK_STOCK_BUTTON_CLOSE "gtk-button-close"
74 #define GTK_STOCK_BUTTON_YES "gtk-button-yes"
75 #define GTK_STOCK_BUTTON_NO "gtk-button-no"
77 #define GTK_STOCK_CLOSE "gtk-close"
78 #define GTK_STOCK_QUIT "gtk-quit"
79 #define GTK_STOCK_HELP "gtk-help"
80 #define GTK_STOCK_NEW "gtk-new"
81 #define GTK_STOCK_OPEN "gtk-open"
82 #define GTK_STOCK_SAVE "gtk-save"
86 #endif /* __cplusplus */
89 #endif /* __GTK_STOCK_H__ */