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