]>
git.ipfire.org Git - thirdparty/newt.git/log
Miroslav Lichvar [Mon, 21 Nov 2022 11:21:05 +0000 (12:21 +0100)]
don't modify popt args in whiptail
Remove code that replaces the first popt argument with a string
containing a part of the menu height (for some debugging purposes?).
This fixes a crash with libpopt-1.19.
Thomas Kuehne [Sun, 12 Dec 2021 09:31:44 +0000 (09:31 +0000)]
cleanup command substitution in configure.ac
replace backquoted command substitution `cmd` with clean $(cmd)
Signed-off-by: Thomas Kuehne <thomas@kuehne.cn>
Sam James [Wed, 14 Jul 2021 04:12:32 +0000 (05:12 +0100)]
swap order of LDFLAGS and P*FLAGS
Needed to respect as-needed.
Bug: https://bugs.gentoo.org/798945
Thomas Kuehne [Sun, 12 Dec 2021 08:48:22 +0000 (08:48 +0000)]
cleanup configure.ac
Signed-off-by: Thomas Kuehne <thomas@kuehne.cn>
Alexey Sheplyakov [Mon, 16 Aug 2021 07:01:57 +0000 (07:01 +0000)]
libnewt.pc: add data for static linking
With this patch I can statically link a binary with libnewt without listing
the required libraries manually:
gcc -o test_static test.c `pkg-config --libs --cflags --static libnewt`
Without this patch static linking fails due to multiple undefined
references:
/usr/bin/ld: /tmp/test.AcRBJp.ltrans0.ltrans.o: in function `buttonDrawIt':
<artificial>:(.text+0x2f0): undefined reference to `SLsmg_set_color'
/usr/bin/ld: <artificial>:(.text+0x307): undefined reference to `SLtt_Use_Ansi_Colors'
/usr/bin/ld: <artificial>:(.text+0x31b): undefined reference to `SLsmg_set_color'
/usr/bin/ld: <artificial>:(.text+0x338): undefined reference to `SLsmg_write_char'
/usr/bin/ld: <artificial>:(.text+0x341): undefined reference to `SLsmg_write_string'
/usr/bin/ld: <artificial>:(.text+0x34b): undefined reference to `SLsmg_write_char'
/usr/bin/ld: <artificial>:(.text+0x3ae): undefined reference to `SLsmg_set_color'
/usr/bin/ld: <artificial>:(.text+0x3cd): undefined reference to `SLsmg_write_char'
/usr/bin/ld: <artificial>:(.text+0x3d5): undefined reference to `SLsmg_write_string'
/usr/bin/ld: <artificial>:(.text+0x3df): undefined reference to `SLsmg_write_char'
/usr/bin/ld: <artificial>:(.text+0x3f9): undefined reference to `SLsmg_set_color'
/usr/bin/ld: <artificial>:(.text+0x422): undefined reference to `SLsmg_set_color'
/usr/bin/ld: <artificial>:(.text+0x45d): undefined reference to `SLsmg_set_color'
/usr/bin/ld: <artificial>:(.text+0x476): undefined reference to `SLsmg_set_color'
/usr/bin/ld: <artificial>:(.text+0x486): undefined reference to `SLsmg_set_color'
/usr/bin/ld: /tmp/test.AcRBJp.ltrans0.ltrans.o:<artificial>:(.text+0x4d6): more undefined references to `SLsmg_set_color' follow
[287 lines skipped]
collect2: error: ld returned 1 exit status
Closes: #17
Michael Olbrich [Sun, 31 May 2020 09:27:12 +0000 (09:27 +0000)]
install header and pkg-config file with the shared library
This way the shared library can be installed without building whiptail.
This avoids a dependency on libpopt.
Miroslav Lichvar [Tue, 8 Oct 2019 07:55:37 +0000 (09:55 +0200)]
drop ident strings
Rosen Penev [Mon, 7 Oct 2019 23:11:23 +0000 (23:11 +0000)]
switch to nanosleep
usleep was removed in POSIX 2008 and is optionally unavailable with
uClibc-ng.
[ ML: include <time.h> and improve indentation. ]
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Miroslav Lichvar [Tue, 1 Oct 2019 17:02:58 +0000 (19:02 +0200)]
fix warnings about never-read values
Miroslav Lichvar [Tue, 1 Oct 2019 16:49:18 +0000 (18:49 +0200)]
fix dead code in buttonbar
Miroslav Lichvar [Tue, 1 Oct 2019 14:37:55 +0000 (16:37 +0200)]
don't ignore CFLAGS when building snack
In addition to the flags returned by python-config --cflags, use the
user-specified CFLAGS when building the snack object.
Miroslav Lichvar [Mon, 27 May 2019 12:57:40 +0000 (14:57 +0200)]
0.52.21
Miroslav Lichvar [Mon, 27 May 2019 12:51:05 +0000 (14:51 +0200)]
update CHANGES
Miroslav Lichvar [Mon, 27 May 2019 11:34:54 +0000 (13:34 +0200)]
fix radio button selection check in snack
https://pagure.io/newt/issue/1
Miroslav Lichvar [Wed, 22 May 2019 12:27:23 +0000 (14:27 +0200)]
remove obsolete Makefile target
Émeric Dupont [Wed, 20 Mar 2019 11:40:56 +0000 (12:40 +0100)]
fix parallel build
Robert Gill [Sun, 22 Jul 2018 04:09:40 +0000 (04:09 +0000)]
define env NEWT_NOFLOWCTRL to disable flow control
Define the environment variable NEWT_NOFLOWCTRL to disable software flow
control similarly to how the command 'stty -ixon' disables flow control
when using ncurses.
Miroslav Lichvar [Wed, 11 Jul 2018 14:51:10 +0000 (16:51 +0200)]
don't leak memory on errors in dialogboxes
Miroslav Lichvar [Wed, 16 May 2018 15:16:45 +0000 (17:16 +0200)]
don't call automake in autogen.sh
https://pagure.io/newt/issue/4
Miroslav Lichvar [Wed, 16 May 2018 14:53:20 +0000 (16:53 +0200)]
allow python versions to be specified with --with-python option
https://pagure.io/newt/issue/3
Miroslav Lichvar [Wed, 18 Apr 2018 13:44:51 +0000 (15:44 +0200)]
fix plural forms in Lithuanian translation (#
1568999 )
Miroslav Lichvar [Fri, 17 Mar 2017 10:36:31 +0000 (11:36 +0100)]
0.52.20
Miroslav Lichvar [Fri, 17 Mar 2017 10:23:21 +0000 (11:23 +0100)]
update CHANGES
Miroslav Lichvar [Thu, 16 Mar 2017 12:31:59 +0000 (13:31 +0100)]
support screen resize as hotkey in form (#
1432926 )
Miroslav Lichvar [Tue, 13 Sep 2016 09:31:38 +0000 (11:31 +0200)]
update README
Miroslav Lichvar [Wed, 3 Aug 2016 14:29:44 +0000 (16:29 +0200)]
improve handling of long strings in whiptail menu (#
1353792 )
Miroslav Lichvar [Wed, 23 Mar 2016 15:16:15 +0000 (16:16 +0100)]
0.52.19
Miroslav Lichvar [Wed, 23 Mar 2016 14:27:06 +0000 (15:27 +0100)]
update CHANGES
Miroslav Lichvar [Wed, 23 Mar 2016 15:46:05 +0000 (16:46 +0100)]
remove distclean target from po/Makefile
Miroslav Lichvar [Wed, 23 Mar 2016 15:10:52 +0000 (16:10 +0100)]
update translations from Zanata
Miroslav Lichvar [Wed, 23 Mar 2016 15:00:13 +0000 (16:00 +0100)]
update newt.pot
Miroslav Lichvar [Wed, 23 Mar 2016 14:50:26 +0000 (15:50 +0100)]
migrate from Transifex to Zanata for translations
Miroslav Lichvar [Wed, 23 Mar 2016 11:05:52 +0000 (12:05 +0100)]
support --notags in whiptail checklist and radiolist (#
1319794 )
The whiptail man page says the option is supported in the menu,
checklist and radiolist widgets, but it actually worked only in menu.
Alex Suykov [Sat, 10 Jan 2015 10:57:39 +0000 (11:57 +0100)]
remove bogus -I/usr/include/slang from CPPFLAGS
Hardcoding -I/usr/include/slang in CPPFLAGS is bogus for
cross-compilation. With recent versions of slang, the headers are
installed in ${sysroot}/usr/include directly, so there is no need for
an additional flag. And if one was needed, it should be added by the
configure script, after detecting the right header location.
Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Samuel Martin [Sat, 10 Jan 2015 10:57:38 +0000 (11:57 +0100)]
use $(CC) instead of $(CPP) to generate .depend files
Use $(CC) instead of $(CPP) to generate .depend file because '$(CPP)
-M' call does not support multiple input files. This avoid the
following error:
make[1]: Entering directory `/opt/br/output/build/newt-0.51.0'
/opt/br/output/host/usr/bin/arm-none-linux-gnueabi-cpp -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -M newt.c button.c form.c checkbox.c entry.c label.c listbox.c scrollbar.c textbox.c scale.c grid.c windows.c buttonbar.c checkboxtree.c > .depend
arm-none-linux-gnueabi-cpp: too many input files
make[1]: *** [depend] Error 1
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Miroslav Lichvar [Thu, 23 Oct 2014 08:31:54 +0000 (10:31 +0200)]
0.52.18
Miroslav Lichvar [Thu, 23 Oct 2014 08:30:18 +0000 (10:30 +0200)]
update CHANGES
Miroslav Lichvar [Thu, 23 Oct 2014 08:33:10 +0000 (10:33 +0200)]
don't print Makefile command with old configure
Miroslav Lichvar [Thu, 23 Oct 2014 07:34:15 +0000 (09:34 +0200)]
fix preprocessor warnings in snack
Miroslav Lichvar [Thu, 23 Oct 2014 07:23:30 +0000 (09:23 +0200)]
fix widget key collision in snack on 64-bit archs (#
1151455 )
Miroslav Lichvar [Thu, 16 Oct 2014 11:42:11 +0000 (13:42 +0200)]
optimize textbox reflowing
Miroslav Lichvar [Wed, 15 Oct 2014 15:52:41 +0000 (17:52 +0200)]
handle NEWT_EXIT_ERROR in snack
Miroslav Lichvar [Tue, 11 Mar 2014 10:32:52 +0000 (11:32 +0100)]
Remove newtListitem declarations (#
1074092 )
Miroslav Lichvar [Wed, 19 Feb 2014 16:03:29 +0000 (17:03 +0100)]
0.52.17
Miroslav Lichvar [Wed, 19 Feb 2014 16:56:37 +0000 (17:56 +0100)]
add rule for uploading archive
Miroslav Lichvar [Wed, 19 Feb 2014 16:47:43 +0000 (17:47 +0100)]
set owner/group in released tar
Miroslav Lichvar [Wed, 19 Feb 2014 16:03:02 +0000 (17:03 +0100)]
drop newt.spec
Miroslav Lichvar [Fri, 14 Feb 2014 17:01:45 +0000 (18:01 +0100)]
update CHANGES
Miroslav Lichvar [Fri, 14 Feb 2014 16:52:24 +0000 (17:52 +0100)]
add README
Miroslav Lichvar [Fri, 14 Feb 2014 16:49:13 +0000 (17:49 +0100)]
add AUTHORS
Miroslav Lichvar [Fri, 14 Feb 2014 14:47:34 +0000 (15:47 +0100)]
set package version in configure.ac
Dan Winship [Tue, 28 Jan 2014 13:43:54 +0000 (08:43 -0500)]
Restore cursor position after changing help line
Dan Winship [Wed, 30 Oct 2013 17:11:40 +0000 (13:11 -0400)]
implement newtComponentAddCallback() for forms as a focus-change callback
Dan Winship [Wed, 30 Oct 2013 15:08:06 +0000 (11:08 -0400)]
add newtEntryGet/SetCursorPosition
Dan Winship [Wed, 30 Oct 2013 14:47:32 +0000 (10:47 -0400)]
add newtFormGet/SetScrollPosition
Miroslav Lichvar [Thu, 17 Oct 2013 16:53:04 +0000 (18:53 +0200)]
update CHANGES from spec changelog
Miro Hrončok [Thu, 17 Oct 2013 14:24:17 +0000 (16:24 +0200)]
build python3 subpackage (#963839)
Miroslav Lichvar [Thu, 17 Oct 2013 14:13:27 +0000 (16:13 +0200)]
rename snackmodule to snack (#963839)
Matthias Klose [Thu, 17 Oct 2013 13:19:58 +0000 (15:19 +0200)]
add python3 support (#963839)
Miroslav Lichvar [Tue, 6 Aug 2013 15:40:27 +0000 (17:40 +0200)]
0.52.16
Miroslav Lichvar [Tue, 6 Aug 2013 15:46:27 +0000 (17:46 +0200)]
don't ship .gitignore
Miroslav Lichvar [Tue, 6 Aug 2013 15:01:54 +0000 (17:01 +0200)]
fix weekdays in spec changelog
Miroslav Lichvar [Tue, 6 Aug 2013 14:53:42 +0000 (16:53 +0200)]
update transifex config
Miroslav Lichvar [Tue, 6 Aug 2013 14:40:34 +0000 (16:40 +0200)]
fix memory leaks in whiptail
Miroslav Lichvar [Tue, 6 Aug 2013 14:30:59 +0000 (16:30 +0200)]
free gpm socket name and unlink gpm socket on form exit
Miroslav Lichvar [Wed, 31 Jul 2013 11:44:59 +0000 (13:44 +0200)]
modify Makefile to use SOEXT (#971168)
Miroslav Lichvar [Wed, 31 Jul 2013 11:00:49 +0000 (13:00 +0200)]
update linker script
Dan Winship [Tue, 23 Jul 2013 18:19:04 +0000 (14:19 -0400)]
add newtComponentGetSize and newtComponentGetPosition (#987596)
Miroslav Lichvar [Fri, 5 Apr 2013 13:58:53 +0000 (15:58 +0200)]
add missing whiptail options to help and man page
Miroslav Lichvar [Mon, 25 Mar 2013 13:40:56 +0000 (14:40 +0100)]
0.52.15
Miroslav Lichvar [Mon, 25 Mar 2013 14:03:26 +0000 (15:03 +0100)]
remove unused variables in test code
Miroslav Lichvar [Mon, 25 Mar 2013 12:38:48 +0000 (13:38 +0100)]
allow newtWinMenu and newtWinEntries with no buttons or items
Miroslav Lichvar [Thu, 21 Mar 2013 18:28:05 +0000 (19:28 +0100)]
fix errors found by gcc-with-cpychecker (#800075)
Miroslav Lichvar [Wed, 20 Mar 2013 16:37:07 +0000 (17:37 +0100)]
don't draw scale when not mapped
Miroslav Lichvar [Wed, 20 Mar 2013 16:36:31 +0000 (17:36 +0100)]
don't check top when drawing
Miroslav Lichvar [Wed, 20 Mar 2013 16:10:39 +0000 (17:10 +0100)]
build with large-file support for stat64
Miroslav Lichvar [Wed, 20 Mar 2013 15:41:56 +0000 (16:41 +0100)]
fix building with tcl8.6 (#902561)
Miroslav Lichvar [Wed, 20 Mar 2013 14:39:30 +0000 (15:39 +0100)]
add fallback to python-config (#783627)
Miroslav Lichvar [Thu, 24 Jan 2013 13:24:15 +0000 (14:24 +0100)]
replace tabs in snack.py (#870647)
Miroslav Lichvar [Fri, 14 Dec 2012 16:10:33 +0000 (17:10 +0100)]
include new translations from transifex
Kang Kai [Tue, 11 Dec 2012 02:56:32 +0000 (10:56 +0800)]
compile snackmodule.c with flag -fPIC
Signed-off-by: Kang Kai <kai.kang@windriver.com>
Miroslav Lichvar [Wed, 8 Feb 2012 11:26:36 +0000 (12:26 +0100)]
update FSF address
Miroslav Lichvar [Fri, 11 Nov 2011 11:00:15 +0000 (12:00 +0100)]
0.52.14
Miroslav Lichvar [Thu, 10 Nov 2011 16:21:40 +0000 (17:21 +0100)]
fix configure to work with multiple python versions (#737998)
Miroslav Lichvar [Thu, 10 Nov 2011 15:08:09 +0000 (16:08 +0100)]
fix memory leak in dialogboxes checklist
Miroslav Lichvar [Thu, 10 Nov 2011 15:04:45 +0000 (16:04 +0100)]
fix returning strings in whiptail and whiptcl (#752818)
Miroslav Lichvar [Mon, 27 Jun 2011 12:06:01 +0000 (14:06 +0200)]
0.52.13
Miroslav Lichvar [Mon, 27 Jun 2011 12:23:06 +0000 (14:23 +0200)]
remove unused variables
Miroslav Lichvar [Mon, 27 Jun 2011 12:11:11 +0000 (14:11 +0200)]
remove .tx directory in release
Miroslav Lichvar [Tue, 21 Jun 2011 17:58:33 +0000 (19:58 +0200)]
fix form scrolling
The previous commit breaks form scrolling. Instead of keeping a copy of
all components' coordinates, move all components when the form is
scrolled and use their real coordinates adjusted by vertical offset to
get the coordinates and size of the form.
Miroslav Lichvar [Fri, 17 Jun 2011 16:48:12 +0000 (18:48 +0200)]
allow resizing of form
Miroslav Lichvar [Wed, 8 Jun 2011 15:32:54 +0000 (17:32 +0200)]
fix errors found by coverity
Miroslav Lichvar [Thu, 2 Jun 2011 11:05:28 +0000 (13:05 +0200)]
allow setting colors via NEWT_COLORS or NEWT_COLORS_FILE variables
Default color palette can be now modified by color specifications as
"root=,black:button=red,yellow", the string can be set in NEWT_COLORS
environment variable or in a file which is specified by NEWT_COLORS_FILE
variable.
Default NEWT_COLORS_FILE can be set by --with-colorsfile option.
Joey Boggs [Tue, 31 May 2011 20:17:08 +0000 (16:17 -0400)]
add python bindings for setting label colors
Miroslav Lichvar [Fri, 27 May 2011 08:59:18 +0000 (10:59 +0200)]
start custom colorsets at 30
slang keeps internally only 512 color pairs (JMAX_COLORS constant).
Miroslav Lichvar [Wed, 18 May 2011 17:23:39 +0000 (19:23 +0200)]
allowing changing colors in individual labels, scrollbars, entries, scales
Miroslav Lichvar [Wed, 18 May 2011 17:20:13 +0000 (19:20 +0200)]
add custom colorsets
Miroslav Lichvar [Fri, 1 Apr 2011 12:04:54 +0000 (14:04 +0200)]
add transifex config
mareklaane [Fri, 4 Feb 2011 02:48:56 +0000 (02:48 +0000)]
l10n: Updates to Estonian (et) translation
Transmitted-via: Transifex (translate.fedoraproject.org)
Gwenole Beauchesne [Tue, 25 Jan 2011 17:28:34 +0000 (18:28 +0100)]
do not call va_start instead of va_end