pidgin/gtknickcolors.h

Fri, 07 Dec 2018 13:18:54 -0600

author
Mike Ruprecht <cmaiku@gmail.com>
date
Fri, 07 Dec 2018 13:18:54 -0600
changeset 39417
33c59c3622b0
parent 38010
e7fe02862977
child 40502
875489636847
permissions
-rw-r--r--

gtkblist: Port plugin actions mostly off of GtkUIManager

Pidgin generates menu items in the buddy list from PurplePluginActions.
This patch ports these menu items off of the deprecated GtkUIManager
in favor of the GMenu API, except for getting the parent menu,
currently still generated with GtkUIManager. Once more of the buddy
list menu is ported to GMenu, this can be simplified some more.

/* pidgin
 * Pidgin is the legal property of its developers, whose names are too numerous
 * to list here.  Please refer to the COPYRIGHT file distributed with this
 * source distribution.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
 */

#ifndef _PIDGINNICKCOLORS_H_
#define _PIDGINNICKCOLORS_H_
/**
 * SECTION:gtknickcolors
 * @section_id: pidgin-gtknickcolors
 * @short_description: <filename>gtknickcolors.h</filename>
 * @title: Conversation Nick Colors
 */

static const GdkRGBA nick_seed_colors[] = {
	{64764/65535.0, 59881/65535.0, 20303/65535.0, 1},   /* Butter #1 */
	{60909/65535.0, 54484/65535.0,     0/65535.0, 1},   /* Butter #2 */
	{50372/65535.0, 41120/65535.0,     0/65535.0, 1},   /* Butter #3 */
	{64764/65535.0, 44975/65535.0, 15934/65535.0, 1},   /* Orange #1 */
	{62965/65535.0, 31097/65535.0,     0/65535.0, 1},   /* Orange #2 */
	{52942/65535.0, 23644/65535.0,     0/65535.0, 1},   /* Orange #3 */
	{59811/65535.0, 47545/65535.0, 28270/65535.0, 1},   /* Chocolate #1 */
	{49601/65535.0, 32125/65535.0,  4369/65535.0, 1},   /* Chocolate #2 */
	{36751/65535.0, 22873/65535.0,   514/65535.0, 1},   /* Chocolate #3 */
	{35466/65535.0, 58082/65535.0, 13364/65535.0, 1},   /* Chameleon #1 */
	{29555/65535.0, 53970/65535.0,  5654/65535.0, 1},   /* Chameleon #2 */
	{20046/65535.0, 39578/65535.0,  1542/65535.0, 1},   /* Chameleon #3 */
	{29289/65535.0, 40863/65535.0, 53199/65535.0, 1},   /* Sky Blue #1 */
	{13364/65535.0, 25957/65535.0, 42148/65535.0, 1},   /* Sky Blue #2 */
	{ 8224/65535.0, 19018/65535.0, 34695/65535.0, 1},   /* Sky Blue #3 */
	{44461/65535.0, 32639/65535.0, 43167/65535.0, 1},   /* Plum #1 */
	{30069/65535.0, 20560/65535.0, 31611/65535.0, 1},   /* Plum #2 */
	{23644/65535.0, 13621/65535.0, 26214/65535.0, 1},   /* Plum #3 */
	{61423/65535.0, 10537/65535.0, 10537/65535.0, 1},   /* Scarlet Red #1 */
	{52428/65535.0,     0/65535.0,     0/65535.0, 1},   /* Scarlet Red #2 */
	{42148/65535.0,     0/65535.0,     0/65535.0, 1},   /* Scarlet Red #3 */
	{34952/65535.0, 35466/65535.0, 34181/65535.0, 1},   /* Aluminium #4*/
	{21845/65535.0, 22359/65535.0, 21331/65535.0, 1},   /* Aluminium #5*/
	{11822/65535.0, 13364/65535.0, 13878/65535.0, 1}    /* Aluminium #6*/
};

#define PIDGIN_NUM_NICK_SEED_COLORS (sizeof(nick_seed_colors) / sizeof(nick_seed_colors[0]))

#endif

mercurial