From 0922c5156436ca19d60c2c577f3ae549994904db Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Wed, 7 Oct 2009 21:02:05 +0000 Subject: [PATCH 1/1] 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 --- libchimara/style.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.30.2