Commit 3b693d4
committed
Prefer stored title over GTK label in SetIcon
Updated MenuItem::SetIcon to use the stored title if available when preserving the label text, falling back to the GTK widget label only if the title is not set. This ensures consistency when the title is managed internally.1 parent 6439cea commit 3b693d4
File tree
1 file changed
+9
-3
lines changed- src/platform/linux
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
280 | | - | |
281 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
282 | 288 | | |
283 | 289 | | |
284 | 290 | | |
| |||
0 commit comments