Ok. I'll take a look. But it will take some time, I'm trying to close the
2.38 version.

Best,
Scuri


Em seg., 4 de nov. de 2019 às 21:44, Eric Wing <ewmail...@gmail.com>
escreveu:

> Hi, I want to report that I’ve found some kind of bug in the IUP GTK3
> backend concerning layout/sizing.
>
> The bug seems to have gotten a lot worse recently.
>
> Before: I was using an older build of IUP, maybe 6 months to a year
> old. With the layout I was doing in my program, text labels seem to be
> sized too small and got cutoff. This was annoying and needed to be
> reported/fixed, but I put off reporting it. I did notice the problem
> got more pronounced with newer versions of Ubuntu. I think around
> Ubuntu 18.04, the problem became really apparent.
>
> Here are screenshots from my app exhibiting the problem. This is
> running Ubuntu 19.04. The problem is most noticeable in some of the
> buttons cutting off the text because the button is sized too small and
> doesn’t fit the text.
>
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupGTK3_old_new.png
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupGTK3_old_open.png
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupGTK3_old_gen.png
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupGTK3_old_pref.png
>
>
>
> Now: I have updated to the current SVN of IUP. And now the layout is
> really broken. Testing in Ubuntu 19.04, not all the widgets stay in
> the window. So some draw off the edge of the window. While others (at
> the bottom) are completely invisible. Additionally, testing under
> Steam Runtime (which has an unthemed and older version of GTK, the
> underlying library prints error messages to the console and segfaults
> eventually in my program). (The old IUP version did not crash in
> steam-runtime nor print this message.) I have not seen these messages
> or segfault in Ubuntu 19.04, but I suspect the messages might give a
> clue to what’s going wrong.
>
>
> (process:6894): Gtk-WARNING **: Locale not supported by C library.
>         Using the fallback 'C' locale.
> Gtk-Message: Failed to load module "atk-bridge"
>
> (BlurrrGenProj:6894): Gtk-WARNING **: Toplevel size doesn't seem to
> directly depend on the size of the geometry widget from
> gtk_window_set_geometry_hints(). The geometry widget might not be in
> the window, or it might not be packed into the window appropriately
>
> (BlurrrGenProj:6894): Gtk-WARNING **: Toplevel size doesn't seem to
> directly depend on the size of the geometry widget from
> gtk_window_set_geometry_hints(). The geometry widget might not be in
> the window, or it might not be packed into the window appropriately
> Segmentation fault (core dumped)
>
>
>
> To compare and contrast, I have screenshots of this newer broken
> layout problem (Ubuntu 19.04), plus what the program looks like on
> Windows and Mac (Cocoa) where things are working as I expect. (Note: I
> had to take a fullscreen capture for Linux in this case because the
> widgets drawing outside the window were not captured by the window
> capture tools.)
>
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupGTK3_new_start.png
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupWin_start.png
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupMac_start.png
>
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupGTK3_new_new.png
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupWin_new.png
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupMac_new.png
>
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupGTK3_new_open.png
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupWin_open.png
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupMac_open.png
>
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupGTK3_new_gen.png
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupWin_gen.png
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupMac_gen.png
>
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupGTK3_new_pref.png
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupWin_pref.png
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupMac_pref.png
>
>
> Finally, to help, I have written a stripped down test version of my
> layout bug which reproduces the problem. Here are links to the code
> and screenshot references.
>
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/main_c.c
>
>
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupGTK3_new_reduced.png
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupWin_reduced.png
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupMac_reduced.png
>
>
>
> (And if you find the Blurrr SDK project helpful in case you want to
> easily build/run what I have on the different platfoms:
> https://blurrrsdk.com/tempdownload/BUGS/IupLayoutBug/IupLayoutBug.tar.gz
> )
>
> Thanks,
> Eric
>
>
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to