Replace functions which called once with their bodies
[pidgin-git.git] / pidgin / pidginstock.h
blobf271b89369f9e313cafd8216618d9b9bc5ffe82f
1 /* pidgin
3 * Pidgin is the legal property of its developers, whose names are too numerous
4 * to list here. Please refer to the COPYRIGHT file distributed with this
5 * source distribution.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
22 #ifndef _PIDGIN_STOCK_H_
23 #define _PIDGIN_STOCK_H_
24 /**
25 * SECTION:pidginstock
26 * @section_id: pidgin-pidginstock
27 * @short_description: <filename>pidginstock.h</filename>
28 * @title: Stock Resources
31 #include <gtk/gtk.h>
32 #include "gtkstatus-icon-theme.h"
34 /**************************************************************************/
35 /* Stock images */
36 /**************************************************************************/
38 #ifndef PIDGIN_STOCK_DISABLE
40 #define PIDGIN_STOCK_ACTION "pidgin-action"
41 #define PIDGIN_STOCK_ALIAS "pidgin-alias"
42 #define PIDGIN_STOCK_AWAY "pidgin-away"
43 #define PIDGIN_STOCK_CHAT "pidgin-chat"
44 #define PIDGIN_STOCK_CLEAR "pidgin-clear"
45 #define PIDGIN_STOCK_CLOSE_TABS "pidgin-close-tab"
46 #define PIDGIN_STOCK_DEBUG "pidgin-debug"
47 #define PIDGIN_STOCK_DISCONNECT "pidgin-disconnect"
48 #define PIDGIN_STOCK_DOWNLOAD "pidgin-download"
49 #define PIDGIN_STOCK_EDIT "pidgin-edit"
50 #define PIDGIN_STOCK_FGCOLOR "pidgin-fgcolor"
51 #define PIDGIN_STOCK_FILE_CANCELLED "pidgin-file-cancelled"
52 #define PIDGIN_STOCK_FILE_DONE "pidgin-file-done"
53 #define PIDGIN_STOCK_IGNORE "pidgin-ignore"
54 #define PIDGIN_STOCK_INFO "pidgin-info"
55 #define PIDGIN_STOCK_INVITE "pidgin-invite"
56 #define PIDGIN_STOCK_MODIFY "pidgin-modify"
57 #define PIDGIN_STOCK_ADD "pidgin-add"
58 #define PIDGIN_STOCK_OPEN_MAIL "pidgin-stock-open-mail"
59 #define PIDGIN_STOCK_PAUSE "pidgin-pause"
60 #define PIDGIN_STOCK_POUNCE "pidgin-pounce"
61 #define PIDGIN_STOCK_SIGN_OFF "pidgin-sign-off"
62 #define PIDGIN_STOCK_SIGN_ON "pidgin-sign-on"
63 #define PIDGIN_STOCK_TEXT_NORMAL "pidgin-text-normal"
64 #define PIDGIN_STOCK_TYPED "pidgin-typed"
65 #define PIDGIN_STOCK_UPLOAD "pidgin-upload"
66 #define PIDGIN_STOCK_NEXT "pidgin-next"
68 /* Status icons */
69 #define PIDGIN_STOCK_STATUS_AVAILABLE "pidgin-status-available"
70 #define PIDGIN_STOCK_STATUS_AVAILABLE_I "pidgin-status-available-i"
71 #define PIDGIN_STOCK_STATUS_AWAY "pidgin-status-away"
72 #define PIDGIN_STOCK_STATUS_AWAY_I "pidgin-status-away-i"
73 #define PIDGIN_STOCK_STATUS_BUSY "pidgin-status-busy"
74 #define PIDGIN_STOCK_STATUS_BUSY_I "pidgin-status-busy-i"
75 #define PIDGIN_STOCK_STATUS_CHAT "pidgin-status-chat"
76 #define PIDGIN_STOCK_STATUS_INVISIBLE "pidgin-status-invisible"
77 #define PIDGIN_STOCK_STATUS_XA "pidgin-status-xa"
78 #define PIDGIN_STOCK_STATUS_XA_I "pidgin-status-xa-i"
79 #define PIDGIN_STOCK_STATUS_LOGIN "pidgin-status-login"
80 #define PIDGIN_STOCK_STATUS_LOGOUT "pidgin-status-logout"
81 #define PIDGIN_STOCK_STATUS_OFFLINE "pidgin-status-offline"
82 #define PIDGIN_STOCK_STATUS_OFFLINE_I "pidgin-status-offline"
83 #define PIDGIN_STOCK_STATUS_PERSON "pidgin-status-person"
84 #define PIDGIN_STOCK_STATUS_MESSAGE "pidgin-status-message"
86 /* Chat room emblems */
87 #define PIDGIN_STOCK_STATUS_IGNORED "pidgin-status-ignored"
88 #define PIDGIN_STOCK_STATUS_FOUNDER "pidgin-status-founder"
89 #define PIDGIN_STOCK_STATUS_OPERATOR "pidgin-status-operator"
90 #define PIDGIN_STOCK_STATUS_HALFOP "pidgin-status-halfop"
91 #define PIDGIN_STOCK_STATUS_VOICE "pidgin-status-voice"
93 /* StatusBox Animations */
94 #define PIDGIN_STOCK_ANIMATION_CONNECT0 "pidgin-anim-connect0"
95 #define PIDGIN_STOCK_ANIMATION_CONNECT1 "pidgin-anim-connect1"
96 #define PIDGIN_STOCK_ANIMATION_CONNECT2 "pidgin-anim-connect2"
97 #define PIDGIN_STOCK_ANIMATION_CONNECT3 "pidgin-anim-connect3"
98 #define PIDGIN_STOCK_ANIMATION_CONNECT4 "pidgin-anim-connect4"
99 #define PIDGIN_STOCK_ANIMATION_CONNECT5 "pidgin-anim-connect5"
100 #define PIDGIN_STOCK_ANIMATION_CONNECT6 "pidgin-anim-connect6"
101 #define PIDGIN_STOCK_ANIMATION_CONNECT7 "pidgin-anim-connect7"
102 #define PIDGIN_STOCK_ANIMATION_CONNECT8 "pidgin-anim-connect8"
103 #define PIDGIN_STOCK_ANIMATION_CONNECT9 "pidgin-anim-connect9"
104 #define PIDGIN_STOCK_ANIMATION_CONNECT10 "pidgin-anim-connect10"
105 #define PIDGIN_STOCK_ANIMATION_CONNECT11 "pidgin-anim-connect11"
106 #define PIDGIN_STOCK_ANIMATION_CONNECT12 "pidgin-anim-connect12"
107 #define PIDGIN_STOCK_ANIMATION_CONNECT13 "pidgin-anim-connect13"
108 #define PIDGIN_STOCK_ANIMATION_CONNECT14 "pidgin-anim-connect14"
109 #define PIDGIN_STOCK_ANIMATION_CONNECT15 "pidgin-anim-connect15"
110 #define PIDGIN_STOCK_ANIMATION_CONNECT16 "pidgin-anim-connect16"
111 #define PIDGIN_STOCK_ANIMATION_CONNECT17 "pidgin-anim-connect17"
112 #define PIDGIN_STOCK_ANIMATION_CONNECT18 "pidgin-anim-connect18"
113 #define PIDGIN_STOCK_ANIMATION_CONNECT19 "pidgin-anim-connect19"
114 #define PIDGIN_STOCK_ANIMATION_CONNECT20 "pidgin-anim-connect20"
115 #define PIDGIN_STOCK_ANIMATION_CONNECT21 "pidgin-anim-connect21"
116 #define PIDGIN_STOCK_ANIMATION_CONNECT22 "pidgin-anim-connect22"
117 #define PIDGIN_STOCK_ANIMATION_CONNECT23 "pidgin-anim-connect23"
118 #define PIDGIN_STOCK_ANIMATION_CONNECT24 "pidgin-anim-connect24"
119 #define PIDGIN_STOCK_ANIMATION_CONNECT25 "pidgin-anim-connect25"
120 #define PIDGIN_STOCK_ANIMATION_CONNECT26 "pidgin-anim-connect26"
121 #define PIDGIN_STOCK_ANIMATION_CONNECT27 "pidgin-anim-connect27"
122 #define PIDGIN_STOCK_ANIMATION_CONNECT28 "pidgin-anim-connect28"
123 #define PIDGIN_STOCK_ANIMATION_CONNECT29 "pidgin-anim-connect29"
124 #define PIDGIN_STOCK_ANIMATION_CONNECT30 "pidgin-anim-connect30"
125 #define PIDGIN_STOCK_ANIMATION_TYPING0 "pidgin-anim-typing0"
126 #define PIDGIN_STOCK_ANIMATION_TYPING1 "pidgin-anim-typing1"
127 #define PIDGIN_STOCK_ANIMATION_TYPING2 "pidgin-anim-typing2"
128 #define PIDGIN_STOCK_ANIMATION_TYPING3 "pidgin-anim-typing3"
129 #define PIDGIN_STOCK_ANIMATION_TYPING4 "pidgin-anim-typing4"
130 #define PIDGIN_STOCK_ANIMATION_TYPING5 "pidgin-anim-typing5"
132 /* Toolbar (and menu) icons */
133 #define PIDGIN_STOCK_TOOLBAR_ACCOUNTS "pidgin-accounts"
134 #define PIDGIN_STOCK_TOOLBAR_BGCOLOR "pidgin-bgcolor"
135 #define PIDGIN_STOCK_TOOLBAR_BLOCK "pidgin-block"
136 #define PIDGIN_STOCK_TOOLBAR_FGCOLOR "pidgin-fgcolor"
137 #define PIDGIN_STOCK_TOOLBAR_SMILEY "pidgin-smiley"
138 #define PIDGIN_STOCK_TOOLBAR_FONT_FACE "pidgin-font-face"
139 #define PIDGIN_STOCK_TOOLBAR_TEXT_SMALLER "pidgin-text-smaller"
140 #define PIDGIN_STOCK_TOOLBAR_TEXT_LARGER "pidgin-text-larger"
141 #define PIDGIN_STOCK_TOOLBAR_INSERT "pidgin-insert"
142 #define PIDGIN_STOCK_TOOLBAR_INSERT_IMAGE "pidgin-insert-image"
143 #define PIDGIN_STOCK_TOOLBAR_INSERT_SCREENSHOT "pidgin-insert-screenshot"
144 #define PIDGIN_STOCK_TOOLBAR_INSERT_LINK "pidgin-insert-link"
145 #define PIDGIN_STOCK_TOOLBAR_MESSAGE_NEW "pidgin-message-new"
146 #define PIDGIN_STOCK_TOOLBAR_PENDING "pidgin-pending"
147 #define PIDGIN_STOCK_TOOLBAR_PLUGINS "pidgin-plugins"
148 #define PIDGIN_STOCK_TOOLBAR_TYPING "pidgin-typing"
149 #define PIDGIN_STOCK_TOOLBAR_USER_INFO "pidgin-info"
150 #define PIDGIN_STOCK_TOOLBAR_UNBLOCK "pidgin-unblock"
151 #define PIDGIN_STOCK_TOOLBAR_SELECT_AVATAR "pidgin-select-avatar"
152 #define PIDGIN_STOCK_TOOLBAR_SEND_FILE "pidgin-send-file"
153 #define PIDGIN_STOCK_TOOLBAR_TRANSFER "pidgin-transfer"
154 #ifdef USE_VV
155 #define PIDGIN_STOCK_TOOLBAR_AUDIO_CALL "pidgin-audio-call"
156 #define PIDGIN_STOCK_TOOLBAR_VIDEO_CALL "pidgin-video-call"
157 #define PIDGIN_STOCK_TOOLBAR_AUDIO_VIDEO_CALL "pidgin-audio-video-call"
158 #endif
159 #define PIDGIN_STOCK_TOOLBAR_SEND_ATTENTION "pidgin-send-attention"
161 /* Tray icons */
162 #define PIDGIN_STOCK_TRAY_AVAILABLE "pidgin-tray-available"
163 #define PIDGIN_STOCK_TRAY_INVISIBLE "pidgin-tray-invisible"
164 #define PIDGIN_STOCK_TRAY_AWAY "pidgin-tray-away"
165 #define PIDGIN_STOCK_TRAY_BUSY "pidgin-tray-busy"
166 #define PIDGIN_STOCK_TRAY_XA "pidgin-tray-xa"
167 #define PIDGIN_STOCK_TRAY_OFFLINE "pidgin-tray-offline"
168 #define PIDGIN_STOCK_TRAY_CONNECT "pidgin-tray-connect"
169 #define PIDGIN_STOCK_TRAY_PENDING "pidgin-tray-pending"
170 #define PIDGIN_STOCK_TRAY_EMAIL "pidgin-tray-email"
172 #endif /* PIDGIN_STOCK_DISABLE */
175 * For using icons that aren't one of the default GTK_ICON_SIZEs
177 #define PIDGIN_ICON_SIZE_TANGO_MICROSCOPIC "pidgin-icon-size-tango-microscopic"
178 #define PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL "pidgin-icon-size-tango-extra-small"
179 #define PIDGIN_ICON_SIZE_TANGO_SMALL "pidgin-icon-size-tango-small"
180 #define PIDGIN_ICON_SIZE_TANGO_MEDIUM "pidgin-icon-size-tango-medium"
181 #define PIDGIN_ICON_SIZE_TANGO_LARGE "pidgin-icon-size-tango-large"
182 #define PIDGIN_ICON_SIZE_TANGO_HUGE "pidgin-icon-size-tango-huge"
184 typedef struct _PidginStockIconTheme PidginStockIconTheme;
185 typedef struct _PidginStockIconThemeClass PidginStockIconThemeClass;
187 #define PIDGIN_TYPE_STOCK_ICON_THEME (pidgin_stock_icon_theme_get_type ())
188 #define PIDGIN_STOCK_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIDGIN_TYPE_STOCK_ICON_THEME, PidginStockIconTheme))
189 #define PIDGIN_STOCK_ICON_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PIDGIN_TYPE_STOCK_ICON_THEME, PidginStockIconThemeClass))
190 #define PIDGIN_IS_STOCK_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIDGIN_TYPE_STOCK_ICON_THEME))
191 #define PIDGIN_IS_STOCK_ICON_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIDGIN_TYPE_STOCK_ICON_THEME))
192 #define PIDGIN_STOCK_ICON_THEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PIDGIN_TYPE_STOCK_ICON_THEME, PidginStockIconThemeClass))
195 * PidginStockIconTheme:
197 * extends PidginIconTheme (gtkicon-theme.h)
198 * A pidgin stock icon theme.
199 * This object represents a Pidgin stock icon theme.
201 * PidginStockIconTheme is a PidginIconTheme Object.
203 struct _PidginStockIconTheme
205 PidginIconTheme parent;
208 struct _PidginStockIconThemeClass
210 PidginIconThemeClass parent_class;
213 G_BEGIN_DECLS
216 * pidgin_stock_icon_theme_get_type:
218 * Returns: The #GType for a stock icon theme.
220 GType pidgin_stock_icon_theme_get_type(void);
223 * pidgin_stock_load_status_icon_theme:
224 * @theme: the theme to load, or null to load all the default icons
226 * Loades all of the icons from the status icon theme into Pidgin stock
228 void pidgin_stock_load_status_icon_theme(PidginStatusIconTheme *theme);
231 void pidgin_stock_load_stock_icon_theme(PidginStockIconTheme *theme);
234 * pidgin_stock_init:
236 * Sets up the purple stock repository.
238 void pidgin_stock_init(void);
240 G_END_DECLS
242 #endif /* _PIDGIN_STOCK_H_ */