Re: [Iup-users] CID 259157 (#2 of 2): Division or modulo by zero (DIVIDE_BY_ZERO)

2019-05-28 Thread Antonio Scuri
Fixed and committed to the SVN Em sáb, 25 de mai de 2019 às 09:50, Ranier VF escreveu: > Hi, > --- \dll\iup\a\src\iup_expander.c Mon Oct 29 14:53:02 2018 > +++ iup_expander.c Sat May 25 09:49:19 2019 > @@ -384,9 +384,10 @@ >int frame_time = iupAttribGetInt(ih, "FRAMETIME"); >

Re: [Iup-users] CID 341005 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)

2019-05-28 Thread Antonio Scuri
Fixed and committed to SVN. Em sáb, 25 de mai de 2019 às 09:11, Ranier VF escreveu: > Hi, > --- ..\..\a\srcfiledlg\iupwin_newfiledlg.cppFri Sep 14 17:33:33 2018 > +++ iupwin_newfiledlg.cpp Sat May 25 09:09:00 2019 > @@ -719,7 +719,7 @@ > psiResult->Release(); >} >

Re: [Iup-users] CID 259217 (#1 of 1): Dereference null return value (NULL_RETURNS)4. dereference: Dereferencing a null pointer cbDragDataSize.

2019-05-28 Thread Antonio Scuri
Fixed and committed to the SVN. Thanks for reporting. Best, Scuri Em sáb, 25 de mai de 2019 às 09:37, Ranier VF escreveu: > Hi, > Fix iupwin_dragdrop.c: > --- \dll\iup\a\src\win\iupwin_dragdrop.cWed Apr 24 17:12:36 2019 > +++ iupwin_dragdrop.c Sat May 25 09:34:29 2019 > @@ -391,7

Re: [Iup-users] CID 341015 (#1 of 1): Division or modulo by zero (DIVIDE_BY_ZERO)

2019-05-28 Thread Antonio Scuri
If that function is called with max ==0 then it is a much more serious error than a divide by zero, and we would mascarade the error by adding such code. Best, Scuri Em sáb, 25 de mai de 2019 às 08:54, Ranier VF escreveu: > Hi, > Fix iup_flatscrollbar.c: > ---

Re: [Iup-users] Spin in GTK

2019-05-28 Thread Antonio Scuri
Yes. You can try IupSpin / IupSpinBox for that. Best, Scuri Em ter, 28 de mai de 2019 às 11:01, Johann Philippe escreveu: > > Thanks for the answer. > I think i'll rather write a homemade spin with two vertical buttons, in my > project, that's probably the easy way to go if I want to keep

Re: [Iup-users] Spin in GTK

2019-05-28 Thread Johann Philippe via Iup-users
Thanks for the answer. I think i'll rather write a homemade spin with two vertical buttons, in my project, that's probably the easy way to go if I want to keep GTK3 at the same time... Le mardi 28 mai 2019 à 15:51:35 UTC+2, Antonio Scuri a écrit :   Not that I know of. This was a

Re: [Iup-users] Spin in GTK

2019-05-28 Thread Antonio Scuri
Not that I know of. This was a GTK decision. You can find the documentation here: https://developer.gnome.org/gtk3/stable/GtkSpinButton.html I would love to change that. I don't like the spin side by side. It seems to have something vertical in the CSS, but I have no idea how to use that. If

[Iup-users] iup_attrib.c Prevent resource leak: CID 210676 Coverity

2019-05-28 Thread Ranier VF
Hi, This patch try fixes : 1. Coverity and GCC report about absence break into switch or implicit fallthrough: https://stackoverflow.com/questions/45129741/gcc-7-wimplicit-fallthrough-warnings-and-portable-way-to-clear-them https://en.wiktionary.org/wiki/fall-through

Re: [Iup-users] Spin in GTK

2019-05-28 Thread Johann Philippe via Iup-users
*old vertical style.. Le lundi 27 mai 2019 à 22:05:29 UTC+2, Johann Philippe via Iup-users a écrit : Hello, Recently downloaded the last IUP (also last CD and IM), which work great. Just one thing : it seems it made me pass from GTK2 to GTK3 - and the spin buttons (from iup text)