You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
Author: Alastair McKinstry <mckinstry@debian.org>
|
|
Description: newtInit() should only be called once
|
|
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557960
|
|
Forwarded: no
|
|
Last-Updated: 2014-06-11
|
|
|
|
--- a/snack.c
|
|
+++ b/snack.c
|
|
@@ -377,10 +377,15 @@ static snackWidget * snackWidgetNew (voi
|
|
}
|
|
|
|
static PyObject * initScreen(PyObject * s, PyObject * args) {
|
|
+ static int init_newt = 1;
|
|
suspend.cb = NULL;
|
|
suspend.data = NULL;
|
|
|
|
newtInit();
|
|
+ if (init_newt) {
|
|
+ newtInit();
|
|
+ init_newt = 0;
|
|
+ }
|
|
newtCls();
|
|
|
|
Py_INCREF(Py_None);
|