Skip to content

[GTK4] Fix GtkWidget warning when updating shell bounds #2422

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

Merged
merged 1 commit into from
Aug 16, 2025

Conversation

ptziegler
Copy link
Contributor

This is a continuation of bd1cdd6 where a 'GTK_IS_WIDGET (widget)' warning is logged when measuring the height of a NULL titlebar. This issue appears when e.g. calling setBounds() on a Shell.

To reproduce this warning, run e.g. Snippet16.

@ptziegler ptziegler added the gtk4 GTK4 issues label Aug 15, 2025
Copy link
Contributor

github-actions bot commented Aug 15, 2025

Test Results

   546 files  ±0     546 suites  ±0   34m 5s ⏱️ + 5m 6s
 4 425 tests ±0   4 407 ✅  - 1   18 💤 +1  0 ❌ ±0 
16 746 runs  ±0  16 617 ✅  - 2  129 💤 +2  0 ❌ ±0 

Results for commit 3177545. ± Comparison against base commit d7f6b38.

This pull request skips 1 test.
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser ‑ test_setUrl_remote[browser flags: 524,288]

♻️ This comment has been updated with latest results.

@akurtakov akurtakov removed the gtk4 GTK4 issues label Aug 16, 2025
@akurtakov
Copy link
Member

I have removed the gtk4 label and added it to the project instead. The gtk4 label causes linux verification gha to run with gtk4 but this still causes crash of the whole build.

@akurtakov
Copy link
Member

Warning is printed on X11 only, the assumption seems to have been always correct on wayland but x11 wasn't considered at all. Very good catch for the gtk_window_get_titlebar usage!

This is a continuation of bd1cdd6 where
a 'GTK_IS_WIDGET (widget)' warning is logged when measuring the height
of a NULL titlebar. This issue appears when e.g. calling setBounds() on
a Shell.

To reproduce this warning, run e.g. Snippet16.
@akurtakov akurtakov force-pushed the gtk4-shell-warnings branch from c1c154c to 3177545 Compare August 16, 2025 12:46
Copy link
Member

@akurtakov akurtakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this one. As it touches GTK 4 code paths I merge it now.

@akurtakov akurtakov merged commit a641cdb into eclipse-platform:master Aug 16, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants