From: fliep Date: Tue, 12 Jan 2010 20:52:30 +0000 (+0000) Subject: Added gdk_thread_enter() and _leave() to glk_cancel_line_input(). Fix #38. X-Git-Tag: v0.9~255 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=079642166064d2bcdd828a6e32bcf00de454586f;p=projects%2Fchimara%2Fchimara.git Added gdk_thread_enter() and _leave() to glk_cancel_line_input(). Fix #38. --- diff --git a/libchimara/input.c b/libchimara/input.c index 9e7eea0..86a9ff5 100644 --- a/libchimara/input.c +++ b/libchimara/input.c @@ -368,6 +368,7 @@ glk_cancel_line_event(winid_t win, event_t *event) int chars_written = 0; + gdk_threads_enter(); if(win->type == wintype_TextGrid) { chars_written = finish_text_grid_line_input(win, FALSE); } else if(win->type == wintype_TextBuffer) { @@ -376,6 +377,7 @@ glk_cancel_line_event(winid_t win, event_t *event) g_signal_handler_block(window_buffer, win->insert_text_handler); chars_written = finish_text_buffer_line_input(win, FALSE); } + gdk_threads_leave(); ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key); if(glk_data->unregister_arr)