]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
- add back support for list of Entries in EntryWindow prompts in snack
authormlichvar <mlichvar>
Wed, 11 Jul 2007 17:00:28 +0000 (17:00 +0000)
committermlichvar <mlichvar>
Wed, 11 Jul 2007 17:00:28 +0000 (17:00 +0000)
newt.spec
snack.py

index d987be34e94939e61033b52d76e0ea42d665657c..537b83ba721f6c8b0920efe91fe4c5524cb9b9cf 100644 (file)
--- a/newt.spec
+++ b/newt.spec
@@ -88,6 +88,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libnewt.a
 
 %changelog
+- add back support for list of Entries in EntryWindow prompts in snack
 - fix segfault in whiptail when no entry is selected in radiolist
 
 * Fri Jun 15 2007 Miroslav Lichvar <mlichvar@redhat.com> - 0.52.7-1
index e763650c8212ab0cb422f4cf4eb6b93419a21c0c..fbd6ba896087c144db219c7a436b8510d05b0c5f 100644 (file)
--- a/snack.py
+++ b/snack.py
@@ -826,7 +826,8 @@ def EntryWindow(screen, title, text, prompts, allowCancel = 1, width = 40,
     for n in prompts:
         if (type(n) == types.TupleType):
             (n, e) = n
-            e = Entry(entryWidth, e)
+            if (type(e) in types.StringTypes):
+                e = Entry(entryWidth, e)
         else:
             e = Entry(entryWidth)