From: Philip Chimento 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-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=cadac2e895f7d5599e388f30b189c88639972327;p=rodin%2Fchimara.git Added gdk_thread_enter() and _leave() to glk_cancel_line_input(). Fix #38. git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@210 ddfedd41-794f-dd11-ae45-00112f111e67 --- 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)