Mercurial > pidgin.yaz
annotate pidgin/pidginstock.c @ 29509:b50ff312ac80
I wanted to bold this text and forgot to.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Sat, 03 Oct 2009 18:54:58 +0000 |
parents | 6e9917e067e6 |
children | 1446436616d4 |
rev | line source |
---|---|
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
1 /** |
15870
99b965aaf9bf
Install pixmaps to the right directories and make them load properly.
Richard Laager <rlaager@wiktel.com>
parents:
15823
diff
changeset
|
2 * @file pidginstock.c GTK+ Stock resources |
16193
247e421c4fa6
Rename the Doxygen group from gtkui to pidgin.
Richard Laager <rlaager@wiktel.com>
parents:
16007
diff
changeset
|
3 * @ingroup pidgin |
20074
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19680
diff
changeset
|
4 */ |
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19680
diff
changeset
|
5 |
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19680
diff
changeset
|
6 /* pidgin |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
7 * |
15870
99b965aaf9bf
Install pixmaps to the right directories and make them load properly.
Richard Laager <rlaager@wiktel.com>
parents:
15823
diff
changeset
|
8 * Pidgin is the legal property of its developers, whose names are too numerous |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
9 * to list here. Please refer to the COPYRIGHT file distributed with this |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
10 * source distribution. |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
11 * |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
12 * This program is free software; you can redistribute it and/or modify |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
13 * it under the terms of the GNU General Public License as published by |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
14 * the Free Software Foundation; either version 2 of the License, or |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
15 * (at your option) any later version. |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
16 * |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
17 * This program is distributed in the hope that it will be useful, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
20 * GNU General Public License for more details. |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
21 * |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
22 * You should have received a copy of the GNU General Public License |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
23 * along with this program; if not, write to the Free Software |
19680
44b4e8bd759b
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19503
diff
changeset
|
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
25 * |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
26 */ |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
27 #include "internal.h" |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
28 #include "pidgin.h" |
23694
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
29 #include "prefs.h" |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
30 |
25268
7ddaa405936e
renamed gtkblist-loader.[ch] to gtblist-theme-loader.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
25267
diff
changeset
|
31 #include "gtkicon-theme-loader.h" |
23694
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
32 #include "theme-manager.h" |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
33 |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
34 #include "pidginstock.h" |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
35 |
23694
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
36 /************************************************************************** |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
37 * Globals |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
38 **************************************************************************/ |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
39 |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
40 static gboolean stock_initted = FALSE; |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
41 static GtkIconSize microscopic, extra_small, small, medium, large, huge; |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
42 |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
43 /************************************************************************** |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
44 * Structures |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
45 **************************************************************************/ |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
46 |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
47 static struct StockIcon |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
48 { |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
49 const char *name; |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
50 const char *dir; |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
51 const char *filename; |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
52 |
23694
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
53 } const stock_icons[] = { |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
54 |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
55 { PIDGIN_STOCK_ACTION, NULL, GTK_STOCK_EXECUTE }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
56 { PIDGIN_STOCK_ALIAS, NULL, GTK_STOCK_EDIT }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
57 { PIDGIN_STOCK_CHAT, NULL, GTK_STOCK_JUMP_TO }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
58 { PIDGIN_STOCK_CLEAR, NULL, GTK_STOCK_CLEAR }, |
18822
8410abf85678
Remove reference to close-tab.png
Sean Egan <seanegan@gmail.com>
parents:
18797
diff
changeset
|
59 { PIDGIN_STOCK_CLOSE_TABS, NULL, GTK_STOCK_CLOSE }, |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
60 { PIDGIN_STOCK_DEBUG, NULL, GTK_STOCK_PROPERTIES }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
61 { PIDGIN_STOCK_DOWNLOAD, NULL, GTK_STOCK_GO_DOWN }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
62 { PIDGIN_STOCK_DISCONNECT, NULL, GTK_STOCK_DISCONNECT }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
63 { PIDGIN_STOCK_FGCOLOR, "buttons", "change-fgcolor-small.png" }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
64 { PIDGIN_STOCK_EDIT, NULL, GTK_STOCK_EDIT }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
65 { PIDGIN_STOCK_FILE_CANCELED, NULL, GTK_STOCK_CANCEL }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
66 { PIDGIN_STOCK_FILE_DONE, NULL, GTK_STOCK_APPLY }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
67 { PIDGIN_STOCK_IGNORE, NULL, GTK_STOCK_DIALOG_ERROR }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
68 { PIDGIN_STOCK_INVITE, NULL, GTK_STOCK_JUMP_TO }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
69 { PIDGIN_STOCK_MODIFY, NULL, GTK_STOCK_PREFERENCES }, |
24317
b948081819a6
Add an ellipsis to the "Add" and "Modify" buttons in the accounts, pounces, and
Alex Willmer <alex@moreati.org.uk>
parents:
23888
diff
changeset
|
70 { PIDGIN_STOCK_ADD, NULL, GTK_STOCK_ADD }, |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
71 { PIDGIN_STOCK_PAUSE, NULL, GTK_STOCK_MEDIA_PAUSE }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
72 { PIDGIN_STOCK_POUNCE, NULL, GTK_STOCK_REDO }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
73 { PIDGIN_STOCK_OPEN_MAIL, NULL, GTK_STOCK_JUMP_TO }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
74 { PIDGIN_STOCK_SIGN_ON, NULL, GTK_STOCK_EXECUTE }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
75 { PIDGIN_STOCK_SIGN_OFF, NULL, GTK_STOCK_CLOSE }, |
15870
99b965aaf9bf
Install pixmaps to the right directories and make them load properly.
Richard Laager <rlaager@wiktel.com>
parents:
15823
diff
changeset
|
76 { PIDGIN_STOCK_TYPED, "pidgin", "typed.png" }, |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
77 { PIDGIN_STOCK_UPLOAD, NULL, GTK_STOCK_GO_UP }, |
19503
2f0960548c1d
Make the gtkcert stuff compile on GTK+ older than 2.8
Daniel Atallah <daniel.atallah@gmail.com>
parents:
19473
diff
changeset
|
78 { PIDGIN_STOCK_INFO, NULL, GTK_STOCK_INFO }, |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
79 }; |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
80 |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
81 static const GtkStockItem stock_items[] = |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
82 { |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
83 { PIDGIN_STOCK_ALIAS, N_("_Alias"), 0, 0, NULL }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
84 { PIDGIN_STOCK_CHAT, N_("_Join"), 0, 0, NULL }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
85 { PIDGIN_STOCK_CLOSE_TABS, N_("Close _tabs"), 0, 0, NULL }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
86 { PIDGIN_STOCK_TOOLBAR_MESSAGE_NEW, N_("I_M"), 0, 0, NULL }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
87 { PIDGIN_STOCK_TOOLBAR_USER_INFO, N_("_Get Info"), 0, 0, NULL }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
88 { PIDGIN_STOCK_INVITE, N_("_Invite"), 0, 0, NULL }, |
24317
b948081819a6
Add an ellipsis to the "Add" and "Modify" buttons in the accounts, pounces, and
Alex Willmer <alex@moreati.org.uk>
parents:
23888
diff
changeset
|
89 { PIDGIN_STOCK_MODIFY, N_("_Modify..."), 0, 0, NULL }, |
b948081819a6
Add an ellipsis to the "Add" and "Modify" buttons in the accounts, pounces, and
Alex Willmer <alex@moreati.org.uk>
parents:
23888
diff
changeset
|
90 { PIDGIN_STOCK_ADD, N_("_Add..."), 0, 0, NULL }, |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
91 { PIDGIN_STOCK_OPEN_MAIL, N_("_Open Mail"), 0, 0, NULL }, |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
92 { PIDGIN_STOCK_PAUSE, N_("_Pause"), 0, 0, NULL }, |
23888
08c29b5b0ee8
Show 'Edit' instead of 'pidgin-edit' in the edit buttons. Fixes #6742
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
23881
diff
changeset
|
93 { PIDGIN_STOCK_EDIT, N_("_Edit"), 0, 0, NULL } |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
94 }; |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
95 |
26214 | 96 typedef struct { |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
97 const char *name; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
98 const char *dir; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
99 const char *filename; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
100 gboolean microscopic; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
101 gboolean extra_small; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
102 gboolean small; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
103 gboolean medium; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
104 gboolean large; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
105 gboolean huge; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
106 gboolean rtl; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
107 const char *translucent_name; |
26214 | 108 } SizedStockIcon; |
109 | |
110 const SizedStockIcon sized_stock_icons [] = { | |
111 | |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
112 { PIDGIN_STOCK_STATUS_IGNORED, "emblems", "blocked.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
113 { PIDGIN_STOCK_STATUS_FOUNDER, "emblems", "founder.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
114 { PIDGIN_STOCK_STATUS_OPERATOR, "emblems", "operator.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
115 { PIDGIN_STOCK_STATUS_HALFOP, "emblems", "half-operator.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
116 { PIDGIN_STOCK_STATUS_VOICE, "emblems", "voice.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
117 |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
118 { PIDGIN_STOCK_DIALOG_AUTH, "dialogs", "auth.png", FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
119 { PIDGIN_STOCK_DIALOG_COOL, "dialogs", "cool.png", FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
120 { PIDGIN_STOCK_DIALOG_ERROR, "dialogs", "error.png", FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
121 { PIDGIN_STOCK_DIALOG_INFO, "dialogs", "info.png", FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
122 { PIDGIN_STOCK_DIALOG_MAIL, "dialogs", "mail.png", FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
123 { PIDGIN_STOCK_DIALOG_QUESTION, "dialogs", "question.png", FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
124 { PIDGIN_STOCK_DIALOG_WARNING, "dialogs", "warning.png", FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, NULL }, |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
125 |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
126 { PIDGIN_STOCK_ANIMATION_CONNECT0, "animations", "process-working0.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
127 { PIDGIN_STOCK_ANIMATION_CONNECT1, "animations", "process-working1.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
128 { PIDGIN_STOCK_ANIMATION_CONNECT2, "animations", "process-working2.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
129 { PIDGIN_STOCK_ANIMATION_CONNECT3, "animations", "process-working3.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
130 { PIDGIN_STOCK_ANIMATION_CONNECT4, "animations", "process-working4.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
131 { PIDGIN_STOCK_ANIMATION_CONNECT5, "animations", "process-working5.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
132 { PIDGIN_STOCK_ANIMATION_CONNECT6, "animations", "process-working6.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
133 { PIDGIN_STOCK_ANIMATION_CONNECT7, "animations", "process-working7.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
134 { PIDGIN_STOCK_ANIMATION_CONNECT8, "animations", "process-working8.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
135 { PIDGIN_STOCK_ANIMATION_CONNECT9, "animations", "process-working9.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
136 { PIDGIN_STOCK_ANIMATION_CONNECT10, "animations", "process-working10.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
137 { PIDGIN_STOCK_ANIMATION_CONNECT11, "animations", "process-working11.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
138 { PIDGIN_STOCK_ANIMATION_CONNECT12, "animations", "process-working12.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
139 { PIDGIN_STOCK_ANIMATION_CONNECT13, "animations", "process-working13.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
140 { PIDGIN_STOCK_ANIMATION_CONNECT14, "animations", "process-working14.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
141 { PIDGIN_STOCK_ANIMATION_CONNECT15, "animations", "process-working15.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
142 { PIDGIN_STOCK_ANIMATION_CONNECT16, "animations", "process-working16.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
143 { PIDGIN_STOCK_ANIMATION_CONNECT17, "animations", "process-working17.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
144 { PIDGIN_STOCK_ANIMATION_CONNECT18, "animations", "process-working18.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
145 { PIDGIN_STOCK_ANIMATION_CONNECT19, "animations", "process-working19.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
146 { PIDGIN_STOCK_ANIMATION_CONNECT20, "animations", "process-working20.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
147 { PIDGIN_STOCK_ANIMATION_CONNECT21, "animations", "process-working21.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
148 { PIDGIN_STOCK_ANIMATION_CONNECT22, "animations", "process-working22.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
149 { PIDGIN_STOCK_ANIMATION_CONNECT23, "animations", "process-working23.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
150 { PIDGIN_STOCK_ANIMATION_CONNECT24, "animations", "process-working24.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
151 { PIDGIN_STOCK_ANIMATION_CONNECT25, "animations", "process-working25.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
152 { PIDGIN_STOCK_ANIMATION_CONNECT26, "animations", "process-working26.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
153 { PIDGIN_STOCK_ANIMATION_CONNECT27, "animations", "process-working27.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
154 { PIDGIN_STOCK_ANIMATION_CONNECT28, "animations", "process-working28.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
155 { PIDGIN_STOCK_ANIMATION_CONNECT29, "animations", "process-working29.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
156 { PIDGIN_STOCK_ANIMATION_CONNECT30, "animations", "process-working30.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
157 |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
158 { PIDGIN_STOCK_ANIMATION_TYPING0, "animations", "typing0.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
159 { PIDGIN_STOCK_ANIMATION_TYPING1, "animations", "typing1.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
160 { PIDGIN_STOCK_ANIMATION_TYPING2, "animations", "typing2.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
161 { PIDGIN_STOCK_ANIMATION_TYPING3, "animations", "typing3.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
162 { PIDGIN_STOCK_ANIMATION_TYPING4, "animations", "typing4.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
163 { PIDGIN_STOCK_ANIMATION_TYPING5, "animations", "typing5.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
164 |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
165 { PIDGIN_STOCK_TOOLBAR_BGCOLOR, "toolbar", "change-bgcolor.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
166 { PIDGIN_STOCK_TOOLBAR_BLOCK, "emblems", "blocked.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
167 { PIDGIN_STOCK_TOOLBAR_FGCOLOR, "toolbar", "change-fgcolor.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
168 { PIDGIN_STOCK_TOOLBAR_SMILEY, "toolbar", "emote-select.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
169 { PIDGIN_STOCK_TOOLBAR_FONT_FACE, "toolbar", "font-face.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
170 { PIDGIN_STOCK_TOOLBAR_TEXT_SMALLER, "toolbar", "font-size-down.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
171 { PIDGIN_STOCK_TOOLBAR_TEXT_LARGER, "toolbar", "font-size-up.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
172 { PIDGIN_STOCK_TOOLBAR_INSERT, "toolbar", "insert.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
173 { PIDGIN_STOCK_TOOLBAR_INSERT_IMAGE, "toolbar", "insert-image.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
174 { PIDGIN_STOCK_TOOLBAR_INSERT_LINK, "toolbar", "insert-link.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
175 { PIDGIN_STOCK_TOOLBAR_MESSAGE_NEW, "toolbar", "message-new.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
176 { PIDGIN_STOCK_TOOLBAR_PENDING, "toolbar", "message-new.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
177 { PIDGIN_STOCK_TOOLBAR_PLUGINS, "toolbar", "plugins.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
178 { PIDGIN_STOCK_TOOLBAR_UNBLOCK, "toolbar", "unblock.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
179 { PIDGIN_STOCK_TOOLBAR_SELECT_AVATAR, "toolbar", "select-avatar.png", FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
180 { PIDGIN_STOCK_TOOLBAR_SEND_FILE, "toolbar", "send-file.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
181 { PIDGIN_STOCK_TOOLBAR_TRANSFER, "toolbar", "transfer.png", FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
26214 | 182 #ifdef USE_VV |
27723
3418d175d4c6
Check in updated icons, logo, and new voice/video icons from Hylke.
Paul Aurich <paul@darkrain42.org>
parents:
27125
diff
changeset
|
183 { PIDGIN_STOCK_TOOLBAR_AUDIO_CALL, "toolbar", "audio-call.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL }, |
3418d175d4c6
Check in updated icons, logo, and new voice/video icons from Hylke.
Paul Aurich <paul@darkrain42.org>
parents:
27125
diff
changeset
|
184 { PIDGIN_STOCK_TOOLBAR_VIDEO_CALL, "toolbar", "video-call.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL }, |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
185 { PIDGIN_STOCK_TOOLBAR_AUDIO_VIDEO_CALL, "toolbar", "audio-video-call.png", FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
26214 | 186 #endif |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
187 }; |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
188 |
23694
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
189 const SizedStockIcon sized_status_icons [] = { |
16007
d64602bb59d2
block and unblock have the right icons now
Nathan Walp <nwalp@pidgin.im>
parents:
15870
diff
changeset
|
190 |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
191 { PIDGIN_STOCK_STATUS_AVAILABLE, "status", "available.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, PIDGIN_STOCK_STATUS_AVAILABLE_I }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
192 { PIDGIN_STOCK_STATUS_AWAY, "status", "away.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, PIDGIN_STOCK_STATUS_AWAY_I }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
193 { PIDGIN_STOCK_STATUS_BUSY, "status", "busy.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, PIDGIN_STOCK_STATUS_BUSY_I }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
194 { PIDGIN_STOCK_STATUS_CHAT, "status", "chat.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
195 { PIDGIN_STOCK_STATUS_INVISIBLE, "status", "invisible.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
196 { PIDGIN_STOCK_STATUS_XA, "status", "extended-away.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, TRUE, PIDGIN_STOCK_STATUS_XA_I }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
197 { PIDGIN_STOCK_STATUS_LOGIN, "status", "log-in.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, TRUE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
198 { PIDGIN_STOCK_STATUS_LOGOUT, "status", "log-out.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, TRUE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
199 { PIDGIN_STOCK_STATUS_OFFLINE, "status", "offline.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, PIDGIN_STOCK_STATUS_OFFLINE_I }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
200 { PIDGIN_STOCK_STATUS_PERSON, "status", "person.png", TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
201 { PIDGIN_STOCK_STATUS_MESSAGE, "toolbar", "message-new.png", TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL }, |
23694
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
202 |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
203 { PIDGIN_STOCK_TRAY_AVAILABLE, "tray", "tray-online.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
204 { PIDGIN_STOCK_TRAY_INVISIBLE, "tray", "tray-invisible.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
205 { PIDGIN_STOCK_TRAY_AWAY, "tray", "tray-away.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
206 { PIDGIN_STOCK_TRAY_BUSY, "tray", "tray-busy.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
207 { PIDGIN_STOCK_TRAY_XA, "tray", "tray-extended-away.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
208 { PIDGIN_STOCK_TRAY_OFFLINE, "tray", "tray-offline.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
209 { PIDGIN_STOCK_TRAY_CONNECT, "tray", "tray-connecting.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
210 { PIDGIN_STOCK_TRAY_PENDING, "tray", "tray-new-im.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL }, |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
211 { PIDGIN_STOCK_TRAY_EMAIL, "tray", "tray-message.png", FALSE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, NULL } |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
212 }; |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
213 |
23694
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
214 /***************************************************************************** |
25415
584063555949
Remove trailing whitespace
Mark Doliner <mark@kingant.net>
parents:
25344
diff
changeset
|
215 * Private functions |
23694
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
216 *****************************************************************************/ |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
217 |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
218 static gchar * |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
219 find_file_common(const char *name) |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
220 { |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
221 gchar *filename; |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
222 const gchar *userdir; |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
223 const gchar * const *sysdirs; |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
224 |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
225 userdir = g_get_user_data_dir(); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
226 filename = g_build_filename(userdir, name, NULL); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
227 if (g_file_test(filename, G_FILE_TEST_EXISTS)) |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
228 return filename; |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
229 g_free(filename); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
230 |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
231 sysdirs = g_get_system_data_dirs(); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
232 for (; *sysdirs; sysdirs++) { |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
233 filename = g_build_filename(*sysdirs, name, NULL); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
234 if (g_file_test(filename, G_FILE_TEST_EXISTS)) |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
235 return filename; |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
236 g_free(filename); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
237 } |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
238 filename = g_build_filename(DATADIR, name, NULL); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
239 if (g_file_test(filename, G_FILE_TEST_EXISTS)) |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
240 return filename; |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
241 g_free(filename); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
242 return NULL; |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
243 } |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
244 |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
245 static gchar * |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
246 find_file(const char *dir, const char *base) |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
247 { |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
248 char *filename; |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
249 char *ret; |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
250 |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
251 if (base == NULL) |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
252 return NULL; |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
253 |
15870
99b965aaf9bf
Install pixmaps to the right directories and make them load properly.
Richard Laager <rlaager@wiktel.com>
parents:
15823
diff
changeset
|
254 if (!strcmp(dir, "pidgin")) |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
255 filename = g_build_filename("pixmaps", "pidgin", base, NULL); |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
256 else |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
257 filename = g_build_filename("pixmaps", "pidgin", dir, base, NULL); |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
258 |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
259 ret = find_file_common(filename); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
260 g_free(filename); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
261 return ret; |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
262 } |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
263 |
26434
e23a74d7c97c
Get rid of the rest of the extraneous changes.
Mike Ruprecht <maiku@soc.pidgin.im>
parents:
26214
diff
changeset
|
264 |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
265 /* Altered from do_colorshift in gnome-panel */ |
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
266 static void |
23695
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
267 do_alphashift(GdkPixbuf *dest, GdkPixbuf *src) |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
268 { |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
269 gint i, j; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
270 gint width, height, has_alpha, srcrowstride, destrowstride; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
271 guchar *target_pixels; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
272 guchar *original_pixels; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
273 guchar *pixsrc; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
274 guchar *pixdest; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
275 guchar a; |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
276 |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
277 has_alpha = gdk_pixbuf_get_has_alpha (src); |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
278 if (!has_alpha) |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
279 return; |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
280 |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
281 width = gdk_pixbuf_get_width (src); |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
282 height = gdk_pixbuf_get_height (src); |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
283 srcrowstride = gdk_pixbuf_get_rowstride (src); |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
284 destrowstride = gdk_pixbuf_get_rowstride (dest); |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
285 target_pixels = gdk_pixbuf_get_pixels (dest); |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
286 original_pixels = gdk_pixbuf_get_pixels (src); |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
287 |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
288 for (i = 0; i < height; i++) { |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
289 pixdest = target_pixels + i*destrowstride; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
290 pixsrc = original_pixels + i*srcrowstride; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
291 for (j = 0; j < width; j++) { |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
292 *(pixdest++) = *(pixsrc++); |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
293 *(pixdest++) = *(pixsrc++); |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
294 *(pixdest++) = *(pixsrc++); |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
295 a = *(pixsrc++); |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
296 *(pixdest++) = a / 2; |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
297 } |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
298 } |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
299 } |
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
300 |
23695
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
301 static gchar * |
26664
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
302 find_icon_file(PidginIconTheme *theme, const gchar *size, SizedStockIcon sized_icon, gboolean rtl) |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
303 { |
23695
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
304 const gchar *file, *dir; |
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
305 gchar *file_full = NULL; |
25333
244863136504
Clean up the merge I just did.
Richard Laager <rlaager@wiktel.com>
parents:
25332
diff
changeset
|
306 gchar *tmp; |
23695
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
307 |
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
308 if (theme != NULL) { |
23702
9525fb966efb
theme loader cleanup, and remove a few warnings
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23700
diff
changeset
|
309 file = pidgin_icon_theme_get_icon(PIDGIN_ICON_THEME(theme), sized_icon.name); |
23695
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
310 dir = purple_theme_get_dir(PURPLE_THEME(theme)); |
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
311 |
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
312 if (rtl) |
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
313 file_full = g_build_filename(dir, size, "rtl", file, NULL); |
25332
9895d55d3877
explicit merge of 'a9579fef71ff6820f390a986132d30b079f590a0'
Richard Laager <rlaager@wiktel.com>
diff
changeset
|
314 else |
9895d55d3877
explicit merge of 'a9579fef71ff6820f390a986132d30b079f590a0'
Richard Laager <rlaager@wiktel.com>
diff
changeset
|
315 file_full = g_build_filename(dir, size, file, NULL); |
23695
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
316 |
25415
584063555949
Remove trailing whitespace
Mark Doliner <mark@kingant.net>
parents:
25344
diff
changeset
|
317 if (g_file_test(file_full, G_FILE_TEST_IS_REGULAR)) |
23695
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
318 return file_full; |
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
319 |
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
320 g_free(file_full); |
25332
9895d55d3877
explicit merge of 'a9579fef71ff6820f390a986132d30b079f590a0'
Richard Laager <rlaager@wiktel.com>
diff
changeset
|
321 } |
23695
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
322 |
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
323 if (rtl) |
25332
9895d55d3877
explicit merge of 'a9579fef71ff6820f390a986132d30b079f590a0'
Richard Laager <rlaager@wiktel.com>
diff
changeset
|
324 tmp = g_build_filename("pixmaps", "pidgin", sized_icon.dir, size, "rtl", sized_icon.filename, NULL); |
9895d55d3877
explicit merge of 'a9579fef71ff6820f390a986132d30b079f590a0'
Richard Laager <rlaager@wiktel.com>
diff
changeset
|
325 else |
9895d55d3877
explicit merge of 'a9579fef71ff6820f390a986132d30b079f590a0'
Richard Laager <rlaager@wiktel.com>
diff
changeset
|
326 tmp = g_build_filename("pixmaps", "pidgin", sized_icon.dir, size, sized_icon.filename, NULL); |
9895d55d3877
explicit merge of 'a9579fef71ff6820f390a986132d30b079f590a0'
Richard Laager <rlaager@wiktel.com>
diff
changeset
|
327 |
9895d55d3877
explicit merge of 'a9579fef71ff6820f390a986132d30b079f590a0'
Richard Laager <rlaager@wiktel.com>
diff
changeset
|
328 file_full = find_file_common(tmp); |
9895d55d3877
explicit merge of 'a9579fef71ff6820f390a986132d30b079f590a0'
Richard Laager <rlaager@wiktel.com>
diff
changeset
|
329 g_free(tmp); |
9895d55d3877
explicit merge of 'a9579fef71ff6820f390a986132d30b079f590a0'
Richard Laager <rlaager@wiktel.com>
diff
changeset
|
330 return file_full; |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
331 } |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
332 |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
333 static void |
26664
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
334 add_sized_icon(GtkIconSet *iconset, GtkIconSize sizeid, PidginIconTheme *theme, |
23695
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
335 const char *size, SizedStockIcon sized_icon, gboolean translucent) |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
336 { |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
337 char *filename; |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
338 GtkIconSource *source; |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
339 GdkPixbuf *pixbuf; |
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
340 |
23695
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
341 filename = find_icon_file(theme, size, sized_icon, FALSE); |
25332
9895d55d3877
explicit merge of 'a9579fef71ff6820f390a986132d30b079f590a0'
Richard Laager <rlaager@wiktel.com>
diff
changeset
|
342 g_return_if_fail(filename != NULL); |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
343 pixbuf = gdk_pixbuf_new_from_file(filename, NULL); |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
344 if (translucent) |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
345 do_alphashift(pixbuf, pixbuf); |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
346 |
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
347 source = gtk_icon_source_new(); |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
348 gtk_icon_source_set_pixbuf(source, pixbuf); |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
349 gtk_icon_source_set_direction(source, GTK_TEXT_DIR_LTR); |
25332
9895d55d3877
explicit merge of 'a9579fef71ff6820f390a986132d30b079f590a0'
Richard Laager <rlaager@wiktel.com>
diff
changeset
|
350 gtk_icon_source_set_direction_wildcarded(source, !sized_icon.rtl); |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
351 gtk_icon_source_set_size(source, sizeid); |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
352 gtk_icon_source_set_size_wildcarded(source, FALSE); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
353 gtk_icon_source_set_state_wildcarded(source, TRUE); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
354 gtk_icon_set_add_source(iconset, source); |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
355 gtk_icon_source_free(source); |
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
356 |
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
357 if (sizeid == gtk_icon_size_from_name(PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL)) { |
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
358 source = gtk_icon_source_new(); |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
359 gtk_icon_source_set_pixbuf(source, pixbuf); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
360 gtk_icon_source_set_direction_wildcarded(source, TRUE); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
361 gtk_icon_source_set_size(source, GTK_ICON_SIZE_MENU); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
362 gtk_icon_source_set_size_wildcarded(source, FALSE); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
363 gtk_icon_source_set_state_wildcarded(source, TRUE); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
364 gtk_icon_set_add_source(iconset, source); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
365 gtk_icon_source_free(source); |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
366 } |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
367 g_free(filename); |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
368 g_object_unref(pixbuf); |
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
369 |
25332
9895d55d3877
explicit merge of 'a9579fef71ff6820f390a986132d30b079f590a0'
Richard Laager <rlaager@wiktel.com>
diff
changeset
|
370 if (sized_icon.rtl) { |
23695
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
371 filename = find_icon_file(theme, size, sized_icon, TRUE); |
25332
9895d55d3877
explicit merge of 'a9579fef71ff6820f390a986132d30b079f590a0'
Richard Laager <rlaager@wiktel.com>
diff
changeset
|
372 g_return_if_fail(filename != NULL); |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
373 pixbuf = gdk_pixbuf_new_from_file(filename, NULL); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
374 if (translucent) |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
375 do_alphashift(pixbuf, pixbuf); |
23696
2753d96ed2bb
fized the icon diplay bug with the icon theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23695
diff
changeset
|
376 |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
377 source = gtk_icon_source_new(); |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
378 gtk_icon_source_set_pixbuf(source, pixbuf); |
25332
9895d55d3877
explicit merge of 'a9579fef71ff6820f390a986132d30b079f590a0'
Richard Laager <rlaager@wiktel.com>
diff
changeset
|
379 gtk_icon_source_set_filename(source, filename); |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
380 gtk_icon_source_set_direction(source, GTK_TEXT_DIR_RTL); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
381 gtk_icon_source_set_size(source, sizeid); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
382 gtk_icon_source_set_size_wildcarded(source, FALSE); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
383 gtk_icon_source_set_state_wildcarded(source, TRUE); |
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
384 gtk_icon_set_add_source(iconset, source); |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
385 g_free(filename); |
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
386 g_object_unref(pixbuf); |
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
387 gtk_icon_source_free(source); |
24411
de3b12b70b5f
Try to be more compliant with the freedesktop.org icon spec thingy with
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
24317
diff
changeset
|
388 } |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
389 } |
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
390 |
26722
c13c256c56c0
Reload settings after updating icon theme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26664
diff
changeset
|
391 static void |
c13c256c56c0
Reload settings after updating icon theme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26664
diff
changeset
|
392 reload_settings(void) |
c13c256c56c0
Reload settings after updating icon theme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26664
diff
changeset
|
393 { |
c13c256c56c0
Reload settings after updating icon theme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26664
diff
changeset
|
394 GtkSettings *setting = NULL; |
c13c256c56c0
Reload settings after updating icon theme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26664
diff
changeset
|
395 setting = gtk_settings_get_default(); |
c13c256c56c0
Reload settings after updating icon theme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26664
diff
changeset
|
396 gtk_rc_reset_styles(setting); |
c13c256c56c0
Reload settings after updating icon theme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26664
diff
changeset
|
397 } |
c13c256c56c0
Reload settings after updating icon theme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26664
diff
changeset
|
398 |
23694
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
399 /***************************************************************************** |
25415
584063555949
Remove trailing whitespace
Mark Doliner <mark@kingant.net>
parents:
25344
diff
changeset
|
400 * Public API functions |
23694
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
401 *****************************************************************************/ |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
402 |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
403 void |
23697
0bbfb20bad19
Clean up status icon themes a bit
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23696
diff
changeset
|
404 pidgin_stock_load_status_icon_theme(PidginStatusIconTheme *theme) |
23694
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
405 { |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
406 GtkIconFactory *icon_factory; |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
407 gint i; |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
408 GtkIconSet *normal; |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
409 GtkIconSet *translucent = NULL; |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
410 GtkWidget *win; |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
411 |
23700
2d436084d866
fixes initialize icon theme bug by pre-loading the theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23697
diff
changeset
|
412 if (theme != NULL) { |
25415
584063555949
Remove trailing whitespace
Mark Doliner <mark@kingant.net>
parents:
25344
diff
changeset
|
413 purple_prefs_set_string(PIDGIN_PREFS_ROOT "/status/icon-theme", |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
414 purple_theme_get_name(PURPLE_THEME(theme))); |
25415
584063555949
Remove trailing whitespace
Mark Doliner <mark@kingant.net>
parents:
25344
diff
changeset
|
415 purple_prefs_set_path(PIDGIN_PREFS_ROOT "/status/icon-theme-dir", |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
416 purple_theme_get_dir(PURPLE_THEME(theme))); |
23700
2d436084d866
fixes initialize icon theme bug by pre-loading the theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23697
diff
changeset
|
417 } |
2d436084d866
fixes initialize icon theme bug by pre-loading the theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23697
diff
changeset
|
418 else { |
2d436084d866
fixes initialize icon theme bug by pre-loading the theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23697
diff
changeset
|
419 purple_prefs_set_string(PIDGIN_PREFS_ROOT "/status/icon-theme", ""); |
2d436084d866
fixes initialize icon theme bug by pre-loading the theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23697
diff
changeset
|
420 purple_prefs_set_path(PIDGIN_PREFS_ROOT "/status/icon-theme-dir", ""); |
2d436084d866
fixes initialize icon theme bug by pre-loading the theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23697
diff
changeset
|
421 } |
25415
584063555949
Remove trailing whitespace
Mark Doliner <mark@kingant.net>
parents:
25344
diff
changeset
|
422 |
23694
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
423 icon_factory = gtk_icon_factory_new(); |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
424 |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
425 gtk_icon_factory_add_default(icon_factory); |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
426 |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
427 win = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
428 gtk_widget_realize(win); |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
429 |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
430 for (i = 0; i < G_N_ELEMENTS(sized_status_icons); i++) |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
431 { |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
432 normal = gtk_icon_set_new(); |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
433 if (sized_status_icons[i].translucent_name) |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
434 translucent = gtk_icon_set_new(); |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
435 |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
436 #define ADD_SIZED_ICON(name, size) \ |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
437 if (sized_status_icons[i].name) { \ |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
438 add_sized_icon(normal, name, PIDGIN_ICON_THEME(theme), size, sized_status_icons[i], FALSE); \ |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
439 if (sized_status_icons[i].translucent_name) \ |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
440 add_sized_icon(translucent, name, PIDGIN_ICON_THEME(theme), size, sized_status_icons[i], TRUE); \ |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
441 } |
23695
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
442 ADD_SIZED_ICON(microscopic, "11"); |
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
443 ADD_SIZED_ICON(extra_small, "16"); |
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
444 ADD_SIZED_ICON(small, "22"); |
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
445 ADD_SIZED_ICON(medium, "32"); |
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
446 ADD_SIZED_ICON(large, "48"); |
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
447 ADD_SIZED_ICON(huge, "64"); |
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
448 #undef ADD_SIZED_ICON |
23694
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
449 |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
450 gtk_icon_factory_add(icon_factory, sized_status_icons[i].name, normal); |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
451 gtk_icon_set_unref(normal); |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
452 |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
453 if (sized_status_icons[i].translucent_name) { |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
454 gtk_icon_factory_add(icon_factory, sized_status_icons[i].translucent_name, translucent); |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
455 gtk_icon_set_unref(translucent); |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
456 } |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
457 } |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
458 |
23694
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
459 gtk_widget_destroy(win); |
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
460 g_object_unref(G_OBJECT(icon_factory)); |
26722
c13c256c56c0
Reload settings after updating icon theme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26664
diff
changeset
|
461 reload_settings(); |
16436
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
462 } |
c0c5f07027ff
Don't use translucent pixmaps for idle, but apply transparency to icons in pidginstock.c
Sean Egan <seanegan@gmail.com>
parents:
16356
diff
changeset
|
463 |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
464 void |
26664
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
465 pidgin_stock_load_stock_icon_theme(PidginStockIconTheme *theme) |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
466 { |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
467 GtkIconFactory *icon_factory; |
26664
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
468 gint i; |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
469 GtkWidget *win; |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
470 |
26664
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
471 if (theme != NULL) { |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
472 purple_prefs_set_string(PIDGIN_PREFS_ROOT "/stock/icon-theme", |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
473 purple_theme_get_name(PURPLE_THEME(theme))); |
26664
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
474 purple_prefs_set_path(PIDGIN_PREFS_ROOT "/stock/icon-theme-dir", |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
475 purple_theme_get_dir(PURPLE_THEME(theme))); |
26664
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
476 } |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
477 else { |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
478 purple_prefs_set_string(PIDGIN_PREFS_ROOT "/stock/icon-theme", ""); |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
479 purple_prefs_set_path(PIDGIN_PREFS_ROOT "/stock/icon-theme-dir", ""); |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
480 } |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
481 |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
482 icon_factory = gtk_icon_factory_new(); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
483 |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
484 gtk_icon_factory_add_default(icon_factory); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
485 |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
486 win = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
487 gtk_widget_realize(win); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
488 |
23695
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
489 /* All non-sized icons */ |
26664
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
490 for (i = 0; i < G_N_ELEMENTS(stock_icons); i++) { |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
491 GtkIconSource *source; |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
492 GtkIconSet *iconset; |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
493 gchar *filename; |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
494 |
26664
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
495 if (stock_icons[i].dir == NULL) { |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
496 /* GTK+ Stock icon */ |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
497 iconset = gtk_style_lookup_icon_set(gtk_widget_get_style(win), |
21698
1d13939502cd
I find this less painful to the eyes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
20759
diff
changeset
|
498 stock_icons[i].filename); |
26664
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
499 } else { |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
500 filename = find_file(stock_icons[i].dir, stock_icons[i].filename); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
501 |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
502 if (filename == NULL) |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
503 continue; |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
504 |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
505 source = gtk_icon_source_new(); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
506 gtk_icon_source_set_filename(source, filename); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
507 gtk_icon_source_set_direction_wildcarded(source, TRUE); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
508 gtk_icon_source_set_size_wildcarded(source, TRUE); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
509 gtk_icon_source_set_state_wildcarded(source, TRUE); |
21698
1d13939502cd
I find this less painful to the eyes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
20759
diff
changeset
|
510 |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
511 iconset = gtk_icon_set_new(); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
512 gtk_icon_set_add_source(iconset, source); |
21698
1d13939502cd
I find this less painful to the eyes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
20759
diff
changeset
|
513 |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
514 gtk_icon_source_free(source); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
515 g_free(filename); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
516 } |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
517 |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
518 gtk_icon_factory_add(icon_factory, stock_icons[i].name, iconset); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
519 |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
520 gtk_icon_set_unref(iconset); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
521 } |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
522 |
23695
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
523 /* All non-status sized icons */ |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
524 for (i = 0; i < G_N_ELEMENTS(sized_stock_icons); i++) |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
525 { |
23695
f29e173320a7
Add the icon theme files, and re-work some things
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23694
diff
changeset
|
526 GtkIconSet *iconset = gtk_icon_set_new(); |
21698
1d13939502cd
I find this less painful to the eyes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
20759
diff
changeset
|
527 |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
528 #define ADD_SIZED_ICON(name, size) \ |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
529 if (sized_stock_icons[i].name) \ |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
530 add_sized_icon(iconset, name, PIDGIN_ICON_THEME(theme), size, sized_stock_icons[i], FALSE); |
21698
1d13939502cd
I find this less painful to the eyes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
20759
diff
changeset
|
531 ADD_SIZED_ICON(microscopic, "11"); |
1d13939502cd
I find this less painful to the eyes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
20759
diff
changeset
|
532 ADD_SIZED_ICON(extra_small, "16"); |
1d13939502cd
I find this less painful to the eyes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
20759
diff
changeset
|
533 ADD_SIZED_ICON(small, "22"); |
1d13939502cd
I find this less painful to the eyes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
20759
diff
changeset
|
534 ADD_SIZED_ICON(medium, "32"); |
1d13939502cd
I find this less painful to the eyes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
20759
diff
changeset
|
535 ADD_SIZED_ICON(large, "48"); |
1d13939502cd
I find this less painful to the eyes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
20759
diff
changeset
|
536 ADD_SIZED_ICON(huge, "64"); |
1d13939502cd
I find this less painful to the eyes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
20759
diff
changeset
|
537 #undef ADD_SIZED_ICON |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
538 |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
539 gtk_icon_factory_add(icon_factory, sized_stock_icons[i].name, iconset); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
540 gtk_icon_set_unref(iconset); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
541 } |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
542 |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
543 gtk_widget_destroy(win); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
544 g_object_unref(G_OBJECT(icon_factory)); |
26722
c13c256c56c0
Reload settings after updating icon theme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26664
diff
changeset
|
545 reload_settings(); |
26664
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
546 } |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
547 |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
548 void |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
549 pidgin_stock_init(void) |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
550 { |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
551 PidginIconThemeLoader *loader, *stockloader; |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
552 const gchar *path = NULL; |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
553 |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
554 if (stock_initted) |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
555 return; |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
556 |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
557 stock_initted = TRUE; |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
558 |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
559 /* Setup the status icon theme */ |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
560 loader = g_object_new(PIDGIN_TYPE_ICON_THEME_LOADER, "type", "status-icon", NULL); |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
561 purple_theme_manager_register_type(PURPLE_THEME_LOADER(loader)); |
28546
12dbf561b9c7
Call purple_prefs_add_none on the parents for the status and stock icon
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
28521
diff
changeset
|
562 purple_prefs_add_none(PIDGIN_PREFS_ROOT "/status"); |
26664
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
563 purple_prefs_add_string(PIDGIN_PREFS_ROOT "/status/icon-theme", ""); |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
564 purple_prefs_add_path(PIDGIN_PREFS_ROOT "/status/icon-theme-dir", ""); |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
565 |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
566 stockloader = g_object_new(PIDGIN_TYPE_ICON_THEME_LOADER, "type", "stock-icon", NULL); |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
567 purple_theme_manager_register_type(PURPLE_THEME_LOADER(stockloader)); |
28546
12dbf561b9c7
Call purple_prefs_add_none on the parents for the status and stock icon
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
28521
diff
changeset
|
568 purple_prefs_add_none(PIDGIN_PREFS_ROOT "/stock"); |
26664
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
569 purple_prefs_add_string(PIDGIN_PREFS_ROOT "/stock/icon-theme", ""); |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
570 purple_prefs_add_path(PIDGIN_PREFS_ROOT "/stock/icon-theme-dir", ""); |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
571 |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
572 /* register custom icon sizes */ |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
573 microscopic = gtk_icon_size_register(PIDGIN_ICON_SIZE_TANGO_MICROSCOPIC, 11, 11); |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
574 extra_small = gtk_icon_size_register(PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL, 16, 16); |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
575 small = gtk_icon_size_register(PIDGIN_ICON_SIZE_TANGO_SMALL, 22, 22); |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
576 medium = gtk_icon_size_register(PIDGIN_ICON_SIZE_TANGO_MEDIUM, 32, 32); |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
577 large = gtk_icon_size_register(PIDGIN_ICON_SIZE_TANGO_LARGE, 48, 48); |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
578 huge = gtk_icon_size_register(PIDGIN_ICON_SIZE_TANGO_HUGE, 64, 64); |
26664
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
579 |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
580 pidgin_stock_load_stock_icon_theme(NULL); |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
581 |
23703
1a4417138a8f
clean up formatting, and added render settings for the names/markup on the blist
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23702
diff
changeset
|
582 /* Pre-load Status icon theme - this avoids a bug with displaying the correct icon in the tray, theme is destroyed after*/ |
28521
011fe3d13658
I guess this pref name was changed but this one line was not. This would
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
27723
diff
changeset
|
583 if (purple_prefs_get_string(PIDGIN_PREFS_ROOT "/status/icon-theme") && |
23700
2d436084d866
fixes initialize icon theme bug by pre-loading the theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23697
diff
changeset
|
584 (path = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/status/icon-theme-dir"))) { |
25415
584063555949
Remove trailing whitespace
Mark Doliner <mark@kingant.net>
parents:
25344
diff
changeset
|
585 |
23702
9525fb966efb
theme loader cleanup, and remove a few warnings
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23700
diff
changeset
|
586 PidginStatusIconTheme *theme = PIDGIN_STATUS_ICON_THEME(purple_theme_loader_build(PURPLE_THEME_LOADER(loader), path)); |
23700
2d436084d866
fixes initialize icon theme bug by pre-loading the theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23697
diff
changeset
|
587 pidgin_stock_load_status_icon_theme(theme); |
28585
60ab4bdea3c3
Fix minor assert so I can run with G_DEBUG=fatal_criticals.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
28546
diff
changeset
|
588 if (theme) |
60ab4bdea3c3
Fix minor assert so I can run with G_DEBUG=fatal_criticals.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
28546
diff
changeset
|
589 g_object_unref(G_OBJECT(theme)); |
23700
2d436084d866
fixes initialize icon theme bug by pre-loading the theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23697
diff
changeset
|
590 |
27125
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
591 } |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
592 else |
e6ba07a72fd8
A few bits of whitespace changes...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26722
diff
changeset
|
593 pidgin_stock_load_status_icon_theme(NULL); |
23694
2d419a0fc0e4
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23282
diff
changeset
|
594 |
15822
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
595 /* Register the stock items. */ |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
596 gtk_stock_add_static(stock_items, G_N_ELEMENTS(stock_items)); |
84b0f9b23ede
According to etags, pidgin/ should be completely clean of references to 'gaim' as a client
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
597 } |
26664
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
598 |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
599 static void |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
600 pidgin_stock_icon_theme_class_init(PidginStockIconThemeClass *klass) |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
601 { |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
602 } |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
603 |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
604 GType |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
605 pidgin_stock_icon_theme_get_type(void) |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
606 { |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
607 static GType type = 0; |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
608 if (type == 0) { |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
609 static const GTypeInfo info = { |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
610 sizeof (PidginStockIconThemeClass), |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
611 NULL, /* base_init */ |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
612 NULL, /* base_finalize */ |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
613 (GClassInitFunc)pidgin_stock_icon_theme_class_init, /* class_init */ |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
614 NULL, /* class_finalize */ |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
615 NULL, /* class_data */ |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
616 sizeof (PidginStockIconTheme), |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
617 0, /* n_preallocs */ |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
618 NULL, |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
619 NULL, /* value table */ |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
620 }; |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
621 type = g_type_register_static(PIDGIN_TYPE_ICON_THEME, |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
622 "PidginStockIconTheme", &info, 0); |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
623 } |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
624 return type; |
5d71de58452c
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26607
diff
changeset
|
625 } |