From f050a41f279de90b5dd93bfc0df48606424a15cb Mon Sep 17 00:00:00 2001 From: Marijn van Vliet Date: Wed, 5 May 2010 12:06:01 +0000 Subject: [PATCH] Fixed invalid cast in garglk_set_reversevideo() git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@266 ddfedd41-794f-dd11-ae45-00112f111e67 --- libchimara/garglk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) ); } -- 2.30.2