From: katzj Date: Mon, 25 Jun 2001 15:37:58 +0000 (+0000) Subject: 0.50.27 X-Git-Tag: r0-50-27~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c951ef73c0ffd124be34b802bf52f82e518a320;p=thirdparty%2Fnewt.git 0.50.27 fix bug in replace method of clistbox CListBox -> CListbox for API consistency --- diff --git a/configure.in b/configure.in index cd71037..5352fe5 100644 --- a/configure.in +++ b/configure.in @@ -5,7 +5,7 @@ AC_CONFIG_HEADER(config.h) VERSION=$(awk '/^%define version/ {print $3}' newt.spec) -VERSION=0.50.26 +VERSION=0.50.27 SONAME=0.50 AC_SUBST(VERSION) AC_SUBST(SONAME) diff --git a/newt.spec b/newt.spec index 55c85f9..185ad8f 100644 --- a/newt.spec +++ b/newt.spec @@ -1,6 +1,6 @@ Summary: A development library for text mode user interfaces. Name: newt -%define version 0.50.26 +%define version 0.50.27 Version: %{version} Release: 1 Copyright: LGPL @@ -105,6 +105,10 @@ rm -rf $RPM_BUILD_ROOT %endif %changelog +* Mon Jun 25 2001 Jeremy Katz +- ClistBox -> Clistbox for API consistency +- fixup replace() method of Clistbox + * Fri Jun 8 2001 Jeremy Katz - few bugfixes to the CListBox diff --git a/snack.py b/snack.py index aee8890..a10b2ff 100644 --- a/snack.py +++ b/snack.py @@ -589,7 +589,7 @@ def EntryWindow(screen, title, text, prompts, allowCancel = 1, width = 40, return (bb.buttonPressed(result), tuple(entryValues)) -class CListBox(Grid): +class CListbox(Grid): def __init__(self, height, cols, col_widths, scroll = 0, returnExit = 0, width = 0, col_pad = 1, col_text_align = None, col_labels = None, col_label_align = None): @@ -668,7 +668,7 @@ class CListBox(Grid): if col_text_align == None: col_text_align = self.col_text_align text = self.colFormText(col_text, col_text_align) - self.listbox.replace(text, item, before) + self.listbox.replace(text, item) def current(self): return self.listbox.current()