Ardour  9.0-pre0-582-g084a23a80d
gtkstock.h
Go to the documentation of this file.
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 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
32 #error "Only <gtk/gtk.h> can be included directly."
33 #endif
34 
35 #include <gdk/gdk.h>
36 #include <gtk/gtktypeutils.h> /* for GtkTranslateFunc */
37 
38 G_BEGIN_DECLS
39 
40 typedef struct _GtkStockItem GtkStockItem;
41 
43 {
44  gchar *stock_id;
45  gchar *label;
47  guint keyval;
49 };
50 
51 void gtk_stock_add (const GtkStockItem *items,
52  guint n_items);
54  guint n_items);
55 gboolean gtk_stock_lookup (const gchar *stock_id,
56  GtkStockItem *item);
57 
58 /* Should free the list (and free each string in it also).
59  * This function is only useful for GUI builders and such.
60  */
61 GSList* gtk_stock_list_ids (void);
62 
65 
66 void gtk_stock_set_translate_func (const gchar *domain,
67  GtkTranslateFunc func,
68  gpointer data,
69  GDestroyNotify notify);
70 
71 /* Stock IDs (not all are stock items; some are images only) */
79 #define GTK_STOCK_ABOUT "gtk-about"
80 
86 #define GTK_STOCK_ADD "gtk-add"
87 
93 #define GTK_STOCK_APPLY "gtk-apply"
94 
100 #define GTK_STOCK_BOLD "gtk-bold"
101 
107 #define GTK_STOCK_CANCEL "gtk-cancel"
108 
116 #define GTK_STOCK_CAPS_LOCK_WARNING "gtk-caps-lock-warning"
117 
123 #define GTK_STOCK_CDROM "gtk-cdrom"
124 
130 #define GTK_STOCK_CLEAR "gtk-clear"
131 
137 #define GTK_STOCK_CLOSE "gtk-close"
138 
146 #define GTK_STOCK_COLOR_PICKER "gtk-color-picker"
147 
155 #define GTK_STOCK_CONNECT "gtk-connect"
156 
162 #define GTK_STOCK_CONVERT "gtk-convert"
163 
169 #define GTK_STOCK_COPY "gtk-copy"
170 
176 #define GTK_STOCK_CUT "gtk-cut"
177 
183 #define GTK_STOCK_DELETE "gtk-delete"
184 
192 #define GTK_STOCK_DIALOG_AUTHENTICATION "gtk-dialog-authentication"
193 
199 #define GTK_STOCK_DIALOG_INFO "gtk-dialog-info"
200 
206 #define GTK_STOCK_DIALOG_WARNING "gtk-dialog-warning"
207 
213 #define GTK_STOCK_DIALOG_ERROR "gtk-dialog-error"
214 
220 #define GTK_STOCK_DIALOG_QUESTION "gtk-dialog-question"
221 
229 #define GTK_STOCK_DIRECTORY "gtk-directory"
230 
238 #define GTK_STOCK_DISCARD "gtk-discard"
239 
247 #define GTK_STOCK_DISCONNECT "gtk-disconnect"
248 
254 #define GTK_STOCK_DND "gtk-dnd"
255 
261 #define GTK_STOCK_DND_MULTIPLE "gtk-dnd-multiple"
262 
270 #define GTK_STOCK_EDIT "gtk-edit"
271 
277 #define GTK_STOCK_EXECUTE "gtk-execute"
278 
286 #define GTK_STOCK_FILE "gtk-file"
287 
293 #define GTK_STOCK_FIND "gtk-find"
294 
300 #define GTK_STOCK_FIND_AND_REPLACE "gtk-find-and-replace"
301 
307 #define GTK_STOCK_FLOPPY "gtk-floppy"
308 
316 #define GTK_STOCK_FULLSCREEN "gtk-fullscreen"
317 
323 #define GTK_STOCK_GOTO_BOTTOM "gtk-goto-bottom"
324 
331 #define GTK_STOCK_GOTO_FIRST "gtk-goto-first"
332 
339 #define GTK_STOCK_GOTO_LAST "gtk-goto-last"
340 
346 #define GTK_STOCK_GOTO_TOP "gtk-goto-top"
347 
354 #define GTK_STOCK_GO_BACK "gtk-go-back"
355 
361 #define GTK_STOCK_GO_DOWN "gtk-go-down"
362 
369 #define GTK_STOCK_GO_FORWARD "gtk-go-forward"
370 
376 #define GTK_STOCK_GO_UP "gtk-go-up"
377 
385 #define GTK_STOCK_HARDDISK "gtk-harddisk"
386 
392 #define GTK_STOCK_HELP "gtk-help"
393 
399 #define GTK_STOCK_HOME "gtk-home"
400 
406 #define GTK_STOCK_INDEX "gtk-index"
407 
416 #define GTK_STOCK_INDENT "gtk-indent"
417 
425 #define GTK_STOCK_INFO "gtk-info"
426 
432 #define GTK_STOCK_ITALIC "gtk-italic"
433 
440 #define GTK_STOCK_JUMP_TO "gtk-jump-to"
441 
447 #define GTK_STOCK_JUSTIFY_CENTER "gtk-justify-center"
448 
454 #define GTK_STOCK_JUSTIFY_FILL "gtk-justify-fill"
455 
461 #define GTK_STOCK_JUSTIFY_LEFT "gtk-justify-left"
462 
468 #define GTK_STOCK_JUSTIFY_RIGHT "gtk-justify-right"
469 
477 #define GTK_STOCK_LEAVE_FULLSCREEN "gtk-leave-fullscreen"
478 
484 #define GTK_STOCK_MISSING_IMAGE "gtk-missing-image"
485 
494 #define GTK_STOCK_MEDIA_FORWARD "gtk-media-forward"
495 
504 #define GTK_STOCK_MEDIA_NEXT "gtk-media-next"
505 
513 #define GTK_STOCK_MEDIA_PAUSE "gtk-media-pause"
514 
523 #define GTK_STOCK_MEDIA_PLAY "gtk-media-play"
524 
533 #define GTK_STOCK_MEDIA_PREVIOUS "gtk-media-previous"
534 
542 #define GTK_STOCK_MEDIA_RECORD "gtk-media-record"
543 
552 #define GTK_STOCK_MEDIA_REWIND "gtk-media-rewind"
553 
561 #define GTK_STOCK_MEDIA_STOP "gtk-media-stop"
562 
570 #define GTK_STOCK_NETWORK "gtk-network"
571 
577 #define GTK_STOCK_NEW "gtk-new"
578 
584 #define GTK_STOCK_NO "gtk-no"
585 
591 #define GTK_STOCK_OK "gtk-ok"
592 
598 #define GTK_STOCK_OPEN "gtk-open"
599 
607 #define GTK_STOCK_ORIENTATION_PORTRAIT "gtk-orientation-portrait"
608 
616 #define GTK_STOCK_ORIENTATION_LANDSCAPE "gtk-orientation-landscape"
617 
625 #define GTK_STOCK_ORIENTATION_REVERSE_LANDSCAPE "gtk-orientation-reverse-landscape"
626 
634 #define GTK_STOCK_ORIENTATION_REVERSE_PORTRAIT "gtk-orientation-reverse-portrait"
635 
643 #define GTK_STOCK_PAGE_SETUP "gtk-page-setup"
644 
650 #define GTK_STOCK_PASTE "gtk-paste"
651 
657 #define GTK_STOCK_PREFERENCES "gtk-preferences"
658 
664 #define GTK_STOCK_PRINT "gtk-print"
665 
673 #define GTK_STOCK_PRINT_ERROR "gtk-print-error"
674 
682 #define GTK_STOCK_PRINT_PAUSED "gtk-print-paused"
683 
689 #define GTK_STOCK_PRINT_PREVIEW "gtk-print-preview"
690 
698 #define GTK_STOCK_PRINT_REPORT "gtk-print-report"
699 
700 
708 #define GTK_STOCK_PRINT_WARNING "gtk-print-warning"
709 
715 #define GTK_STOCK_PROPERTIES "gtk-properties"
716 
722 #define GTK_STOCK_QUIT "gtk-quit"
723 
730 #define GTK_STOCK_REDO "gtk-redo"
731 
737 #define GTK_STOCK_REFRESH "gtk-refresh"
738 
744 #define GTK_STOCK_REMOVE "gtk-remove"
745 
752 #define GTK_STOCK_REVERT_TO_SAVED "gtk-revert-to-saved"
753 
759 #define GTK_STOCK_SAVE "gtk-save"
760 
766 #define GTK_STOCK_SAVE_AS "gtk-save-as"
767 
775 #define GTK_STOCK_SELECT_ALL "gtk-select-all"
776 
782 #define GTK_STOCK_SELECT_COLOR "gtk-select-color"
783 
789 #define GTK_STOCK_SELECT_FONT "gtk-select-font"
790 
796 #define GTK_STOCK_SORT_ASCENDING "gtk-sort-ascending"
797 
803 #define GTK_STOCK_SORT_DESCENDING "gtk-sort-descending"
804 
810 #define GTK_STOCK_SPELL_CHECK "gtk-spell-check"
811 
817 #define GTK_STOCK_STOP "gtk-stop"
818 
824 #define GTK_STOCK_STRIKETHROUGH "gtk-strikethrough"
825 
832 #define GTK_STOCK_UNDELETE "gtk-undelete"
833 
839 #define GTK_STOCK_UNDERLINE "gtk-underline"
840 
847 #define GTK_STOCK_UNDO "gtk-undo"
848 
857 #define GTK_STOCK_UNINDENT "gtk-unindent"
858 
864 #define GTK_STOCK_YES "gtk-yes"
865 
871 #define GTK_STOCK_ZOOM_100 "gtk-zoom-100"
872 
878 #define GTK_STOCK_ZOOM_FIT "gtk-zoom-fit"
879 
885 #define GTK_STOCK_ZOOM_IN "gtk-zoom-in"
886 
892 #define GTK_STOCK_ZOOM_OUT "gtk-zoom-out"
893 
894 G_END_DECLS
895 
896 #endif /* __GTK_STOCK_H__ */
GdkModifierType
Definition: gdktypes.h:127
GSList * gtk_stock_list_ids(void)
gboolean gtk_stock_lookup(const gchar *stock_id, GtkStockItem *item)
GtkStockItem * gtk_stock_item_copy(const GtkStockItem *item)
typedefG_BEGIN_DECLS struct _GtkStockItem GtkStockItem
Definition: gtkstock.h:40
void gtk_stock_item_free(GtkStockItem *item)
void gtk_stock_add_static(const GtkStockItem *items, guint n_items)
void gtk_stock_add(const GtkStockItem *items, guint n_items)
void gtk_stock_set_translate_func(const gchar *domain, GtkTranslateFunc func, gpointer data, GDestroyNotify notify)
gchar *(* GtkTranslateFunc)(const gchar *path, gpointer func_data)
Definition: gtktypeutils.h:61
guint keyval
Definition: gtkstock.h:47
GdkModifierType modifier
Definition: gtkstock.h:46
gchar * translation_domain
Definition: gtkstock.h:48
gchar * label
Definition: gtkstock.h:45
gchar * stock_id
Definition: gtkstock.h:44