Sat, 18 Nov 2006 05:30:57 +0000
[gaim-migrate @ 17774]
The data for "plugin_action" is set with a destructor function. So freeing it
twice would cause a crash. The reason it's not crashing is, the children of the
container are not the menuitems, but GtkAccelLabel (or some such thing). So all
we are doing is freeing null. Also, when the menu is destroyed, all the
menuitems are also destroyed anyway. So get rid of the unrequired loop.
Also, isdigit expects a character, not a string.
| 12360 | 1 | /** |
| 2 | * @file gtknickcolors.h GTK+ Conversation API | |
| 3 | * @ingroup gtkui | |
| 4 | * | |
| 5 | * gaim | |
| 6 | * Gaim is the legal property of its developers, whose names are too numerous | |
| 7 | * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 8 | * source distribution. | |
| 9 | * | |
| 10 | * This program is free software; you can redistribute it and/or modify | |
| 11 | * it under the terms of the GNU General Public License as published by | |
| 12 | * the Free Software Foundation; either version 2 of the License, or | |
| 13 | * (at your option) any later version. | |
| 14 | * | |
| 15 | * This program is distributed in the hope that it will be useful, | |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 18 | * GNU General Public License for more details. | |
| 19 | * | |
| 20 | * You should have received a copy of the GNU General Public License | |
| 21 | * along with this program; if not, write to the Free Software | |
| 22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 23 | */ | |
| 24 | #ifndef _GAIM_GTKNICKCOLORS_H_ | |
| 25 | #define _GAIM_GTKNICKCOLORS_H_ | |
| 26 | ||
| 27 | static GdkColor nick_seed_colors[] = { | |
| 28 | {0, 47616, 46336, 43776}, /* Basic 3D Medium */ | |
| 29 | {0, 32768, 32000, 29696}, /* Basic 3D Dark */ | |
| 30 | {0, 22016, 20992, 18432}, /* 3D Shadow */ | |
| 31 | {0, 33536, 42496, 32512}, /* Green Medium */ | |
| 32 | {0, 23808, 29952, 21760}, /* Green Dark */ | |
| 33 | {0, 17408, 22016, 12800}, /* Green Shadow */ | |
| 34 | {0, 57344, 46592, 44800}, /* Red Hilight */ | |
| 35 | {0, 49408, 26112, 23040}, /* Red Medium */ | |
| 36 | {0, 34816, 17920, 12544}, /* Red Dark */ | |
| 37 | {0, 49408, 14336, 8704}, /* Red Shadow */ | |
| 38 | {0, 34816, 32512, 41728}, /* Purple Medium */ | |
| 39 | {0, 25088, 23296, 33024}, /* Purple Dark */ | |
| 40 | {0, 18688, 16384, 26112}, /* Purple Shadow */ | |
| 41 | {0, 40192, 47104, 53760}, /* Blue Hilight */ | |
| 42 | {0, 29952, 36864, 44544}, /* Blue Medium */ | |
| 43 | {0, 57344, 49920, 40448}, /* Face Skin Medium */ | |
| 44 | {0, 45824, 37120, 26880}, /* Face skin Dark */ | |
| 45 | {0, 33280, 26112, 18176}, /* Face Skin Shadow */ | |
| 46 | {0, 57088, 16896, 7680}, /* Accent Red */ | |
| 47 | {0, 39168, 0, 0}, /* Accent Red Dark */ | |
| 48 | {0, 17920, 40960, 17920}, /* Accent Green */ | |
| 49 | {0, 9728, 50944, 9728} /* Accent Green Dark */ | |
| 50 | }; | |
| 51 | ||
| 52 | #define NUM_NICK_SEED_COLORS (sizeof(nick_seed_colors) / sizeof(nick_seed_colors[0])) | |
| 53 | ||
| 54 | #endif |