From: rodin Date: Wed, 5 May 2010 12:06:01 +0000 (+0000) Subject: Fixed invalid cast in garglk_set_reversevideo() X-Git-Tag: v0.9~199 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=26c1733935c1ec2f53b0c45d25db251221ad660d;p=projects%2Fchimara%2Fchimara.git Fixed invalid cast in garglk_set_reversevideo() --- diff --git a/libchimara/garglk.c b/libchimara/garglk.c index 1a657ec..181414e 100644 --- a/libchimara/garglk.c +++ b/libchimara/garglk.c @@ -203,6 +203,7 @@ garglk_set_reversevideo(glui32 reverse) g_return_if_fail(glk_data->current_stream != NULL); g_return_if_fail(glk_data->current_stream->window != NULL); - GtkTextTagTable *tags = gtk_text_buffer_get_tag_table( GTK_TEXT_BUFFER(glk_data->current_stream->window->widget) ); + GtkTextBuffer *buffer = gtk_text_view_get_buffer( GTK_TEXT_VIEW(glk_data->current_stream->window->widget) ); + GtkTextTagTable *tags = gtk_text_buffer_get_tag_table(buffer); gtk_text_tag_table_foreach( tags, apply_reverse_color, GINT_TO_POINTER(reverse) ); }