Commit 214131e
Add !NEMO_IS_DESKTOP_WINDOW() guards to callbacks
Some action callbacks are already guarded with !NEMO_IS_DESKTOP_WINDOW()
checks, but not enough unfortunately. Guards are added to these
callbacks for the following justifications:
CTRL+Q: action_close_all_windows_callback (segfaults)
CTRL+L: action_menu_edit_location_callback (does nothing but print
nonfatal assertion failures)
CTRL+D: action_add_bookmark_callback (adds bogus bookmark)
CTRL+B: action_edit_bookmarks_callback (crashes nemo-desktop with fatal
assertion failure)
ALT+P: action_plugins_callback (fails to load extensions)
F9: action_show_hide_sidebar_callback/nemo_window_get_sidebar_id
(silently changes global sidebar preference even though desktop has no
sidebar)
/ or ~: nemo_window_prompt_for_location (does nothing but print nonfatal
assertion failures)1 parent 4103e11 commit 214131e
2 files changed
+35
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
| 311 | + | |
311 | 312 | | |
312 | | - | |
| 313 | + | |
| 314 | + | |
313 | 315 | | |
314 | 316 | | |
315 | 317 | | |
| |||
525 | 527 | | |
526 | 528 | | |
527 | 529 | | |
528 | | - | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
529 | 533 | | |
530 | 534 | | |
531 | 535 | | |
| |||
579 | 583 | | |
580 | 584 | | |
581 | 585 | | |
582 | | - | |
| 586 | + | |
| 587 | + | |
583 | 588 | | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
588 | 594 | | |
589 | 595 | | |
590 | 596 | | |
| |||
770 | 776 | | |
771 | 777 | | |
772 | 778 | | |
| 779 | + | |
773 | 780 | | |
| 781 | + | |
774 | 782 | | |
775 | 783 | | |
776 | 784 | | |
777 | 785 | | |
778 | 786 | | |
779 | 787 | | |
| 788 | + | |
780 | 789 | | |
| 790 | + | |
781 | 791 | | |
782 | 792 | | |
783 | 793 | | |
| |||
935 | 945 | | |
936 | 946 | | |
937 | 947 | | |
938 | | - | |
939 | | - | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
940 | 952 | | |
941 | 953 | | |
942 | 954 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
308 | 309 | | |
309 | 310 | | |
310 | 311 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
316 | 319 | | |
317 | 320 | | |
318 | 321 | | |
| |||
2270 | 2273 | | |
2271 | 2274 | | |
2272 | 2275 | | |
2273 | | - | |
| 2276 | + | |
| 2277 | + | |
2274 | 2278 | | |
2275 | | - | |
| 2279 | + | |
2276 | 2280 | | |
2277 | | - | |
| 2281 | + | |
| 2282 | + | |
2278 | 2283 | | |
2279 | 2284 | | |
2280 | 2285 | | |
| |||
0 commit comments