From: Philip Chimento Date: Wed, 7 Oct 2009 21:02:05 +0000 (+0000) Subject: Fixed bug - glk_stylehint_set doesn't loop infinitely anymore X-Git-Url: https://git.stderr.nl/gitweb?p=rodin%2Fchimara.git;a=commitdiff_plain;h=0922c5156436ca19d60c2c577f3ae549994904db Fixed bug - glk_stylehint_set doesn't loop infinitely anymore git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@134 ddfedd41-794f-dd11-ae45-00112f111e67 --- diff --git a/libchimara/style.c b/libchimara/style.c index 2d00428..07a10fe 100644 --- a/libchimara/style.c +++ b/libchimara/style.c @@ -462,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 */