Skip to content

Conversation

@akurtakov
Copy link
Member

Error is like:

(SWT:339274): Gtk-CRITICAL **: 17:08:42.533: gtk_widget_compute_point:
assertion 'GTK_IS_WIDGET (widget)' failed

The problem comes from Control.getSurfaceOrigin method relying on fixedHandle to translate coordinated but not every widget has such, use eventHandle() instead.

Tested with Snippet165.

@akurtakov akurtakov self-assigned this Jan 7, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

Test Results (linux)

   88 files  ±0     88 suites  ±0   14m 15s ⏱️ -8s
4 561 tests ±0  4 341 ✅ ±0  220 💤 ±0  0 ❌ ±0 
  211 runs  ±0    208 ✅ ±0    3 💤 ±0  0 ❌ ±0 

Results for commit 739ae27. ± Comparison against base commit 23df87e.

♻️ This comment has been updated with latest results.

@akurtakov
Copy link
Member Author

This is kind of prereq for #2895 as it fails for chevron button positioning.

@akurtakov akurtakov force-pushed the ctabfolder branch 2 times, most recently from 6bcc101 to b381a9f Compare January 9, 2026 16:39
Error is like:
```
(SWT:339274): Gtk-CRITICAL **: 17:08:42.533: gtk_widget_compute_point:
assertion 'GTK_IS_WIDGET (widget)' failed
```

The problem comes from Control.getSurfaceOrigin method relying on
fixedHandle (even when there is not one) use
eventHandle() in this case.

Tested with Snippet165.
@akurtakov akurtakov merged commit 7a6857b into eclipse-platform:master Jan 9, 2026
19 checks passed
@github-project-automation github-project-automation bot moved this to Done in SWT work Jan 9, 2026
akurtakov added a commit to akurtakov/eclipse.platform.swt that referenced this pull request Jan 27, 2026
Clicking on CTabItem close button causes:
```
(SWT:2017253): Gtk-CRITICAL **: 21:06:02.496: gtk_widget_compute_point:
assertion 'GTK_IS_WIDGET (widget)' failed
```
In this case fixedHandle is 0 and eventHandle has to be used like in
eclipse-platform#2940
akurtakov added a commit to akurtakov/eclipse.platform.swt that referenced this pull request Jan 27, 2026
Clicking on CTabItem close button causes:
```
(SWT:2017253): Gtk-CRITICAL **: 21:06:02.496: gtk_widget_compute_point:
assertion 'GTK_IS_WIDGET (widget)' failed
```
In this case fixedHandle is 0 and eventHandle has to be used like in
eclipse-platform#2940
akurtakov added a commit that referenced this pull request Jan 27, 2026
Clicking on CTabItem close button causes:
```
(SWT:2017253): Gtk-CRITICAL **: 21:06:02.496: gtk_widget_compute_point:
assertion 'GTK_IS_WIDGET (widget)' failed
```
In this case fixedHandle is 0 and eventHandle has to be used like in
#2940
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.

1 participant