Commit 0d74e9e
committed
Fix Gtk3Backend button-press-event signal handler crash
The Gtk 3 docs say that the signal handler should take GdkEventButton
as a value, but in reality it seems that we have to take it as
a pointer. To reproduce the issue, double click any clickable view (e.g.
a TextField) in a Gtk3Backend app. The crash occurs because the
incorrect argument size causes the unmanaged SignalBox pointer to be
some random pointer. Why the crash didn't occur on non Rocky Linux
platforms still evades me.1 parent 84015e4 commit 0d74e9e
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
27 | 35 | | |
28 | 36 | | |
29 | 37 | | |
30 | | - | |
| 38 | + | |
31 | 39 | | |
32 | 40 | | |
33 | | - | |
| 41 | + | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
| |||
0 commit comments