From d6a7921fd7f10c29f8bd22064a08e98fde240172 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 16 Apr 2009 07:45:31 +0800 Subject: [PATCH] Hold the thread lock in a timer callback --- lib/gtk-contrib/psppire-sheet.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/gtk-contrib/psppire-sheet.c b/lib/gtk-contrib/psppire-sheet.c index 33e7b47a..3db8fd5b 100644 --- a/lib/gtk-contrib/psppire-sheet.c +++ b/lib/gtk-contrib/psppire-sheet.c @@ -3802,6 +3802,8 @@ motion_timeout_callback (gpointer data) PsppireSheet *sheet = PSPPIRE_SHEET (data); gint x, y; gint row, column; + + gdk_threads_enter (); gtk_widget_get_pointer (GTK_WIDGET (sheet), &x, &y); if ( psppire_sheet_get_pixel_info (sheet, x, y, &row, &column) ) @@ -3825,6 +3827,7 @@ motion_timeout_callback (gpointer data) } } + gdk_threads_leave (); return FALSE; } -- 2.30.2