diff options
author | lukefromdc <[email protected]> | 2023-11-25 12:55:12 -0500 |
---|---|---|
committer | mouse <[email protected]> | 2023-12-01 11:24:43 +0800 |
commit | 84fa213f8d0de6eaaf4b359877c3a03abe9cc00e (patch) | |
tree | cb1b35408aa9dc0dee3d7f06f45ccabc8dc7c4d7 | |
parent | f000fc0c2f027404d4a093e44426702b4a684f14 (diff) | |
download | caja-84fa213f8d0de6eaaf4b359877c3a03abe9cc00e.tar.bz2 caja-84fa213f8d0de6eaaf4b359877c3a03abe9cc00e.tar.xz |
Do not show "Organize Desktop by Name" when desktop icons are locked
*When icon positions are locked, do not show "Organize Desktop by Name" in the desktop context menu
-rw-r--r-- | src/file-manager/fm-icon-view.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c index 04ff915f..83517273 100644 --- a/src/file-manager/fm-icon-view.c +++ b/src/file-manager/fm-icon-view.c @@ -1674,11 +1674,17 @@ action_lock_icons_position_callback (GtkAction *action, FMIconView *icon_view; CajaFile *file; gboolean lock_icons_position; + GtkAction *action_other; icon_view = FM_ICON_VIEW (user_data); lock_icons_position = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)); + action_other = gtk_action_group_get_action (icon_view->details->icon_action_group, + FM_ACTION_CLEAN_UP); + gtk_action_set_visible (action_other, !lock_icons_position); + + file = fm_directory_view_get_directory_as_file (FM_DIRECTORY_VIEW (icon_view)); fm_icon_view_set_directory_lock_icons_position (icon_view, file, |