1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2013 Hiroyuki Yamamoto
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19 
20 #ifndef __STOCK_PIXMAP_H__
21 #define __STOCK_PIXMAP_H__
22 
23 #include <glib.h>
24 #include <gtk/gtkwidget.h>
25 
26 typedef enum
27 {
28 	STOCK_PIXMAP_ADDRESS,
29 	STOCK_PIXMAP_BOOK,
30 	STOCK_PIXMAP_CATEGORY,
31 	STOCK_PIXMAP_CLIP,
32 	STOCK_PIXMAP_COMPLETE,
33 	STOCK_PIXMAP_CONTINUE,
34 	STOCK_PIXMAP_DELETED,
35 	STOCK_PIXMAP_FOLDER_CLOSE,
36 	STOCK_PIXMAP_FOLDER_OPEN,
37 	STOCK_PIXMAP_FOLDER_NOSELECT,
38 	STOCK_PIXMAP_ERROR,
39 	STOCK_PIXMAP_FORWARDED,
40 	STOCK_PIXMAP_GROUP,
41 	STOCK_PIXMAP_HTML,
42 	STOCK_PIXMAP_INTERFACE,
43 	STOCK_PIXMAP_JPILOT,
44 	STOCK_PIXMAP_LDAP,
45 	STOCK_PIXMAP_LINEWRAP,
46 	STOCK_PIXMAP_MARK,
47 	STOCK_PIXMAP_NEW,
48 	STOCK_PIXMAP_REPLIED,
49 	STOCK_PIXMAP_UNREAD,
50 	STOCK_PIXMAP_VCARD,
51 	STOCK_PIXMAP_ONLINE,
52 	STOCK_PIXMAP_OFFLINE,
53 	STOCK_PIXMAP_MAIL_SMALL,
54 
55 	STOCK_PIXMAP_INBOX,
56 	STOCK_PIXMAP_OUTBOX,
57 	STOCK_PIXMAP_DRAFT,
58 	STOCK_PIXMAP_TRASH,
59 	STOCK_PIXMAP_MAIL,
60 	STOCK_PIXMAP_MAIL_ATTACH,
61 	STOCK_PIXMAP_MAIL_COMPOSE,
62 	STOCK_PIXMAP_MAIL_FORWARD,
63 	STOCK_PIXMAP_MAIL_RECEIVE,
64 	STOCK_PIXMAP_MAIL_RECEIVE_ALL,
65 	STOCK_PIXMAP_MAIL_REPLY,
66 	STOCK_PIXMAP_MAIL_REPLY_TO_ALL,
67 	STOCK_PIXMAP_MAIL_SEND,
68 	STOCK_PIXMAP_MAIL_SEND_QUEUE,
69 	STOCK_PIXMAP_INSERT_FILE,
70 	STOCK_PIXMAP_ADDRESS_BOOK,
71 	STOCK_PIXMAP_DELETE,
72 	STOCK_PIXMAP_SPAM,
73 	STOCK_PIXMAP_NOTSPAM,
74 	STOCK_PIXMAP_SIGN,
75 	STOCK_PIXMAP_SYLPHEED,
76 	STOCK_PIXMAP_SYLPHEED_SMALL,
77 	STOCK_PIXMAP_SYLPHEED_32,
78 	STOCK_PIXMAP_SYLPHEED_NEWMAIL,
79 	STOCK_PIXMAP_SYLPHEED_NEWMAIL_SMALL,
80 	STOCK_PIXMAP_SYLPHEED_LOGO,
81 	STOCK_PIXMAP_PERSON,
82 	STOCK_PIXMAP_FOLDER_SEARCH,
83 	STOCK_PIXMAP_SPAM_SMALL,
84 
85 	/* for toolbar */
86 
87 	STOCK_PIXMAP_REMOTE_MAILBOX,
88 	STOCK_PIXMAP_NEXT,
89 	STOCK_PIXMAP_PREV,
90 	STOCK_PIXMAP_SEARCH,
91 	STOCK_PIXMAP_PRINT,
92 	STOCK_PIXMAP_STOP,
93 	STOCK_PIXMAP_EXECUTE,
94 	STOCK_PIXMAP_COMMON_PREFS,
95 	STOCK_PIXMAP_ACCOUNT_PREFS,
96 	STOCK_PIXMAP_SAVE,
97 	STOCK_PIXMAP_EDIT,
98 
99 	N_STOCK_PIXMAPS
100 } StockPixmap;
101 
102 GtkWidget *stock_pixbuf_widget	(GtkWidget	 *window,
103 				 StockPixmap	  icon);
104 
105 GtkWidget *stock_pixbuf_widget_scale	(GtkWidget	*window,
106 					 StockPixmap	 icon,
107 					 gint		 width,
108 					 gint		 height);
109 
110 GtkWidget *stock_pixbuf_widget_for_toolbar(StockPixmap	 icon);
111 
112 gint stock_pixmap_gdk		(GtkWidget	 *window,
113 				 StockPixmap	  icon,
114 				 GdkPixmap	**pixmap,
115 				 GdkBitmap	**mask);
116 gint stock_pixbuf_gdk		(GtkWidget	 *window,
117 				 StockPixmap	  icon,
118 				 GdkPixbuf	**pixbuf);
119 
120 gint stock_pixbuf_set_theme_dir	(const gchar	*dir);
121 
122 #endif /* __STOCK_PIXMAP_H__ */
123