From: John Darrington Date: Wed, 15 Apr 2009 23:45:31 +0000 (+0800) Subject: Hold the thread lock in a timer callback X-Git-Tag: v0.7.3~158 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6a7921fd7f10c29f8bd22064a08e98fde240172;p=pspp-builds.git Hold the thread lock in a timer callback --- 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; }