Mercurial > pidgin.yaz
annotate pidgin/gtknickcolors.h @ 27475:57fdb7853fc7
Create a purple_markup_escape_text() function and use it in one place
in oscar. This function is identical to glib's g_markup_escape_text() except that
it does not replace ' with '
' is not a valid HTML entity in HTML 4, and IE7 displays it as the
raw characters and not as an apostrophe. gtk of course displays it as
an apostrophe, but gtk seems to have no problems with unescaped apostrophes
I really don't know why g_markup_escape_text() escapes this character.
So this change should not affect Pidgin at all, and it should help any
user of libpurple who displays our HTML in IE (or possibly other web
browsers--I'm not sure how webkit handles ')
Are people ok with this change? We should probably change a lot of other
places to use this function instead of the glib one. Basically anything
that converts text to html should use this. I think anything that escapes
XML should continue using g_markup_escape_text().
And entry_key_pressed() in Finch can be changed to use this instead of
g_markup_escape_text() and purple_strreplace()
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 06 Jul 2009 23:46:56 +0000 |
parents | 787b3897ba9f |
children |
rev | line source |
---|---|
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
1 /** |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
2 * @file gtknickcolors.h GTK+ Conversation API |
16193
247e421c4fa6
Rename the Doxygen group from gtkui to pidgin.
Richard Laager <rlaager@wiktel.com>
parents:
15871
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 |
15511 | 7 * Pidgin is the legal property of its developers, whose names are too numerous |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
8 * to list here. Please refer to the COPYRIGHT file distributed with this |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
9 * source distribution. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
10 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
11 * This program is free software; you can redistribute it and/or modify |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
12 * it under the terms of the GNU General Public License as published by |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
13 * the Free Software Foundation; either version 2 of the License, or |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
14 * (at your option) any later version. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
15 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
16 * This program is distributed in the hope that it will be useful, |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
19 * GNU General Public License for more details. |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
20 * |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
21 * You should have received a copy of the GNU General Public License |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
22 * 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:
16193
diff
changeset
|
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
24 */ |
15501
d75099d2567e
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@gmail.com>
parents:
15374
diff
changeset
|
25 #ifndef _PIDGINNICKCOLORS_H_ |
d75099d2567e
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@gmail.com>
parents:
15374
diff
changeset
|
26 #define _PIDGINNICKCOLORS_H_ |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
27 |
21015
787b3897ba9f
Patch from Andrew Gaul to constify a bunch of static variables to reduce
Ka-Hing Cheung <khc@hxbc.us>
parents:
20074
diff
changeset
|
28 static const GdkColor nick_seed_colors[] = { |
15513
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
29 {0, 64764, 59881, 20303}, /* Butter #1 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
30 {0, 60909, 54484, 0}, /* Butter #2 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
31 {0, 50372, 41120, 0}, /* Butter #3 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
32 {0, 64764, 44975, 15934}, /* Orange #1 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
33 {0, 62965, 31097, 0}, /* Orange #2 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
34 {0, 52942, 23644, 0}, /* Orange #3 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
35 {0, 59811, 47545, 28270}, /* Chocolate #1 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
36 {0, 49601, 32125, 4369}, /* Chocolate #2 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
37 {0, 36751, 22873, 514}, /* Chocolate #3 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
38 {0, 35466, 58082, 13364}, /* Chameleon #1 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
39 {0, 29555, 53970, 5654}, /* Chameleon #2 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
40 {0, 20046, 39578, 1542}, /* Chameleon #3 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
41 {0, 29289, 40863, 53199}, /* Sky Blue #1 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
42 {0, 13364, 25957, 42148}, /* Sky Blue #2 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
43 {0, 8224, 19018, 34695}, /* Sky Blue #3 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
44 {0, 44461, 32639, 43167}, /* Plum #1 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
45 {0, 30069, 20560, 31611}, /* Plum #2 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
46 {0, 23644, 13621, 26214}, /* Plum #3 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
47 {0, 61423, 10537, 10537}, /* Scarlet Red #1 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
48 {0, 52428, 0, 0}, /* Scarlet Red #2 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
49 {0, 42148, 0, 0}, /* Scarlet Red #3 */ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
50 {0, 34952, 35466, 34181}, /* Aluminium #4*/ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
51 {0, 21845, 22359, 21331}, /* Aluminium #5*/ |
7a47740aefaa
Tango colors for chats. I'm slightly ashamed to say we use 'butter' and 'plum.'
Sean Egan <seanegan@gmail.com>
parents:
15511
diff
changeset
|
52 {0, 11822, 13364, 13878} /* Aluminium #6*/ |
15374
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
53 }; |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
54 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
55 #define NUM_NICK_SEED_COLORS (sizeof(nick_seed_colors) / sizeof(nick_seed_colors[0])) |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
56 |
5fe8042783c1
Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff
changeset
|
57 #endif |