Commit 9af7269
[GTK] Don't invalidate style context when setting background color #2702
When setting the background color while inside an SWT.Activate event,
pending events are not processed.
The gtk_style_context_invalidate() method is deprecated in GTK3 and
doesn't have a GTK4 counterpart, as GTK invalidates the style context
automatically.
With b7dee8a, this method call was
already removed, but later reverted due to test failures in the Eclipse
Platform. Rather than removing all references, this change only does so
for the call to setBackground().
To reproduce, execute the Snippet388. When clicking on a tree/table
item, the item should be selected. This is the current behavior on
Windows and MacOS, but not on Linux.
Closes #27021 parent 1d450f7 commit 9af7269
File tree
2 files changed
+65
-1
lines changed- bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets
- tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets
2 files changed
+65
-1
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5258 | 5258 | | |
5259 | 5259 | | |
5260 | 5260 | | |
5261 | | - | |
5262 | 5261 | | |
5263 | 5262 | | |
5264 | 5263 | | |
| |||
Lines changed: 65 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
0 commit comments