Package: python-newt
Version: 0.52.10-5ubuntu1
Severity: wishlist
Tags: patch
I've had this patch for a few years (since 0.52.2) and had forgotten about it
until I had a need to use python-newt again in a similar context. The patch
still applies to 0.52.10.
--Mike
-- System Information:
Debian Release: squeeze/sid
APT prefers lucid-updates
APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-25-generic (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-newt depends on:
ii libc6 2.11.1-0ubuntu7.4 Embedded GNU C Library: Shared lib
ii libnewt0.52 0.52.10-5ubuntu1 Not Erik's Windowing Toolkit - tex
ii python 2.6.5-0ubuntu1 An interactive high-level object-o
ii python-central 0.6.15ubuntu1 register and build utility for Pyt
python-newt recommends no packages.
python-newt suggests no packages.
-- no debconf information
diff -ruN newt-0.52.2-old/snackmodule.c newt-0.52.2/snackmodule.c
--- newt-0.52.2-old/snackmodule.c 2007-05-21 16:18:33.000000000 -0700
+++ newt-0.52.2/snackmodule.c 2007-05-21 16:20:17.000000000 -0700
@@ -843,7 +843,9 @@
static PyObject * formRun(snackForm * s, PyObject * args) {
struct newtExitStruct result;
+ Py_BEGIN_ALLOW_THREADS
newtFormRun(s->fo, &result);
+ Py_END_ALLOW_THREADS
if (result.reason == NEWT_EXIT_HOTKEY)
return Py_BuildValue("(si)", "hotkey", result.u.key);