annotate pidgin/pidginstock-artwork.c @ 24236:e39cafdbe089

Only build SSL plugins if the corresponding library is present. Previously, stub versions of the plugins were built which refused to load if the corresponding library was missing, which seems ... unconventional to me.
author Will Thompson <will.thompson@collabora.co.uk>
date Sat, 25 Oct 2008 14:33:54 +0000
parents b3de98d0ba95
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23968
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
1 /**
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
2 * @file pidginstock.c GTK+ Stock resources
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
3 * @ingroup pidgin
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
4 */
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
5
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
6 /* pidgin
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
7 *
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
8 * Pidgin is the legal property of its developers, whose names are too numerous
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
9 * to list here. Please refer to the COPYRIGHT file distributed with this
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
10 * source distribution.
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
11 *
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
12 * This program is free software; you can redistribute it and/or modify
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
13 * it under the terms of the GNU General Public License as published by
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
14 * the Free Software Foundation; either version 2 of the License, or
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
15 * (at your option) any later version.
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
16 *
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
17 * This program is distributed in the hope that it will be useful,
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
20 * GNU General Public License for more details.
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
21 *
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
22 * You should have received a copy of the GNU General Public License
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
23 * along with this program; if not, write to the Free Software
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
25 *
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
26 */
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
27 #include "internal.h"
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
28 #include "pidgin.h"
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
29
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
30 #include "pidginstock.h"
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
31
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
32 static struct StockIcon
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
33 {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
34 const char *name;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
35 const char *dir;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
36 const char *filename;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
37
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
38 } const stock_icons[] =
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
39 {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
40 { PIDGIN_STOCK_ACTION, NULL, GTK_STOCK_EXECUTE },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
41 #if GTK_CHECK_VERSION(2,6,0)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
42 { PIDGIN_STOCK_ALIAS, NULL, GTK_STOCK_EDIT },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
43 #else
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
44 { PIDGIN_STOCK_ALIAS, "buttons", "edit.png" },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
45 #endif
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
46 { PIDGIN_STOCK_CHAT, NULL, GTK_STOCK_JUMP_TO },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
47 { PIDGIN_STOCK_CLEAR, NULL, GTK_STOCK_CLEAR },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
48 { PIDGIN_STOCK_CLOSE_TABS, NULL, GTK_STOCK_CLOSE },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
49 { PIDGIN_STOCK_DEBUG, NULL, GTK_STOCK_PROPERTIES },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
50 { PIDGIN_STOCK_DOWNLOAD, NULL, GTK_STOCK_GO_DOWN },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
51 #if GTK_CHECK_VERSION(2,6,0)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
52 { PIDGIN_STOCK_DISCONNECT, NULL, GTK_STOCK_DISCONNECT },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
53 #else
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
54 { PIDGIN_STOCK_DISCONNECT, "icons", "stock_disconnect_16.png" },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
55 #endif
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
56 { PIDGIN_STOCK_FGCOLOR, "buttons", "change-fgcolor-small.png" },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
57 #if GTK_CHECK_VERSION(2,6,0)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
58 { PIDGIN_STOCK_EDIT, NULL, GTK_STOCK_EDIT },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
59 #else
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
60 { PIDGIN_STOCK_EDIT, "buttons", "edit.png" },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
61 #endif
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
62 { PIDGIN_STOCK_FILE_CANCELED, NULL, GTK_STOCK_CANCEL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
63 { PIDGIN_STOCK_FILE_DONE, NULL, GTK_STOCK_APPLY },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
64 { PIDGIN_STOCK_IGNORE, NULL, GTK_STOCK_DIALOG_ERROR },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
65 { PIDGIN_STOCK_INVITE, NULL, GTK_STOCK_JUMP_TO },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
66 { PIDGIN_STOCK_MODIFY, NULL, GTK_STOCK_PREFERENCES },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
67 #if GTK_CHECK_VERSION(2,6,0)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
68 { PIDGIN_STOCK_PAUSE, NULL, GTK_STOCK_MEDIA_PAUSE },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
69 #else
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
70 { PIDGIN_STOCK_PAUSE, "buttons", "pause.png" },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
71 #endif
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
72 { PIDGIN_STOCK_POUNCE, NULL, GTK_STOCK_REDO },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
73 { PIDGIN_STOCK_OPEN_MAIL, NULL, GTK_STOCK_JUMP_TO },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
74 { PIDGIN_STOCK_SIGN_ON, NULL, GTK_STOCK_EXECUTE },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
75 { PIDGIN_STOCK_SIGN_OFF, NULL, GTK_STOCK_CLOSE },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
76 { PIDGIN_STOCK_TYPED, "pidgin", "typed.png" },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
77 { PIDGIN_STOCK_UPLOAD, NULL, GTK_STOCK_GO_UP },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
78 #if GTK_CHECK_VERSION(2,8,0)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
79 { PIDGIN_STOCK_INFO, NULL, GTK_STOCK_INFO },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
80 #else
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
81 { PIDGIN_STOCK_INFO, "buttons", "info.png" },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
82 #endif
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
83 };
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
84
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
85 static const GtkStockItem stock_items[] =
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
86 {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
87 { PIDGIN_STOCK_ALIAS, N_("_Alias"), 0, 0, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
88 { PIDGIN_STOCK_CHAT, N_("_Join"), 0, 0, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
89 { PIDGIN_STOCK_CLOSE_TABS, N_("Close _tabs"), 0, 0, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
90 { PIDGIN_STOCK_TOOLBAR_MESSAGE_NEW, N_("I_M"), 0, 0, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
91 { PIDGIN_STOCK_TOOLBAR_USER_INFO, N_("_Get Info"), 0, 0, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
92 { PIDGIN_STOCK_INVITE, N_("_Invite"), 0, 0, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
93 { PIDGIN_STOCK_MODIFY, N_("_Modify"), 0, 0, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
94 { PIDGIN_STOCK_OPEN_MAIL, N_("_Open Mail"), 0, 0, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
95 { PIDGIN_STOCK_PAUSE, N_("_Pause"), 0, 0, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
96 { PIDGIN_STOCK_EDIT, N_("_Edit"), 0, 0, NULL }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
97 };
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
98
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
99 static struct SizedStockIcon {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
100 const char *name;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
101 const char *dir;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
102 const char *filename;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
103 gboolean microscopic;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
104 gboolean extra_small;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
105 gboolean small;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
106 gboolean medium;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
107 gboolean large;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
108 gboolean huge;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
109 gboolean rtl;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
110 const char *translucent_name;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
111 } const sized_stock_icons [] = {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
112
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
113
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
114 /* Status icons */
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
115
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
116 { PIDGIN_STOCK_STATUS_AVAILABLE, "status", "pidgin-available.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, PIDGIN_STOCK_STATUS_AVAILABLE_I },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
117 { PIDGIN_STOCK_STATUS_AWAY, "status", "pidgin-away.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, PIDGIN_STOCK_STATUS_AWAY_I },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
118 { PIDGIN_STOCK_STATUS_BUSY, "status", "pidgin-busy.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, PIDGIN_STOCK_STATUS_BUSY_I },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
119 { PIDGIN_STOCK_STATUS_CHAT, "status", "pidgin-chat.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
120 { PIDGIN_STOCK_STATUS_INVISIBLE, "status", "pidgin-invisible.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
121 { PIDGIN_STOCK_STATUS_XA, "status", "pidgin-extended-away.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, PIDGIN_STOCK_STATUS_XA_I },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
122 { PIDGIN_STOCK_STATUS_LOGIN, "status", "pidgin-log-in.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
123 { PIDGIN_STOCK_STATUS_LOGOUT, "status", "pidgin-log-out.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
124 { PIDGIN_STOCK_STATUS_OFFLINE, "status", "pidgin-offline.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, PIDGIN_STOCK_STATUS_OFFLINE_I },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
125 { PIDGIN_STOCK_STATUS_PERSON, "status", "pidgin-person.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
126 { PIDGIN_STOCK_STATUS_MESSAGE, "actions", "pidgin-message-new.png", TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
127
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
128
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
129 /* Chatroom icons */
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
130
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
131 { PIDGIN_STOCK_STATUS_IGNORED, "status", "pidgin-blocked.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
132 { PIDGIN_STOCK_STATUS_FOUNDER, "status", "pidgin-founder.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
133 { PIDGIN_STOCK_STATUS_OPERATOR, "status", "pidgin-operator.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
134 { PIDGIN_STOCK_STATUS_HALFOP, "status", "pidgin-half-operator.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
135 { PIDGIN_STOCK_STATUS_VOICE, "status", "pidgin-voice.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
136
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
137
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
138 /* Dialog icons */
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
139
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
140 { PIDGIN_STOCK_DIALOG_AUTH, "status", "pidgin-auth.png", FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
141 { PIDGIN_STOCK_DIALOG_COOL, "status", "pidgin-cool.png", FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
142 { PIDGIN_STOCK_DIALOG_ERROR, "status", "pidgin-error.png", FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
143 { PIDGIN_STOCK_DIALOG_INFO, "status", "pidgin-info.png", FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
144 { PIDGIN_STOCK_DIALOG_MAIL, "status", "pidgin-mail.png", FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
145 { PIDGIN_STOCK_DIALOG_QUESTION, "status", "pidgin-question.png", FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
146 { PIDGIN_STOCK_DIALOG_WARNING, "status", "pidgin-warning.png", FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
147
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
148
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
149 /* Animations */
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
150
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
151 { PIDGIN_STOCK_ANIMATION_CONNECT0, "animations", "process-working0.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
152 { PIDGIN_STOCK_ANIMATION_CONNECT1, "animations", "process-working1.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
153 { PIDGIN_STOCK_ANIMATION_CONNECT2, "animations", "process-working2.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
154 { PIDGIN_STOCK_ANIMATION_CONNECT3, "animations", "process-working3.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
155 { PIDGIN_STOCK_ANIMATION_CONNECT4, "animations", "process-working4.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
156 { PIDGIN_STOCK_ANIMATION_CONNECT5, "animations", "process-working5.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
157 { PIDGIN_STOCK_ANIMATION_CONNECT6, "animations", "process-working6.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
158 { PIDGIN_STOCK_ANIMATION_CONNECT7, "animations", "process-working7.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
159 { PIDGIN_STOCK_ANIMATION_CONNECT8, "animations", "process-working8.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
160 { PIDGIN_STOCK_ANIMATION_CONNECT9, "animations", "process-working9.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
161 { PIDGIN_STOCK_ANIMATION_CONNECT10, "animations", "process-working10.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
162 { PIDGIN_STOCK_ANIMATION_CONNECT11, "animations", "process-working11.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
163 { PIDGIN_STOCK_ANIMATION_CONNECT12, "animations", "process-working12.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
164 { PIDGIN_STOCK_ANIMATION_CONNECT13, "animations", "process-working13.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
165 { PIDGIN_STOCK_ANIMATION_CONNECT14, "animations", "process-working14.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
166 { PIDGIN_STOCK_ANIMATION_CONNECT15, "animations", "process-working15.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
167 { PIDGIN_STOCK_ANIMATION_CONNECT16, "animations", "process-working16.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
168 { PIDGIN_STOCK_ANIMATION_CONNECT17, "animations", "process-working17.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
169 { PIDGIN_STOCK_ANIMATION_CONNECT18, "animations", "process-working18.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
170 { PIDGIN_STOCK_ANIMATION_CONNECT19, "animations", "process-working19.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
171 { PIDGIN_STOCK_ANIMATION_CONNECT20, "animations", "process-working20.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
172 { PIDGIN_STOCK_ANIMATION_CONNECT21, "animations", "process-working21.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
173 { PIDGIN_STOCK_ANIMATION_CONNECT22, "animations", "process-working22.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
174 { PIDGIN_STOCK_ANIMATION_CONNECT23, "animations", "process-working23.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
175 { PIDGIN_STOCK_ANIMATION_CONNECT24, "animations", "process-working24.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
176 { PIDGIN_STOCK_ANIMATION_CONNECT25, "animations", "process-working25.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
177 { PIDGIN_STOCK_ANIMATION_CONNECT26, "animations", "process-working26.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
178 { PIDGIN_STOCK_ANIMATION_CONNECT27, "animations", "process-working27.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
179 { PIDGIN_STOCK_ANIMATION_CONNECT28, "animations", "process-working28.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
180 { PIDGIN_STOCK_ANIMATION_CONNECT29, "animations", "process-working29.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
181 { PIDGIN_STOCK_ANIMATION_CONNECT30, "animations", "process-working30.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
182 { PIDGIN_STOCK_ANIMATION_TYPING0, "animations", "typing0.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
183 { PIDGIN_STOCK_ANIMATION_TYPING1, "animations", "typing1.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
184 { PIDGIN_STOCK_ANIMATION_TYPING2, "animations", "typing2.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
185 { PIDGIN_STOCK_ANIMATION_TYPING3, "animations", "typing3.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
186 { PIDGIN_STOCK_ANIMATION_TYPING4, "animations", "typing4.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
187 { PIDGIN_STOCK_ANIMATION_TYPING5, "animations", "typing5.png",FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
188
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
189
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
190 /* Conversation toolbar icons */
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
191
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
192 { PIDGIN_STOCK_TOOLBAR_BGCOLOR, "actions", "pidgin-change-bgcolor.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
193 { PIDGIN_STOCK_TOOLBAR_FGCOLOR, "actions", "pidgin-change-fgcolor.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
194 { PIDGIN_STOCK_TOOLBAR_TEXT_SMALLER, "actions", "pidgin-font-size-down.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
195 { PIDGIN_STOCK_TOOLBAR_TEXT_LARGER, "actions", "pidgin-font-size-up.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
196 { PIDGIN_STOCK_TOOLBAR_SMILEY, "actions", "pidgin-emote-select.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
197 { PIDGIN_STOCK_TOOLBAR_FONT_FACE, "actions", "pidgin-font-face.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
198 { PIDGIN_STOCK_TOOLBAR_INSERT, "actions", "pidgin-insert.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
199 { PIDGIN_STOCK_TOOLBAR_INSERT_IMAGE, "actions", "pidgin-insert-image.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
200 { PIDGIN_STOCK_TOOLBAR_INSERT_LINK, "actions", "pidgin-insert-link.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
201
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
202
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
203 /* Menu icons */
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
204
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
205 { PIDGIN_STOCK_TOOLBAR_BLOCK, "status", "pidgin-blocked.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
206 { PIDGIN_STOCK_TOOLBAR_MESSAGE_NEW, "actions", "pidgin-message-new.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
207 { PIDGIN_STOCK_TOOLBAR_PENDING, "status", "pidgin-tray-new-im.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
208 { PIDGIN_STOCK_TOOLBAR_PLUGINS, "actions", "pidgin-view-plugins.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
209 { PIDGIN_STOCK_TOOLBAR_UNBLOCK, "actions", "pidgin-unblock.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
210 { PIDGIN_STOCK_TOOLBAR_SELECT_AVATAR, "actions", "pidgin-select-avatar.png", FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
211 { PIDGIN_STOCK_TOOLBAR_SEND_FILE, "actions", "pidgin-send-file.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
212 { PIDGIN_STOCK_TOOLBAR_TRANSFER, "actions", "pidgin-view-transfer.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
213
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
214
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
215 /* Tray icons */
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
216
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
217 { PIDGIN_STOCK_TRAY_AVAILABLE, "status", "pidgin-tray-online.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
218 { PIDGIN_STOCK_TRAY_INVISIBLE, "status", "pidgin-tray-invisible.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
219 { PIDGIN_STOCK_TRAY_AWAY, "status", "pidgin-tray-away.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
220 { PIDGIN_STOCK_TRAY_BUSY, "status", "pidgin-tray-busy.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
221 { PIDGIN_STOCK_TRAY_XA, "status", "pidgin-tray-extended-away.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
222 { PIDGIN_STOCK_TRAY_OFFLINE, "status", "pidgin-tray-offline.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
223 { PIDGIN_STOCK_TRAY_CONNECT, "status", "pidgin-tray-connecting.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
224 { PIDGIN_STOCK_TRAY_PENDING, "status", "pidgin-tray-new-im.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL },
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
225 { PIDGIN_STOCK_TRAY_EMAIL, "status", "pidgin-tray-message.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
226
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
227 };
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
228
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
229 static gchar *
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
230 find_file(const char *dir, const char *base)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
231 {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
232 char *filename;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
233
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
234 if (base == NULL)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
235 return NULL;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
236
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
237 if (!strcmp(dir, "pidgin"))
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
238 filename = g_build_filename(DATADIR, "pixmaps", "pidgin", base, NULL);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
239 else
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
240 {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
241 filename = g_build_filename(DATADIR, "pixmaps", "pidgin", dir,
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
242 base, NULL);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
243 }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
244
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
245 return filename;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
246 }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
247
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
248 static void
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
249 add_sized_icon(GtkIconSet *iconset, GtkIconSize sizeid, const char *dir,
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
250 gboolean rtl, const char *size, const char *file)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
251 {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
252 char *filename;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
253 GtkIconSource *source;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
254
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
255 filename = g_build_filename(DATADIR, "pixmaps", "pidgin", dir, size, file, NULL);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
256 source = gtk_icon_source_new();
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
257 gtk_icon_source_set_filename(source, filename);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
258 gtk_icon_source_set_direction(source, GTK_TEXT_DIR_LTR);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
259 gtk_icon_source_set_direction_wildcarded(source, !rtl);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
260 gtk_icon_source_set_size(source, sizeid);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
261 gtk_icon_source_set_size_wildcarded(source, FALSE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
262 gtk_icon_source_set_state_wildcarded(source, TRUE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
263 gtk_icon_set_add_source(iconset, source);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
264 gtk_icon_source_free(source);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
265
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
266 if (sizeid == gtk_icon_size_from_name(PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL)) {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
267 source = gtk_icon_source_new();
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
268 gtk_icon_source_set_filename(source, filename);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
269 gtk_icon_source_set_direction_wildcarded(source, TRUE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
270 gtk_icon_source_set_size(source, GTK_ICON_SIZE_MENU);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
271 gtk_icon_source_set_size_wildcarded(source, FALSE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
272 gtk_icon_source_set_state_wildcarded(source, TRUE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
273 gtk_icon_set_add_source(iconset, source);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
274 gtk_icon_source_free(source);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
275 }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
276 g_free(filename);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
277
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
278 if (rtl) {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
279 filename = g_build_filename(DATADIR, "pixmaps", "pidgin", dir, size, "rtl", file, NULL);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
280 source = gtk_icon_source_new();
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
281 gtk_icon_source_set_filename(source, filename);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
282 gtk_icon_source_set_direction(source, GTK_TEXT_DIR_RTL);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
283 gtk_icon_source_set_size(source, sizeid);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
284 gtk_icon_source_set_size_wildcarded(source, FALSE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
285 gtk_icon_source_set_state_wildcarded(source, TRUE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
286 gtk_icon_set_add_source(iconset, source);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
287 g_free(filename);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
288 gtk_icon_source_free(source);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
289 }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
290
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
291
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
292 }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
293
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
294 /* Altered from do_colorshift in gnome-panel */
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
295 static void
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
296 do_alphashift (GdkPixbuf *dest, GdkPixbuf *src)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
297 {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
298 gint i, j;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
299 gint width, height, has_alpha, srcrowstride, destrowstride;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
300 guchar *target_pixels;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
301 guchar *original_pixels;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
302 guchar *pixsrc;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
303 guchar *pixdest;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
304 guchar a;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
305
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
306 has_alpha = gdk_pixbuf_get_has_alpha (src);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
307 if (!has_alpha)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
308 return;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
309
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
310 width = gdk_pixbuf_get_width (src);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
311 height = gdk_pixbuf_get_height (src);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
312 srcrowstride = gdk_pixbuf_get_rowstride (src);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
313 destrowstride = gdk_pixbuf_get_rowstride (dest);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
314 target_pixels = gdk_pixbuf_get_pixels (dest);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
315 original_pixels = gdk_pixbuf_get_pixels (src);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
316
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
317 for (i = 0; i < height; i++) {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
318 pixdest = target_pixels + i*destrowstride;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
319 pixsrc = original_pixels + i*srcrowstride;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
320 for (j = 0; j < width; j++) {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
321 *(pixdest++) = *(pixsrc++);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
322 *(pixdest++) = *(pixsrc++);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
323 *(pixdest++) = *(pixsrc++);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
324 a = *(pixsrc++);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
325 *(pixdest++) = a / 2;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
326 }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
327 }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
328 }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
329
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
330 /* TODO: This is almost certainly not the best way to do this, but it's late, I'm tired,
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
331 * we're a few hours from getting this thing out, and copy/paste is EASY.
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
332 */
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
333 static void
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
334 add_translucent_sized_icon(GtkIconSet *iconset, GtkIconSize sizeid, const char *dir,
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
335 gboolean rtl, const char *size, const char *file)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
336 {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
337 char *filename;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
338 GtkIconSource *source;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
339 GdkPixbuf *pixbuf;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
340
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
341 filename = g_build_filename(DATADIR, "pixmaps", "pidgin", dir, size, file, NULL);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
342 pixbuf = gdk_pixbuf_new_from_file(filename, NULL);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
343 do_alphashift(pixbuf, pixbuf);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
344
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
345 source = gtk_icon_source_new();
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
346 gtk_icon_source_set_pixbuf(source, pixbuf);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
347 gtk_icon_source_set_direction(source, GTK_TEXT_DIR_LTR);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
348 gtk_icon_source_set_direction_wildcarded(source, !rtl);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
349 gtk_icon_source_set_size(source, sizeid);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
350 gtk_icon_source_set_size_wildcarded(source, FALSE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
351 gtk_icon_source_set_state_wildcarded(source, TRUE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
352 gtk_icon_set_add_source(iconset, source);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
353 gtk_icon_source_free(source);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
354
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
355 if (sizeid == gtk_icon_size_from_name(PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL)) {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
356 source = gtk_icon_source_new();
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
357 gtk_icon_source_set_pixbuf(source, pixbuf);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
358 gtk_icon_source_set_direction_wildcarded(source, TRUE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
359 gtk_icon_source_set_size(source, GTK_ICON_SIZE_MENU);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
360 gtk_icon_source_set_size_wildcarded(source, FALSE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
361 gtk_icon_source_set_state_wildcarded(source, TRUE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
362 gtk_icon_set_add_source(iconset, source);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
363 gtk_icon_source_free(source);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
364 }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
365 g_free(filename);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
366 g_object_unref(pixbuf);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
367
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
368 if (rtl) {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
369 filename = g_build_filename(DATADIR, "pixmaps", "pidgin", dir, size, "rtl", file, NULL);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
370 pixbuf = gdk_pixbuf_new_from_file(filename, NULL);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
371 do_alphashift(pixbuf, pixbuf);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
372 source = gtk_icon_source_new();
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
373 gtk_icon_source_set_pixbuf(source, pixbuf);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
374 gtk_icon_source_set_direction(source, GTK_TEXT_DIR_RTL);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
375 gtk_icon_source_set_size(source, sizeid);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
376 gtk_icon_source_set_size_wildcarded(source, FALSE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
377 gtk_icon_source_set_state_wildcarded(source, TRUE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
378 gtk_icon_set_add_source(iconset, source);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
379 g_free(filename);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
380 g_object_unref(pixbuf);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
381 gtk_icon_source_free(source);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
382 }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
383
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
384
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
385 }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
386
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
387
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
388 void
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
389 pidgin_stock_init(void)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
390 {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
391 static gboolean stock_initted = FALSE;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
392 GtkIconFactory *icon_factory;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
393 size_t i;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
394 GtkWidget *win;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
395 GtkIconSize microscopic, extra_small, small, medium, large, huge;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
396
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
397 if (stock_initted)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
398 return;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
399
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
400 stock_initted = TRUE;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
401
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
402 /* Setup the icon factory. */
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
403 icon_factory = gtk_icon_factory_new();
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
404
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
405 gtk_icon_factory_add_default(icon_factory);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
406
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
407 /* Er, yeah, a hack, but it works. :) */
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
408 win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
409 gtk_widget_realize(win);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
410
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
411 for (i = 0; i < G_N_ELEMENTS(stock_icons); i++)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
412 {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
413 GtkIconSource *source;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
414 GtkIconSet *iconset;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
415 gchar *filename;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
416
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
417 if (stock_icons[i].dir == NULL)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
418 {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
419 /* GTK+ Stock icon */
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
420 iconset = gtk_style_lookup_icon_set(gtk_widget_get_style(win),
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
421 stock_icons[i].filename);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
422 }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
423 else
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
424 {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
425 filename = find_file(stock_icons[i].dir, stock_icons[i].filename);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
426
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
427 if (filename == NULL)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
428 continue;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
429
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
430 source = gtk_icon_source_new();
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
431 gtk_icon_source_set_filename(source, filename);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
432 gtk_icon_source_set_direction_wildcarded(source, TRUE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
433 gtk_icon_source_set_size_wildcarded(source, TRUE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
434 gtk_icon_source_set_state_wildcarded(source, TRUE);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
435
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
436
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
437 iconset = gtk_icon_set_new();
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
438 gtk_icon_set_add_source(iconset, source);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
439
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
440 gtk_icon_source_free(source);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
441 g_free(filename);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
442 }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
443
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
444 gtk_icon_factory_add(icon_factory, stock_icons[i].name, iconset);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
445
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
446 gtk_icon_set_unref(iconset);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
447 }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
448
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
449 /* register custom icon sizes */
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
450
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
451 microscopic = gtk_icon_size_register(PIDGIN_ICON_SIZE_TANGO_MICROSCOPIC, 11, 11);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
452 extra_small = gtk_icon_size_register(PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL, 16, 16);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
453 small = gtk_icon_size_register(PIDGIN_ICON_SIZE_TANGO_SMALL, 22, 22);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
454 medium = gtk_icon_size_register(PIDGIN_ICON_SIZE_TANGO_MEDIUM, 32, 32);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
455 large = gtk_icon_size_register(PIDGIN_ICON_SIZE_TANGO_LARGE, 48, 48);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
456 huge = gtk_icon_size_register(PIDGIN_ICON_SIZE_TANGO_HUGE, 64, 64);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
457
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
458 for (i = 0; i < G_N_ELEMENTS(sized_stock_icons); i++)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
459 {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
460 GtkIconSet *iconset;
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
461
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
462 iconset = gtk_icon_set_new();
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
463
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
464 #define ADD_SIZED_ICON(name, size) do { \
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
465 if (sized_stock_icons[i].name) \
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
466 add_sized_icon(iconset, name, \
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
467 sized_stock_icons[i].dir, sized_stock_icons[i].rtl, \
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
468 size, sized_stock_icons[i].filename); \
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
469 } while (0)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
470 ADD_SIZED_ICON(microscopic, "11");
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
471 ADD_SIZED_ICON(extra_small, "16");
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
472 ADD_SIZED_ICON(small, "22");
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
473 ADD_SIZED_ICON(medium, "32");
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
474 ADD_SIZED_ICON(large, "48");
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
475 ADD_SIZED_ICON(huge, "64");
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
476 #undef ADD_SIZED_ICON
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
477
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
478 gtk_icon_factory_add(icon_factory, sized_stock_icons[i].name, iconset);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
479 gtk_icon_set_unref(iconset);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
480
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
481 if (sized_stock_icons[i].translucent_name) {
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
482 iconset = gtk_icon_set_new();
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
483
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
484 #define ADD_TRANS_ICON(name, size) do { \
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
485 if (sized_stock_icons[i].name) \
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
486 add_translucent_sized_icon(iconset, name, \
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
487 sized_stock_icons[i].dir, sized_stock_icons[i].rtl, \
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
488 size, sized_stock_icons[i].filename); \
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
489 } while (0)
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
490 ADD_TRANS_ICON(microscopic, "11");
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
491 ADD_TRANS_ICON(extra_small, "16");
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
492 ADD_TRANS_ICON(small, "22");
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
493 ADD_TRANS_ICON(medium, "32");
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
494 ADD_TRANS_ICON(large, "48");
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
495 ADD_TRANS_ICON(huge, "64");
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
496 #undef ADD_TRANS_ICON
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
497
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
498 gtk_icon_factory_add(icon_factory, sized_stock_icons[i].translucent_name, iconset);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
499 gtk_icon_set_unref(iconset);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
500 }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
501 }
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
502
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
503 gtk_widget_destroy(win);
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
504 g_object_unref(G_OBJECT(icon_factory));
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
505
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
506 /* Register the stock items. */
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
507 gtk_stock_add_static(stock_items, G_N_ELEMENTS(stock_items));
b3de98d0ba95 Things still need to be adjusted here.
Hylke Bons <hylkebons@gmail.com>
parents:
diff changeset
508 }