X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fstyle.c;h=07a10fef638ecccb3404972014d9397aae776c31;hb=1410fe4a16ca30242deb8273a8c5867ebeb66b65;hp=3f86bad2573b2f54565e6ef605b266c1183f03f9;hpb=2ce0ccd78003fce557bb76883c87ca2cb101608d;p=rodin%2Fchimara.git diff --git a/libchimara/style.c b/libchimara/style.c index 3f86bad..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 */ @@ -484,3 +488,9 @@ glk_style_distinguish(winid_t win, glui32 styl1, glui32 styl2) { return styl1 != styl2; } + +glui32 +glk_style_measure(winid_t win, glui32 styl, glui32 hint, glui32 *result) +{ + return FALSE; +}