X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fstyle.c;h=07a10fef638ecccb3404972014d9397aae776c31;hb=1410fe4a16ca30242deb8273a8c5867ebeb66b65;hp=61764a9020b5527bcad2432951628b4d5880888d;hpb=7de488aa6a1709a4d5c59b5ff59862105c1748c5;p=rodin%2Fchimara.git diff --git a/libchimara/style.c b/libchimara/style.c index 61764a9..07a10fe 100644 --- a/libchimara/style.c +++ b/libchimara/style.c @@ -4,6 +4,10 @@ extern GPrivate *glk_data_key; static gboolean chimara_style_initialized = FALSE; +static gboolean style_accept(GScanner *scanner, GTokenType token); +static gboolean style_accept_style_identifier(GScanner *scanner); +static gboolean style_accept_style_hint(GScanner *scanner, GtkTextTag *current_tag); +static void style_add_tag_to_textbuffer(gpointer key, gpointer tag, gpointer tag_table); /** * glk_set_style: @@ -458,8 +462,8 @@ glk_stylehint_set(glui32 wintype, glui32 styl, glui32 hint, glsi32 val) gchar *tag_name = get_tag_name(styl); /* Iterate over all the window and update their styles if nessecary */ - winid_t win = glk_window_iterate(NULL, NULL); - while(win != NULL) { + winid_t win; + for(win = glk_window_iterate(NULL, NULL); win; win = glk_window_iterate(win, NULL)) { if(wintype != wintype_TextBuffer) continue; /* FIXME: add support for text grid windows */