]> Pileus Git - ~andy/gtk/blob - gtk/gtkstock.h
new function, turns off decorations for a window.
[~andy/gtk] / gtk / gtkstock.h
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 2000 Red Hat, Inc.
3  *
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.
8  *
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.
13  *
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.
18  */
19
20 /*
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/. 
25  */
26
27 #ifndef __GTK_STOCK_H__
28 #define __GTK_STOCK_H__
29
30
31 #include <gdk/gdk.h>
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif /* __cplusplus */
36
37 typedef struct _GtkStockItem GtkStockItem;
38
39 struct _GtkStockItem
40 {
41   gchar *stock_id;
42   gchar *label;
43   GdkModifierType modifier;
44   guint keyval;
45   gchar *translation_domain;
46 };
47
48 void     gtk_stock_add        (const GtkStockItem  *items,
49                                guint                n_items);
50 void     gtk_stock_add_static (const GtkStockItem  *items,
51                                guint                n_items);
52 gboolean gtk_stock_lookup     (const gchar         *stock_id,
53                                GtkStockItem        *item);
54
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.
57  */
58 GSList*  gtk_stock_list_items  (void);
59
60 GtkStockItem *gtk_stock_item_copy (const GtkStockItem *item);
61 void          gtk_stock_item_free (GtkStockItem       *item);
62
63
64 /* Stock IDs */
65 #define GTK_STOCK_MISSING_IMAGE    "gtk-missing-image"
66
67 #define GTK_STOCK_DIALOG_INFO      "gtk-dialog-info"
68 #define GTK_STOCK_DIALOG_WARNING   "gtk-dialog-warning"
69 #define GTK_STOCK_DIALOG_ERROR     "gtk-dialog-error"
70 #define GTK_STOCK_DIALOG_QUESTION  "gtk-dialog-question"
71
72 #define GTK_STOCK_BUTTON_APPLY     "gtk-button-apply"
73 #define GTK_STOCK_BUTTON_OK        "gtk-button-ok"
74 #define GTK_STOCK_BUTTON_CANCEL    "gtk-button-cancel"
75 #define GTK_STOCK_BUTTON_CLOSE     "gtk-button-close"
76 #define GTK_STOCK_BUTTON_YES       "gtk-button-yes"
77 #define GTK_STOCK_BUTTON_NO        "gtk-button-no"
78
79 #define GTK_STOCK_CLOSE            "gtk-close"
80 #define GTK_STOCK_QUIT             "gtk-quit"
81 #define GTK_STOCK_HELP             "gtk-help"
82 #define GTK_STOCK_NEW              "gtk-new"
83 #define GTK_STOCK_OPEN             "gtk-open"
84 #define GTK_STOCK_SAVE             "gtk-save"
85
86 #ifdef __cplusplus
87 }
88 #endif /* __cplusplus */
89
90
91 #endif /* __GTK_STOCK_H__ */