Hello community,
here is the log from the commit of package newt
checked in at Wed Mar 7 23:15:31 CET 2007.
--------
--- newt/newt.changes 2007-02-14 19:39:11.000000000 +0100
+++ /mounts/work_src_done/STABLE/newt/newt.changes 2007-03-07 16:10:41.286579000 +0100
@@ -1,0 +2,8 @@
+Wed Mar 7 13:15:18 CET 2007 - lrupp@suse.de
+
+- update to 0.52.6:
+ + add newtSetColor() to allow changing individual colors
+ + add newtPopWindowNoRefresh() (patch by Forest Bond)
+- branched newt-static package containing static library
+
+-------------------------------------------------------------------
Old:
----
newt-0.52.5.tar.bz2
New:
----
newt-0.52.6.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ newt.spec ++++++
--- /var/tmp/diff_new_pack.X11330/_old 2007-03-07 23:14:16.000000000 +0100
+++ /var/tmp/diff_new_pack.X11330/_new 2007-03-07 23:14:16.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package newt (Version 0.52.5)
+# spec file for package newt (Version 0.52.6)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -14,7 +14,7 @@
BuildRequires: popt-devel python-devel slang-devel
URL: ftp://download.fedora.redhat.com/pub/fedora/linux/core/development/source/SRPMS/newt-0.52.4-2.fc7.src.rpm
Summary: Nifty Erik's Windowing Toolkit
-Version: 0.52.5
+Version: 0.52.6
Release: 1
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Group: System/Libraries
@@ -25,11 +25,15 @@
%{py_requires}
%package devel
Summary: Development files for the Newt windowing toolkit
-Provides: newtd
+Provides: newtd = %{version}
Requires: newt = %{version}
Requires: slang
Group: Development/Libraries/C and C++
Obsoletes: newtd <= %{version}
+%package static
+Summary: Nifty Erik's Windowing Toolkit
+Requires: newt-devel = %{version}
+Group: System/Libraries
%description
Newt is a programming library for color text-mode widget-based user
@@ -62,6 +66,22 @@
--------
Erik Troan
+
+%description static
+Newt is a programming library for color text-mode widget-based user
+interfaces. Newt can be used to add stacked windows, entry widgets,
+check boxes, radio buttons, labels, plain text fields, scrollbars,
+etc., to text mode user interfaces.
+
+This package also contains the shared library needed by programs built
+with newt, as well as a Dialog replacement called whiptail.
+
+
+
+Authors:
+--------
+ Erik Troan
+
%prep
%setup -q
@@ -102,10 +122,18 @@
%defattr (-,root,root)
%doc tutorial.sgml peanuts.py popcorn.py
%{_includedir}/newt.h
-%{_libdir}/libnewt.a
%{_libdir}/libnewt.so
-%changelog -n newt
+%files static
+%defattr (-,root,root)
+%{_libdir}/libnewt.a
+
+%changelog
+* Wed Mar 07 2007 - lrupp@suse.de
+- update to 0.52.6:
+ + add newtSetColor() to allow changing individual colors
+ + add newtPopWindowNoRefresh() (patch by Forest Bond)
+- branched newt-static package containing static library
* Wed Feb 14 2007 - lrupp@suse.de
- update to 0.52.5
+ provide option to change text of buttons (rh#126768)
++++++ newt-0.52.5.tar.bz2 -> newt-0.52.6.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/newt-0.52.5/Makefile.in new/newt-0.52.6/Makefile.in
--- old/newt-0.52.5/Makefile.in 2006-10-13 15:34:27.000000000 +0200
+++ new/newt-0.52.6/Makefile.in 2007-03-02 13:00:51.000000000 +0100
@@ -69,11 +69,9 @@
_snackmodule.so: snackmodule.c $(LIBNEWTSH)
for ver in $(PYTHONVERS) ; do \
- if [ ! -f "$$ver/_snackmodule.so" -o $(LIBNEWTSH) -nt "$$ver/_snackmodule.so" ]; then \
mkdir -p $$ver ;\
$(CC) $(CFLAGS) -I/usr/include/$$ver $(SHCFLAGS) -c -o $$ver/snackmodule.o snackmodule.c ;\
$(CC) --shared $(SHCFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L . -lnewt -lslang ;\
- fi ; \
done
touch $@
@@ -131,7 +129,7 @@
for ver in $(PYTHONVERS) ; do \
[ -d $(instroot)/$(libdir)/$$ver/site-packages ] || install -m 755 -d $(instroot)/$(libdir)/$$ver/site-packages ;\
install -m 755 $$ver/_snackmodule.so $(instroot)/$(libdir)/$$ver/site-packages ;\
- install -m 755 snack.py $(instroot)/$(libdir)/$$ver/site-packages ;\
+ install -m 644 snack.py $(instroot)/$(libdir)/$$ver/site-packages ;\
done
configure: configure.ac newt.spec
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/newt-0.52.5/newt.0.52.ver new/newt-0.52.6/newt.0.52.ver
--- old/newt-0.52.5/newt.0.52.ver 2006-08-25 15:11:37.000000000 +0200
+++ new/newt-0.52.6/newt.0.52.ver 2007-02-28 18:35:01.000000000 +0100
@@ -1,6 +1,143 @@
NEWT_0.52 {
- global: newt*;
+ /* remove private functions with next soname change */
+ global:
+ newtBell;
+ newtButton;
+ newtButtonBar;
+ newtButtonBarv;
+ newtCenteredWindow;
+ newtCheckbox;
+ newtCheckboxGetValue;
+ newtCheckboxSetFlags;
+ newtCheckboxSetValue;
+ newtCheckboxTree;
+ newtCheckboxTreeAddArray;
+ newtCheckboxTreeAddItem;
+ newtCheckboxTreeFindItem;
+ newtCheckboxTreeGetCurrent;
+ newtCheckboxTreeGetEntryValue;
+ newtCheckboxTreeGetMultiSelection;
+ newtCheckboxTreeGetSelection;
+ newtCheckboxTreeMulti;
+ newtCheckboxTreeSetCurrent;
+ newtCheckboxTreeSetEntry;
+ newtCheckboxTreeSetEntryValue;
+ newtCheckboxTreeSetWidth;
+ newtClearBox;
+ newtClearKeyBuffer;
+ newtCls;
+ newtCompactButton;
+ newtComponentAddCallback;
+ newtComponentTakesFocus;
+ newtCreateGrid;
+ newtCursorOff;
+ newtCursorOn;
+ newtDefaultColorPalette;
+ newtDefaultEventHandler;
+ newtDefaultMappedHandler;
+ newtDefaultPlaceHandler;
+ newtDelay;
+ newtDrawBox;
+ newtDrawForm;
+ newtDrawRootText;
+ newtEntry;
+ newtEntryGetValue;
+ newtEntrySet;
+ newtEntrySetFilter;
+ newtEntrySetFlags;
+ newtFinished;
+ newtFlushInput;
+ newtForm;
+ newtFormAddComponent;
+ newtFormAddComponents;
+ newtFormAddHotKey;
+ newtFormDestroy;
+ newtFormGetCurrent;
+ newtFormRun;
+ newtFormSetBackground;
+ newtFormSetCurrent;
+ newtFormSetHeight;
+ newtFormSetSize;
+ newtFormSetTimer;
+ newtFormSetWidth;
+ newtFormWatchFd;
+ newtGetKey;
+ newtGetScreenSize;
+ newtGetWindowPos;
+ newtGetrc;
+ newtGotorc;
+ newtGridAddComponentsToForm;
+ newtGridBasicWindow;
+ newtGridFree;
+ newtGridGetSize;
+ newtGridHCloseStacked;
+ newtGridHStacked;
+ newtGridPlace;
+ newtGridSetField;
+ newtGridSimpleWindow;
+ newtGridVCloseStacked;
+ newtGridVStacked;
+ newtGridWrappedWindow;
+ newtGridWrappedWindowAt;
+ newtInit;
+ newtLabel;
+ newtLabelSetText;
+ newtListbox;
+ newtListboxAppendEntry;
+ newtListboxClear;
+ newtListboxClearSelection;
+ newtListboxDeleteEntry;
+ newtListboxGetCurrent;
+ newtListboxGetEntry;
+ newtListboxGetSelection;
+ newtListboxInsertEntry;
+ newtListboxItemCount;
+ newtListboxSelectItem;
+ newtListboxSetCurrent;
+ newtListboxSetCurrentByKey;
+ newtListboxSetData;
+ newtListboxSetEntry;
+ newtListboxSetWidth;
+ newtOpenWindow;
+ newtPopHelpLine;
+ newtPopWindow;
+ newtPushHelpLine;
+ newtRadioGetCurrent;
+ newtRadiobutton;
+ newtRedrawHelpLine;
+ newtReflowText;
+ newtRefresh;
+ newtResizeScreen;
+ newtResume;
+ newtRunForm;
+ newtScale;
+ newtScaleSet;
+ newtScrollbarSet;
+ newtSetColors;
+ newtSetFlags;
+ newtSetHelpCallback;
+ newtSetSuspendCallback;
+ newtSuspend;
+ newtTextbox;
+ newtTextboxGetNumLines;
+ newtTextboxReflowed;
+ newtTextboxSetHeight;
+ newtTextboxSetText;
+ newtTrashScreen;
+ newtVerticalScrollbar;
+ newtWaitForKey;
+ newtWinChoice;
+ newtWinEntries;
+ newtWinMenu;
+ newtWinMessage;
+ newtWinMessagev;
+ newtWinTernary;
_newt_wstrlen;
local: *;
};
+NEWT_0.52.6 {
+ global:
+ newtSetColor;
+ newtPopWindowNoRefresh;
+} NEWT_0.52;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/newt-0.52.5/newt.c new/newt-0.52.6/newt.c
--- old/newt-0.52.5/newt.c 2007-01-31 12:14:16.000000000 +0100
+++ new/newt-0.52.6/newt.c 2007-02-28 18:35:01.000000000 +0100
@@ -398,6 +398,14 @@
colors.selListboxBg);
}
+void newtSetColor(int colorset, char *fg, char *bg) {
+ if (colorset < NEWT_COLORSET_ROOT || colorset > NEWT_COLORSET_SELLISTBOX ||
+ !SLtt_Use_Ansi_Colors)
+ return;
+
+ SLtt_set_color(colorset, "", fg, bg);
+}
+
/* Keymap handling - rewritten by Henning Makholm ,
* November 2003.
*/
@@ -725,6 +733,11 @@
* @brief Remove the top window
*/
void newtPopWindow(void) {
+ newtPopWindowNoRefresh();
+ newtRefresh();
+}
+
+void newtPopWindowNoRefresh(void) {
int j, row, col;
int n = 0;
@@ -754,8 +767,6 @@
SLsmg_set_char_set(0);
newtTrashScreen();
-
- newtRefresh();
}
void newtGetWindowPos(int * x, int * y) {
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/newt-0.52.5/newt.h new/newt-0.52.6/newt.h
--- old/newt-0.52.5/newt.h 2006-09-15 15:27:33.000000000 +0200
+++ new/newt-0.52.6/newt.h 2007-02-28 18:35:01.000000000 +0100
@@ -120,7 +120,9 @@
const char * title);
int newtCenteredWindow(unsigned int width,unsigned int height, const char * title);
void newtPopWindow(void);
+void newtPopWindowNoRefresh(void);
void newtSetColors(struct newtColors colors);
+void newtSetColor(int colorset, char *fg, char *bg);
void newtRefresh(void);
void newtSuspend(void);
void newtSetSuspendCallback(newtSuspendCallback cb, void * data);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/newt-0.52.5/newt.spec new/newt-0.52.6/newt.spec
--- old/newt-0.52.5/newt.spec 2007-01-31 15:08:52.000000000 +0100
+++ new/newt-0.52.6/newt.spec 2007-03-02 14:12:22.000000000 +0100
@@ -1,19 +1,30 @@
-Summary: A development library for text mode user interfaces.
+Summary: A development library for text mode user interfaces
Name: newt
-Version: 0.52.5
+Version: 0.52.6
Release: 1%{?dist}
License: LGPL
Group: System Environment/Libraries
+# The source for this package was pulled from upstream's vcs. Use the
+# following commands to generate the tarball:
+# cvs -d :pserver:anonymous@elvis.redhat.com:/usr/local/CVS co -r r0-52-6 newt
+# cd newt; ./autogen.sh; ./configure; make create-archive
Source: newt-%{version}.tar.gz
BuildRequires: python, python-devel, slang-devel
Provides: snack = %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%package devel
-Summary: Newt windowing toolkit development files.
+Summary: Newt windowing toolkit development files
Requires: slang-devel %{name} = %{version}
Group: Development/Libraries
+# The loader portion of the installer needs to link statically against libnewt,
+# so the static library must be shipped.
+%package static
+Summary: Newt windowing toolkit static library
+Requires: newt-devel = %{version}
+Group: Development/Libraries
+
%Description
Newt is a programming library for color text mode, widget based user
interfaces. Newt can be used to add stacked windows, entry widgets,
@@ -32,12 +43,16 @@
Install newt-devel if you want to develop applications which will use
newt.
+%description static
+The newt-static package contains the static version of the newt library.
+Install it if you need to link statically with libnewt.
+
%prep
%setup -q
%build
# gpm support seems to smash the stack w/ we use help in anaconda??
-#./configure --with-gpm-support
+# --with-gpm-support
%configure --without-tcl
make %{?_smp_mflags} all
chmod 0644 peanuts.py popcorn.py
@@ -67,10 +82,18 @@
%defattr (-,root,root)
%doc tutorial.sgml peanuts.py popcorn.py
%{_includedir}/newt.h
-%{_libdir}/libnewt.a
%{_libdir}/libnewt.so
+%files static
+%{_libdir}/libnewt.a
+
%changelog
+* Fri Mar 02 2007 Miroslav Lichvar - 0.52.6-1
+- add newtSetColor() to allow changing individual colors
+- add newtPopWindowNoRefresh() (patch by Forest Bond)
+- move static library to -static subpackage, spec cleanup (#226195)
+ (patch by Jason Tibbitts)
+
* Wed Jan 31 2007 Miroslav Lichvar - 0.52.5-1
- provide option to change text of buttons (#126768)
- don't add escape key to hot keys by default (#216157)
@@ -136,10 +159,10 @@
* Tue Jan 17 2006 Petr Rockai - 0.52.2-4
- Apply patch by Bill Nottingham (thanks) to improve scrollbar appearance
(BR 174771).
-- Add -%{release} to snack's Provides: line (just in case).
+- Add -%%{release} to snack's Provides: line (just in case).
* Tue Jan 17 2006 Petr Rockai - 0.52.2-3
-- Provide: snack = %{version} instead of plain "snack", so that
+- Provide: snack = %%{version} instead of plain "snack", so that
we don't block upgrades of custom "snack" packages. This should
not break anything. (Hopefully) fixes BR 171415.
@@ -255,11 +278,11 @@
* Mon Mar 18 2002 Bill Nottingham 0.50.35-1
- build for whatever version of python happens to be installed
-* Fri Sep 15 2001 Trond Eivind Glomsr�d 0.50.34-1
+* Fri Sep 15 2001 Trond Eivind Glomsrød 0.50.34-1
- remove python2 subpackage
- compile package for python 2.2
-* Wed Aug 29 2001 Trond Eivind Glomsr�d 0.50.33-1
+* Wed Aug 29 2001 Trond Eivind Glomsrød 0.50.33-1
- s/Copyright/License/
- Add slang-devel to build dependencies (#49542)
@@ -330,12 +353,12 @@
* Mon Jan 22 2001 Than Ngo
- don't build newt-python2 sub package.
-* Fri Dec 15 2000 Trond Eivind Glomsr�d
+* Fri Dec 15 2000 Trond Eivind Glomsrød
- use %%{_tmppath}
- add python2 subpackage, with such support
- fix use of append in snack.py
-* Fri Sep 08 2000 Trond Eivind Glomsr�d
+* Fri Sep 08 2000 Trond Eivind Glomsrød
- bytecompile the snack python module
- move the libnewt.so symlink to the devel package
- include popcorn.py and peanuts.py in the devel package,
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/newt-0.52.5/po/newt.pot new/newt-0.52.6/po/newt.pot
--- old/newt-0.52.5/po/newt.pot 2007-01-31 15:52:51.000000000 +0100
+++ new/newt-0.52.6/po/newt.pot 2007-03-02 14:17:56.000000000 +0100
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-01-31 15:52+0100\n"
+"POT-Creation-Date: 2007-03-02 14:17+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/newt-0.52.5/snackmodule.c new/newt-0.52.6/snackmodule.c
--- old/newt-0.52.5/snackmodule.c 2007-01-30 10:56:09.000000000 +0100
+++ new/newt-0.52.6/snackmodule.c 2007-02-28 18:37:57.000000000 +0100
@@ -53,9 +53,11 @@
static PyObject * openWindow(PyObject * s, PyObject * args);
static PyObject * popHelpLine(PyObject * s, PyObject * args);
static PyObject * popWindow(PyObject * s, PyObject * args);
+static PyObject * popWindowNoRefresh(PyObject * s, PyObject * args);
static PyObject * pushHelpLine(PyObject * s, PyObject * args);
static snackWidget * radioButtonWidget(PyObject * s, PyObject * args);
static PyObject * refreshScreen(PyObject * s, PyObject * args);
+static PyObject * setColor(PyObject * s, PyObject * args);
static PyObject * scaleWidget(PyObject * s, PyObject * args);
static PyObject * scaleSet(snackWidget * s, PyObject * args);
static PyObject * screenSize(PyObject * s, PyObject * args);
@@ -87,10 +89,12 @@
{ "openwindow", openWindow, METH_VARARGS, NULL },
{ "pophelpline", popHelpLine, METH_VARARGS, NULL },
{ "popwindow", popWindow, METH_VARARGS, NULL },
+ { "popwindownorefresh", popWindowNoRefresh, METH_VARARGS, NULL },
{ "pushhelpline", pushHelpLine, METH_VARARGS, NULL },
{ "radiobutton", (PyCFunction) radioButtonWidget, METH_VARARGS, NULL },
{ "reflow", (PyCFunction) reflowText, METH_VARARGS, NULL },
{ "refresh", refreshScreen, METH_VARARGS, NULL },
+ { "setcolor", setColor, METH_VARARGS, NULL },
{ "resume", doResume, METH_VARARGS, NULL },
{ "scale", scaleWidget, METH_VARARGS, NULL },
{ "size", screenSize, METH_VARARGS, NULL },
@@ -299,6 +303,18 @@
return Py_None;
}
+static PyObject * setColor(PyObject * s, PyObject * args) {
+ char * fg, * bg;
+ int colorset;
+ if (!PyArg_ParseTuple(args, "iss", &colorset, &fg, &bg))
+ return NULL;
+
+ newtSetColor(colorset, fg, bg);
+
+ Py_INCREF(Py_None);
+ return Py_None;
+}
+
static PyObject * scaleWidget(PyObject * s, PyObject * args) {
snackWidget * widget;
int width, fullAmount;
@@ -530,6 +546,12 @@
return Py_None;
}
+static PyObject * popWindowNoRefresh(PyObject * s, PyObject * args) {
+ newtPopWindowNoRefresh();
+ Py_INCREF(Py_None);
+ return Py_None;
+}
+
static PyObject * messageWindow(PyObject * s, PyObject * args) {
char * title, * text;
char * okbutton = "Ok";
@@ -1262,4 +1284,28 @@
PyDict_SetItemString(d, "FLAGS_SET", PyInt_FromLong(NEWT_FLAGS_SET));
PyDict_SetItemString(d, "FLAGS_RESET", PyInt_FromLong(NEWT_FLAGS_RESET));
PyDict_SetItemString(d, "FLAGS_TOGGLE", PyInt_FromLong(NEWT_FLAGS_TOGGLE));
+
+ PyDict_SetItemString(d, "COLORSET_ROOT", PyInt_FromLong(NEWT_COLORSET_ROOT));
+ PyDict_SetItemString(d, "COLORSET_BORDER", PyInt_FromLong(NEWT_COLORSET_BORDER));
+ PyDict_SetItemString(d, "COLORSET_WINDOW", PyInt_FromLong(NEWT_COLORSET_WINDOW));
+ PyDict_SetItemString(d, "COLORSET_SHADOW", PyInt_FromLong(NEWT_COLORSET_SHADOW));
+ PyDict_SetItemString(d, "COLORSET_TITLE", PyInt_FromLong(NEWT_COLORSET_TITLE));
+ PyDict_SetItemString(d, "COLORSET_BUTTON", PyInt_FromLong(NEWT_COLORSET_BUTTON));
+ PyDict_SetItemString(d, "COLORSET_ACTBUTTON", PyInt_FromLong(NEWT_COLORSET_ACTBUTTON));
+ PyDict_SetItemString(d, "COLORSET_CHECKBOX", PyInt_FromLong(NEWT_COLORSET_CHECKBOX));
+ PyDict_SetItemString(d, "COLORSET_ACTCHECKBOX", PyInt_FromLong(NEWT_COLORSET_ACTCHECKBOX));
+ PyDict_SetItemString(d, "COLORSET_ENTRY", PyInt_FromLong(NEWT_COLORSET_ENTRY));
+ PyDict_SetItemString(d, "COLORSET_LABEL", PyInt_FromLong(NEWT_COLORSET_LABEL));
+ PyDict_SetItemString(d, "COLORSET_LISTBOX", PyInt_FromLong(NEWT_COLORSET_LISTBOX));
+ PyDict_SetItemString(d, "COLORSET_ACTLISTBOX", PyInt_FromLong(NEWT_COLORSET_ACTLISTBOX));
+ PyDict_SetItemString(d, "COLORSET_TEXTBOX", PyInt_FromLong(NEWT_COLORSET_TEXTBOX));
+ PyDict_SetItemString(d, "COLORSET_ACTTEXTBOX", PyInt_FromLong(NEWT_COLORSET_ACTTEXTBOX));
+ PyDict_SetItemString(d, "COLORSET_HELPLINE", PyInt_FromLong(NEWT_COLORSET_HELPLINE));
+ PyDict_SetItemString(d, "COLORSET_ROOTTEXT", PyInt_FromLong(NEWT_COLORSET_ROOTTEXT));
+ PyDict_SetItemString(d, "COLORSET_EMPTYSCALE", PyInt_FromLong(NEWT_COLORSET_EMPTYSCALE));
+ PyDict_SetItemString(d, "COLORSET_FULLSCALE", PyInt_FromLong(NEWT_COLORSET_FULLSCALE));
+ PyDict_SetItemString(d, "COLORSET_DISENTRY", PyInt_FromLong(NEWT_COLORSET_DISENTRY));
+ PyDict_SetItemString(d, "COLORSET_COMPACTBUTTON", PyInt_FromLong(NEWT_COLORSET_COMPACTBUTTON));
+ PyDict_SetItemString(d, "COLORSET_ACTSELLISTBOX", PyInt_FromLong(NEWT_COLORSET_ACTSELLISTBOX));
+ PyDict_SetItemString(d, "COLORSET_SELLISTBOX", PyInt_FromLong(NEWT_COLORSET_SELLISTBOX));
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/newt-0.52.5/snack.py new/newt-0.52.6/snack.py
--- old/newt-0.52.5/snack.py 2006-10-12 09:47:55.000000000 +0200
+++ new/newt-0.52.6/snack.py 2007-02-28 18:37:57.000000000 +0100
@@ -395,6 +395,30 @@
self.g = apply(_snack.grid, args)
self.gridmembers = []
+colorsets = { "ROOT" : _snack.COLORSET_ROOT,
+ "BORDER" : _snack.COLORSET_BORDER,
+ "WINDOW" : _snack.COLORSET_WINDOW,
+ "SHADOW" : _snack.COLORSET_SHADOW,
+ "TITLE" : _snack.COLORSET_TITLE,
+ "BUTTON" : _snack.COLORSET_BUTTON,
+ "ACTBUTTON" : _snack.COLORSET_ACTBUTTON,
+ "CHECKBOX" : _snack.COLORSET_CHECKBOX,
+ "ACTCHECKBOX" : _snack.COLORSET_ACTCHECKBOX,
+ "ENTRY" : _snack.COLORSET_ENTRY,
+ "LABEL" : _snack.COLORSET_LABEL,
+ "LISTBOX" : _snack.COLORSET_LISTBOX,
+ "ACTLISTBOX" : _snack.COLORSET_ACTLISTBOX,
+ "TEXTBOX" : _snack.COLORSET_TEXTBOX,
+ "ACTTEXTBOX" : _snack.COLORSET_ACTTEXTBOX,
+ "HELPLINE" : _snack.COLORSET_HELPLINE,
+ "ROOTTEXT" : _snack.COLORSET_ROOTTEXT,
+ "EMPTYSCALE" : _snack.COLORSET_EMPTYSCALE,
+ "FULLSCALE" : _snack.COLORSET_FULLSCALE,
+ "DISENTRY" : _snack.COLORSET_DISENTRY,
+ "COMPACTBUTTON" : _snack.COLORSET_COMPACTBUTTON,
+ "ACTSELLISTBOX" : _snack.COLORSET_ACTSELLISTBOX,
+ "SELLISTBOX" : _snack.COLORSET_SELLISTBOX }
+
class SnackScreen:
"""A Screen;
@@ -460,12 +484,17 @@
return _snack.gridwrappedwindow(grid.g, title)
- def popWindow(self):
- return _snack.popwindow()
+ def popWindow(self, refresh = True):
+ if refresh:
+ return _snack.popwindow()
+ return _snack.popwindownorefresh()
def refresh(self):
return _snack.refresh()
+ def setColor(self, colorset, fg, bg):
+ return _snack.setcolor(colorsets[colorset], fg, bg)
+
def reflow(text, width, flexDown = 5, flexUp = 5):
""" returns a tuple of the wrapped text, the actual width, and the actual height
"""
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org