try again
[claws.git] / src / gtk / colorlabel.h
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 2001 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 2 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, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19
20 #if !defined(COLORLABEL_H__)
21 #define COLORLABEL_H__
22
23 #include <glib.h>
24 #include <gtk/gtkimage.h>
25
26 #define COLORLABELS 7
27 #define MAINWIN_COLORMENU 0
28 #define SUMMARY_COLORMENU 1
29 #define NUM_MENUS 2
30
31 void colorlabel_update_colortable_from_prefs(void);
32 gint colorlabel_get_color_count                 (void);
33 GdkColor colorlabel_get_color                   (gint            color_index);
34 GdkColor colorlabel_get_default_color   (gint            color_index);
35 gchar *colorlabel_get_color_text                (gint            color_index);
36 gchar *colorlabel_get_color_default_text        (gint            color_index);
37 GtkImage *colorlabel_create_color_pixmap        (GdkColor        color);
38 gboolean colorlabel_changed                     (void);
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__ */