Skip to content

Widget sizing issues. #1470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jtappin opened this issue Jan 11, 2023 · 7 comments · Fixed by #1483
Closed

Widget sizing issues. #1470

jtappin opened this issue Jan 11, 2023 · 7 comments · Fixed by #1483

Comments

@jtappin
Copy link

jtappin commented Jan 11, 2023

This is just an initial heads-up as I've not yet made a demo routine to show the problem.

Since Manjaro dropped support for WxWidgets gtk-2, there have been several problems with widget bases being too small to show all of the widgets contained within. The biggest problem seems to be when there are tab widgets (but not exclusively).

At present the two routines that are showing the problem are probably too complex to be useful as test beds (graffer and also a save file explorer that uses the full capabilities of Craig Markwardt's CMS package).

The graffer case is accompanied with lots of messages like:

(gdl:1094233): Gtk-CRITICAL **: 10:40:49.327: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkNotebook

No error messages from examine_save which does not have tab widgets.

Will post demos when I have something useful.

GDL from GIT to commit: 0629d02
WX Widgets: wxwidgets-common 3.2.1-1, wxwidgets-gtk3 3.2.1-1

@jtappin
Copy link
Author

jtappin commented Jan 11, 2023

Here is quick and dirty demo. Can be run with or without the /subtab keyword.

On my system, without subtab then the second tab only shows six of seven text widgets.
With subtab, then on the first tab, the first subtab only shows 4 1/2 lines and the second only 3 1/2 buttons.
In neither case can the quit button be accessed.

tab_test.pro

@GillesDuvert
Copy link
Contributor

GillesDuvert commented Jan 11, 2023

Thanks, this was hanging around from som time here.
GTK is very fussy and such message annoy a lot of people using a lot of applications, as one can easily check on the web.
Perhaps there is a way to make GTK silent.

@GillesDuvert
Copy link
Contributor

Concerning the tab sizing, this is a bug and your example is very helpful.

@jtappin
Copy link
Author

jtappin commented Jan 12, 2023

The fact that there wasn't a problem with WXWidgets-gtk2 may also be useful.
Tabs aren't the only widgets with sizing problems, but they are the worst. The other case I have, I've not yet been able to isolate it in a code that doesn't depend on quite a few extra routines that are not part of the GDL distribution.

@GillesDuvert
Copy link
Contributor

widget sizing with wxWidgets has been THE problem from the start, because the process of widget creation in GDL is not synchronous with the real creation in wxWidgets, itself with sizes and default sizes depending on the underlying 'real' widget library (GTK...) . All of this construct is very fragile indeed.

@GillesDuvert
Copy link
Contributor

Annoying GTK messages will be supressed by #1472.
Widget sizing will be examined later.

GillesDuvert added a commit that referenced this issue Jan 13, 2023
GillesDuvert added a commit to GillesDuvert/gdl that referenced this issue Jan 17, 2023
@GillesDuvert
Copy link
Contributor

Fixed in #1483

@GillesDuvert GillesDuvert linked a pull request Jan 17, 2023 that will close this issue
GillesDuvert added a commit that referenced this issue Jan 18, 2023
Solves Issue #1470 and more : Changes OK, apparently --widget-compat has no effect on Windows and OSX (???) ths is unimportant now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants