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.

24 lines
576 B

  1. Author: Alastair McKinstry <mckinstry@debian.org>
  2. Description: newtInit() should only be called once
  3. Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557960
  4. Forwarded: no
  5. Last-Updated: 2014-06-11
  6. --- a/snack.c
  7. +++ b/snack.c
  8. @@ -377,10 +377,15 @@ static snackWidget * snackWidgetNew (voi
  9. }
  10. static PyObject * initScreen(PyObject * s, PyObject * args) {
  11. + static int init_newt = 1;
  12. suspend.cb = NULL;
  13. suspend.data = NULL;
  14. newtInit();
  15. + if (init_newt) {
  16. + newtInit();
  17. + init_newt = 0;
  18. + }
  19. newtCls();
  20. Py_INCREF(Py_None);