Added gdk_thread_enter() and _leave() to glk_cancel_line_input(). Fix #38.
authorPhilip Chimento <philip.chimento@gmail.com>
Tue, 12 Jan 2010 20:52:30 +0000 (20:52 +0000)
committerPhilip Chimento <philip.chimento@gmail.com>
Tue, 12 Jan 2010 20:52:30 +0000 (20:52 +0000)
git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@210 ddfedd41-794f-dd11-ae45-00112f111e67

libchimara/input.c

index 9e7eea0cf533242cc7ccbc15f0ed82beefe9385c..86a9ff5f8e500b1a7807f5aa5e039d24d555b344 100644 (file)
@@ -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)