1 /* 2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client 3 * Copyright (C) 2001-2012 Hiroyuki Yamamoto & The Claws Mail Team 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 * 18 */ 19 20 #if !defined(COLORLABEL_H__) 21 #define COLORLABEL_H__ 22 23 #include <glib.h> 24 #include <gtk/gtk.h> 25 26 /* max value of color label index (0..max) - see also procmsg.h */ 27 #define COLORLABELS 15 28 29 #define MAINWIN_COLORMENU 0 30 #define SUMMARY_COLORMENU 1 31 #define NUM_MENUS 2 32 33 void colorlabel_update_colortable_from_prefs(void); 34 gint colorlabel_get_color_count (void); 35 GdkColor colorlabel_get_color (gint color_index); 36 GdkColor colorlabel_get_default_color (gint color_index); 37 gchar *colorlabel_get_color_default_text (gint color_index); 38 GtkImage *colorlabel_create_color_pixmap (GdkColor color); 39 GtkWidget *colorlabel_create_check_color_menu_item 40 (gint color_index, 41 gboolean force, 42 gint menu_index); 43 GtkWidget *colorlabel_create_color_menu (void); 44 guint colorlabel_get_color_menu_active_item (GtkWidget *menu); 45 46 #endif /* COLORLABEL_H__ */ 47