X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fstyle.h;h=614047342a4048af82d2c24b98b89005afb29415;hb=6bf471dcb4c7d0c36b67bed84097a88b26629258;hp=0cfbbdd010884a7db7de28222193d9233eb3361f;hpb=207745dc22dd7d17bcb7bf26ec991cc1ac8199ed;p=projects%2Fchimara%2Fchimara.git diff --git a/libchimara/style.h b/libchimara/style.h index 0cfbbdd..6140473 100644 --- a/libchimara/style.h +++ b/libchimara/style.h @@ -14,12 +14,13 @@ G_GNUC_INTERNAL void style_init(ChimaraGlk *glk); G_GNUC_INTERNAL void style_update(ChimaraGlk *glk); G_GNUC_INTERNAL const gchar** style_get_tag_names(); G_GNUC_INTERNAL void reset_default_styles(ChimaraGlk *glk); -/*G_GNUC_INTERNAL void copy_default_styles_to_current_styles(ChimaraGlk *glk);*/ G_GNUC_INTERNAL GScanner *create_css_file_scanner(void); G_GNUC_INTERNAL void scan_css_file(GScanner *scanner, ChimaraGlk *glk); G_GNUC_INTERNAL PangoFontDescription *get_current_font(guint32 wintype); G_GNUC_INTERNAL GtkTextTag* gtk_text_tag_copy(GtkTextTag *tag); G_GNUC_INTERNAL void glkcolor_to_gdkcolor(glui32 val, GdkColor *color); +G_GNUC_INTERNAL gchar* glkcolor_to_hex(glui32 val); +G_GNUC_INTERNAL gchar* gdkcolor_to_hex(GdkColor *color); G_GNUC_INTERNAL void style_stream_colors(strid_t str, GdkColor **foreground, GdkColor **background); typedef struct StyleSet { @@ -29,7 +30,7 @@ typedef struct StyleSet { #define CHIMARA_NUM_STYLES 13 -// #define DEBUG_STYLES +//#define DEBUG_STYLES #define ACTUAL_FG(tag) \ (GPOINTER_TO_INT( g_object_get_data(G_OBJECT((tag)), "reverse-color")) ? "background-gdk":"foreground-gdk")