]> git.ipfire.org Git - thirdparty/newt.git/log
thirdparty/newt.git
2 years agodon't modify popt args in whiptail
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.

2 years agocleanup command substitution in configure.ac
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>
2 years agoswap order of LDFLAGS and P*FLAGS
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

3 years agocleanup configure.ac
Thomas Kuehne [Sun, 12 Dec 2021 08:48:22 +0000 (08:48 +0000)] 
cleanup configure.ac

Signed-off-by: Thomas Kuehne <thomas@kuehne.cn>
3 years agolibnewt.pc: add data for static linking
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
5 years agoinstall header and pkg-config file with the shared library
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.

5 years agodrop ident strings
Miroslav Lichvar [Tue, 8 Oct 2019 07:55:37 +0000 (09:55 +0200)] 
drop ident strings

5 years agoswitch to nanosleep
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>
5 years agofix warnings about never-read values
Miroslav Lichvar [Tue, 1 Oct 2019 17:02:58 +0000 (19:02 +0200)] 
fix warnings about never-read values

5 years agofix dead code in buttonbar
Miroslav Lichvar [Tue, 1 Oct 2019 16:49:18 +0000 (18:49 +0200)] 
fix dead code in buttonbar

5 years agodon't ignore CFLAGS when building snack
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.

6 years ago0.52.21 r0-52-21
Miroslav Lichvar [Mon, 27 May 2019 12:57:40 +0000 (14:57 +0200)] 
0.52.21

6 years agoupdate CHANGES
Miroslav Lichvar [Mon, 27 May 2019 12:51:05 +0000 (14:51 +0200)] 
update CHANGES

6 years agofix radio button selection check in snack
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

6 years agoremove obsolete Makefile target
Miroslav Lichvar [Wed, 22 May 2019 12:27:23 +0000 (14:27 +0200)] 
remove obsolete Makefile target

6 years agofix parallel build
Émeric Dupont [Wed, 20 Mar 2019 11:40:56 +0000 (12:40 +0100)] 
fix parallel build

6 years agodefine env NEWT_NOFLOWCTRL to disable flow control
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.

6 years agodon't leak memory on errors in dialogboxes
Miroslav Lichvar [Wed, 11 Jul 2018 14:51:10 +0000 (16:51 +0200)] 
don't leak memory on errors in dialogboxes

7 years agodon't call automake in autogen.sh
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

7 years agoallow python versions to be specified with --with-python option
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

7 years agofix plural forms in Lithuanian translation (#1568999)
Miroslav Lichvar [Wed, 18 Apr 2018 13:44:51 +0000 (15:44 +0200)] 
fix plural forms in Lithuanian translation (#1568999)

8 years ago0.52.20 r0-52-20
Miroslav Lichvar [Fri, 17 Mar 2017 10:36:31 +0000 (11:36 +0100)] 
0.52.20

8 years agoupdate CHANGES
Miroslav Lichvar [Fri, 17 Mar 2017 10:23:21 +0000 (11:23 +0100)] 
update CHANGES

8 years agosupport screen resize as hotkey in form (#1432926)
Miroslav Lichvar [Thu, 16 Mar 2017 12:31:59 +0000 (13:31 +0100)] 
support screen resize as hotkey in form (#1432926)

8 years agoupdate README
Miroslav Lichvar [Tue, 13 Sep 2016 09:31:38 +0000 (11:31 +0200)] 
update README

8 years agoimprove handling of long strings in whiptail menu (#1353792)
Miroslav Lichvar [Wed, 3 Aug 2016 14:29:44 +0000 (16:29 +0200)] 
improve handling of long strings in whiptail menu (#1353792)

9 years ago0.52.19 r0-52-19
Miroslav Lichvar [Wed, 23 Mar 2016 15:16:15 +0000 (16:16 +0100)] 
0.52.19

9 years agoupdate CHANGES
Miroslav Lichvar [Wed, 23 Mar 2016 14:27:06 +0000 (15:27 +0100)] 
update CHANGES

9 years agoremove distclean target from po/Makefile
Miroslav Lichvar [Wed, 23 Mar 2016 15:46:05 +0000 (16:46 +0100)] 
remove distclean target from po/Makefile

9 years agoupdate translations from Zanata
Miroslav Lichvar [Wed, 23 Mar 2016 15:10:52 +0000 (16:10 +0100)] 
update translations from Zanata

9 years agoupdate newt.pot
Miroslav Lichvar [Wed, 23 Mar 2016 15:00:13 +0000 (16:00 +0100)] 
update newt.pot

9 years agomigrate from Transifex to Zanata for translations
Miroslav Lichvar [Wed, 23 Mar 2016 14:50:26 +0000 (15:50 +0100)] 
migrate from Transifex to Zanata for translations

9 years agosupport --notags in whiptail checklist and radiolist (#1319794)
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.

10 years agoremove bogus -I/usr/include/slang from CPPFLAGS
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>
10 years agouse $(CC) instead of $(CPP) to generate .depend files
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>
10 years ago0.52.18 r0-52-18
Miroslav Lichvar [Thu, 23 Oct 2014 08:31:54 +0000 (10:31 +0200)] 
0.52.18

10 years agoupdate CHANGES
Miroslav Lichvar [Thu, 23 Oct 2014 08:30:18 +0000 (10:30 +0200)] 
update CHANGES

10 years agodon't print Makefile command with old configure
Miroslav Lichvar [Thu, 23 Oct 2014 08:33:10 +0000 (10:33 +0200)] 
don't print Makefile command with old configure

10 years agofix preprocessor warnings in snack
Miroslav Lichvar [Thu, 23 Oct 2014 07:34:15 +0000 (09:34 +0200)] 
fix preprocessor warnings in snack

10 years agofix widget key collision in snack on 64-bit archs (#1151455)
Miroslav Lichvar [Thu, 23 Oct 2014 07:23:30 +0000 (09:23 +0200)] 
fix widget key collision in snack on 64-bit archs (#1151455)

10 years agooptimize textbox reflowing
Miroslav Lichvar [Thu, 16 Oct 2014 11:42:11 +0000 (13:42 +0200)] 
optimize textbox reflowing

10 years agohandle NEWT_EXIT_ERROR in snack
Miroslav Lichvar [Wed, 15 Oct 2014 15:52:41 +0000 (17:52 +0200)] 
handle NEWT_EXIT_ERROR in snack

11 years agoRemove newtListitem declarations (#1074092)
Miroslav Lichvar [Tue, 11 Mar 2014 10:32:52 +0000 (11:32 +0100)] 
Remove newtListitem declarations (#1074092)

11 years ago0.52.17 r0-52-17
Miroslav Lichvar [Wed, 19 Feb 2014 16:03:29 +0000 (17:03 +0100)] 
0.52.17

11 years agoadd rule for uploading archive
Miroslav Lichvar [Wed, 19 Feb 2014 16:56:37 +0000 (17:56 +0100)] 
add rule for uploading archive

11 years agoset owner/group in released tar
Miroslav Lichvar [Wed, 19 Feb 2014 16:47:43 +0000 (17:47 +0100)] 
set owner/group in released tar

11 years agodrop newt.spec
Miroslav Lichvar [Wed, 19 Feb 2014 16:03:02 +0000 (17:03 +0100)] 
drop newt.spec

11 years agoupdate CHANGES
Miroslav Lichvar [Fri, 14 Feb 2014 17:01:45 +0000 (18:01 +0100)] 
update CHANGES

11 years agoadd README
Miroslav Lichvar [Fri, 14 Feb 2014 16:52:24 +0000 (17:52 +0100)] 
add README

11 years agoadd AUTHORS
Miroslav Lichvar [Fri, 14 Feb 2014 16:49:13 +0000 (17:49 +0100)] 
add AUTHORS

11 years agoset package version in configure.ac
Miroslav Lichvar [Fri, 14 Feb 2014 14:47:34 +0000 (15:47 +0100)] 
set package version in configure.ac

11 years agoRestore cursor position after changing help line
Dan Winship [Tue, 28 Jan 2014 13:43:54 +0000 (08:43 -0500)] 
Restore cursor position after changing help line

11 years agoimplement newtComponentAddCallback() for forms as a focus-change callback
Dan Winship [Wed, 30 Oct 2013 17:11:40 +0000 (13:11 -0400)] 
implement newtComponentAddCallback() for forms as a focus-change callback

11 years agoadd newtEntryGet/SetCursorPosition
Dan Winship [Wed, 30 Oct 2013 15:08:06 +0000 (11:08 -0400)] 
add newtEntryGet/SetCursorPosition

11 years agoadd newtFormGet/SetScrollPosition
Dan Winship [Wed, 30 Oct 2013 14:47:32 +0000 (10:47 -0400)] 
add newtFormGet/SetScrollPosition

11 years agoupdate CHANGES from spec changelog
Miroslav Lichvar [Thu, 17 Oct 2013 16:53:04 +0000 (18:53 +0200)] 
update CHANGES from spec changelog

11 years agobuild python3 subpackage (#963839)
Miro Hrončok [Thu, 17 Oct 2013 14:24:17 +0000 (16:24 +0200)] 
build python3 subpackage (#963839)

11 years agorename snackmodule to snack (#963839)
Miroslav Lichvar [Thu, 17 Oct 2013 14:13:27 +0000 (16:13 +0200)] 
rename snackmodule to snack (#963839)

11 years agoadd python3 support (#963839)
Matthias Klose [Thu, 17 Oct 2013 13:19:58 +0000 (15:19 +0200)] 
add python3 support (#963839)

11 years ago0.52.16 r0-52-16
Miroslav Lichvar [Tue, 6 Aug 2013 15:40:27 +0000 (17:40 +0200)] 
0.52.16

11 years agodon't ship .gitignore
Miroslav Lichvar [Tue, 6 Aug 2013 15:46:27 +0000 (17:46 +0200)] 
don't ship .gitignore

11 years agofix weekdays in spec changelog
Miroslav Lichvar [Tue, 6 Aug 2013 15:01:54 +0000 (17:01 +0200)] 
fix weekdays in spec changelog

11 years agoupdate transifex config
Miroslav Lichvar [Tue, 6 Aug 2013 14:53:42 +0000 (16:53 +0200)] 
update transifex config

11 years agofix memory leaks in whiptail
Miroslav Lichvar [Tue, 6 Aug 2013 14:40:34 +0000 (16:40 +0200)] 
fix memory leaks in whiptail

11 years agofree gpm socket name and unlink gpm socket on form exit
Miroslav Lichvar [Tue, 6 Aug 2013 14:30:59 +0000 (16:30 +0200)] 
free gpm socket name and unlink gpm socket on form exit

11 years agomodify Makefile to use SOEXT (#971168)
Miroslav Lichvar [Wed, 31 Jul 2013 11:44:59 +0000 (13:44 +0200)] 
modify Makefile to use SOEXT (#971168)

11 years agoupdate linker script
Miroslav Lichvar [Wed, 31 Jul 2013 11:00:49 +0000 (13:00 +0200)] 
update linker script

11 years agoadd newtComponentGetSize and newtComponentGetPosition (#987596)
Dan Winship [Tue, 23 Jul 2013 18:19:04 +0000 (14:19 -0400)] 
add newtComponentGetSize and newtComponentGetPosition (#987596)

12 years agoadd missing whiptail options to help and man page
Miroslav Lichvar [Fri, 5 Apr 2013 13:58:53 +0000 (15:58 +0200)] 
add missing whiptail options to help and man page

12 years ago0.52.15 r0-52-15
Miroslav Lichvar [Mon, 25 Mar 2013 13:40:56 +0000 (14:40 +0100)] 
0.52.15

12 years agoremove unused variables in test code
Miroslav Lichvar [Mon, 25 Mar 2013 14:03:26 +0000 (15:03 +0100)] 
remove unused variables in test code

12 years agoallow newtWinMenu and newtWinEntries with no buttons or items
Miroslav Lichvar [Mon, 25 Mar 2013 12:38:48 +0000 (13:38 +0100)] 
allow newtWinMenu and newtWinEntries with no buttons or items

12 years agofix errors found by gcc-with-cpychecker (#800075)
Miroslav Lichvar [Thu, 21 Mar 2013 18:28:05 +0000 (19:28 +0100)] 
fix errors found by gcc-with-cpychecker (#800075)

12 years agodon't draw scale when not mapped
Miroslav Lichvar [Wed, 20 Mar 2013 16:37:07 +0000 (17:37 +0100)] 
don't draw scale when not mapped

12 years agodon't check top when drawing
Miroslav Lichvar [Wed, 20 Mar 2013 16:36:31 +0000 (17:36 +0100)] 
don't check top when drawing

12 years agobuild with large-file support for stat64
Miroslav Lichvar [Wed, 20 Mar 2013 16:10:39 +0000 (17:10 +0100)] 
build with large-file support for stat64

12 years agofix building with tcl8.6 (#902561)
Miroslav Lichvar [Wed, 20 Mar 2013 15:41:56 +0000 (16:41 +0100)] 
fix building with tcl8.6 (#902561)

12 years agoadd fallback to python-config (#783627)
Miroslav Lichvar [Wed, 20 Mar 2013 14:39:30 +0000 (15:39 +0100)] 
add fallback to python-config (#783627)

12 years agoreplace tabs in snack.py (#870647)
Miroslav Lichvar [Thu, 24 Jan 2013 13:24:15 +0000 (14:24 +0100)] 
replace tabs in snack.py (#870647)

12 years agoinclude new translations from transifex
Miroslav Lichvar [Fri, 14 Dec 2012 16:10:33 +0000 (17:10 +0100)] 
include new translations from transifex

12 years agocompile snackmodule.c with flag -fPIC
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>
13 years agoupdate FSF address
Miroslav Lichvar [Wed, 8 Feb 2012 11:26:36 +0000 (12:26 +0100)] 
update FSF address

13 years ago0.52.14 r0-52-14
Miroslav Lichvar [Fri, 11 Nov 2011 11:00:15 +0000 (12:00 +0100)] 
0.52.14

13 years agofix configure to work with multiple python versions (#737998)
Miroslav Lichvar [Thu, 10 Nov 2011 16:21:40 +0000 (17:21 +0100)] 
fix configure to work with multiple python versions (#737998)

13 years agofix memory leak in dialogboxes checklist
Miroslav Lichvar [Thu, 10 Nov 2011 15:08:09 +0000 (16:08 +0100)] 
fix memory leak in dialogboxes checklist

13 years agofix returning strings in whiptail and whiptcl (#752818)
Miroslav Lichvar [Thu, 10 Nov 2011 15:04:45 +0000 (16:04 +0100)] 
fix returning strings in whiptail and whiptcl (#752818)

14 years ago0.52.13 r0-52-13
Miroslav Lichvar [Mon, 27 Jun 2011 12:06:01 +0000 (14:06 +0200)] 
0.52.13

14 years agoremove unused variables
Miroslav Lichvar [Mon, 27 Jun 2011 12:23:06 +0000 (14:23 +0200)] 
remove unused variables

14 years agoremove .tx directory in release
Miroslav Lichvar [Mon, 27 Jun 2011 12:11:11 +0000 (14:11 +0200)] 
remove .tx directory in release

14 years agofix form scrolling
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.

14 years agoallow resizing of form
Miroslav Lichvar [Fri, 17 Jun 2011 16:48:12 +0000 (18:48 +0200)] 
allow resizing of form

14 years agofix errors found by coverity
Miroslav Lichvar [Wed, 8 Jun 2011 15:32:54 +0000 (17:32 +0200)] 
fix errors found by coverity

14 years agoallow setting colors via NEWT_COLORS or NEWT_COLORS_FILE variables
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.

14 years agoadd python bindings for setting label colors
Joey Boggs [Tue, 31 May 2011 20:17:08 +0000 (16:17 -0400)] 
add python bindings for setting label colors

14 years agostart custom colorsets at 30
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).

14 years agoallowing changing colors in individual labels, scrollbars, entries, scales
Miroslav Lichvar [Wed, 18 May 2011 17:23:39 +0000 (19:23 +0200)] 
allowing changing colors in individual labels, scrollbars, entries, scales

14 years agoadd custom colorsets
Miroslav Lichvar [Wed, 18 May 2011 17:20:13 +0000 (19:20 +0200)] 
add custom colorsets

14 years agoadd transifex config
Miroslav Lichvar [Fri, 1 Apr 2011 12:04:54 +0000 (14:04 +0200)] 
add transifex config

14 years agol10n: Updates to Estonian (et) translation
mareklaane [Fri, 4 Feb 2011 02:48:56 +0000 (02:48 +0000)] 
l10n: Updates to Estonian (et) translation

Transmitted-via: Transifex (translate.fedoraproject.org)

14 years agodo not call va_start instead of va_end
Gwenole Beauchesne [Tue, 25 Jan 2011 17:28:34 +0000 (18:28 +0100)] 
do not call va_start instead of va_end