annotate src/gtknickcolors.h @ 13967:99b9b58b19dd

[gaim-migrate @ 16523] Fix a crazy MSN crash. Basically it's possible to have more than one slplink associated with a given switchboard, but our code did not allow for that. I think it happens when you're in a multi-user chat and you do stuff with multiple users that involves slplinks. Like maybe file transfer and buddy icon related stuff. Tracking this down took an ungodly amount of time, but thanks to Meebo for letting me do it :-) committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 20 Jul 2006 07:31:15 +0000
parents 3153661f4d5c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12360
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
1 /**
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
2 * @file gtknickcolors.h GTK+ Conversation API
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
3 * @ingroup gtkui
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
4 *
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
5 * gaim
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
6 * Gaim is the legal property of its developers, whose names are too numerous
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
7 * to list here. Please refer to the COPYRIGHT file distributed with this
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
8 * source distribution.
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
9 *
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
10 * This program is free software; you can redistribute it and/or modify
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
11 * it under the terms of the GNU General Public License as published by
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
12 * the Free Software Foundation; either version 2 of the License, or
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
13 * (at your option) any later version.
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
14 *
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
15 * This program is distributed in the hope that it will be useful,
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
18 * GNU General Public License for more details.
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
19 *
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
20 * You should have received a copy of the GNU General Public License
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
21 * along with this program; if not, write to the Free Software
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
23 */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
24 #ifndef _GAIM_GTKNICKCOLORS_H_
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
25 #define _GAIM_GTKNICKCOLORS_H_
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
26
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
27 static GdkColor nick_seed_colors[] = {
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
28 {0, 47616, 46336, 43776}, /* Basic 3D Medium */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
29 {0, 32768, 32000, 29696}, /* Basic 3D Dark */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
30 {0, 22016, 20992, 18432}, /* 3D Shadow */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
31 {0, 33536, 42496, 32512}, /* Green Medium */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
32 {0, 23808, 29952, 21760}, /* Green Dark */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
33 {0, 17408, 22016, 12800}, /* Green Shadow */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
34 {0, 57344, 46592, 44800}, /* Red Hilight */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
35 {0, 49408, 26112, 23040}, /* Red Medium */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
36 {0, 34816, 17920, 12544}, /* Red Dark */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
37 {0, 49408, 14336, 8704}, /* Red Shadow */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
38 {0, 34816, 32512, 41728}, /* Purple Medium */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
39 {0, 25088, 23296, 33024}, /* Purple Dark */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
40 {0, 18688, 16384, 26112}, /* Purple Shadow */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
41 {0, 40192, 47104, 53760}, /* Blue Hilight */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
42 {0, 29952, 36864, 44544}, /* Blue Medium */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
43 {0, 57344, 49920, 40448}, /* Face Skin Medium */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
44 {0, 45824, 37120, 26880}, /* Face skin Dark */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
45 {0, 33280, 26112, 18176}, /* Face Skin Shadow */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
46 {0, 57088, 16896, 7680}, /* Accent Red */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
47 {0, 39168, 0, 0}, /* Accent Red Dark */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
48 {0, 17920, 40960, 17920}, /* Accent Green */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
49 {0, 9728, 50944, 9728} /* Accent Green Dark */
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
50 };
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
51
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
52 #define NUM_NICK_SEED_COLORS (sizeof(nick_seed_colors) / sizeof(nick_seed_colors[0]))
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
53
3153661f4d5c [gaim-migrate @ 14664]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
54 #endif