Commit a360eeb
committed
Fix PaintListener for GTK3 Table and Tree widgets
GTK3 emits two draw-related signals:
* EXPOSE_EVENT_INVERSE (after=false) → before GTK draws items
* EXPOSE_EVENT (after=true) → after GTK draws items
SWT historically dispatched SWT.Paint during EXPOSE_EVENT_INVERSE.
For widgets like Table and Tree, GTK draws all rows/cells after this
point.
Result: anything drawn in a PaintListener was immediately overwritten.1 parent 24b4c49 commit a360eeb
2 files changed
Lines changed: 80 additions & 2 deletions
Lines changed: 40 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2310 | 2310 | | |
2311 | 2311 | | |
2312 | 2312 | | |
2313 | | - | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
2314 | 2319 | | |
2315 | 2320 | | |
2316 | 2321 | | |
| |||
4116 | 4121 | | |
4117 | 4122 | | |
4118 | 4123 | | |
| 4124 | + | |
| 4125 | + | |
| 4126 | + | |
| 4127 | + | |
| 4128 | + | |
| 4129 | + | |
| 4130 | + | |
4119 | 4131 | | |
4120 | 4132 | | |
4121 | 4133 | | |
| |||
4194 | 4206 | | |
4195 | 4207 | | |
4196 | 4208 | | |
| 4209 | + | |
| 4210 | + | |
| 4211 | + | |
| 4212 | + | |
| 4213 | + | |
| 4214 | + | |
| 4215 | + | |
| 4216 | + | |
| 4217 | + | |
| 4218 | + | |
| 4219 | + | |
| 4220 | + | |
| 4221 | + | |
| 4222 | + | |
| 4223 | + | |
| 4224 | + | |
| 4225 | + | |
| 4226 | + | |
| 4227 | + | |
| 4228 | + | |
| 4229 | + | |
| 4230 | + | |
| 4231 | + | |
| 4232 | + | |
| 4233 | + | |
| 4234 | + | |
| 4235 | + | |
4197 | 4236 | | |
4198 | 4237 | | |
4199 | 4238 | | |
| |||
Lines changed: 40 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2480 | 2480 | | |
2481 | 2481 | | |
2482 | 2482 | | |
2483 | | - | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
2484 | 2489 | | |
2485 | 2490 | | |
2486 | 2491 | | |
| |||
4192 | 4197 | | |
4193 | 4198 | | |
4194 | 4199 | | |
| 4200 | + | |
| 4201 | + | |
| 4202 | + | |
| 4203 | + | |
| 4204 | + | |
| 4205 | + | |
| 4206 | + | |
4195 | 4207 | | |
4196 | 4208 | | |
4197 | 4209 | | |
| |||
4267 | 4279 | | |
4268 | 4280 | | |
4269 | 4281 | | |
| 4282 | + | |
| 4283 | + | |
| 4284 | + | |
| 4285 | + | |
| 4286 | + | |
| 4287 | + | |
| 4288 | + | |
| 4289 | + | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
| 4293 | + | |
| 4294 | + | |
| 4295 | + | |
| 4296 | + | |
| 4297 | + | |
| 4298 | + | |
| 4299 | + | |
| 4300 | + | |
| 4301 | + | |
| 4302 | + | |
| 4303 | + | |
| 4304 | + | |
| 4305 | + | |
| 4306 | + | |
| 4307 | + | |
| 4308 | + | |
4270 | 4309 | | |
4271 | 4310 | | |
4272 | 4311 | | |
| |||
0 commit comments