[gthumb] folder context menu: do not allow to move if cannot delete
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] folder context menu: do not allow to move if cannot delete
- Date: Sat, 19 Jun 2021 18:10:42 +0000 (UTC)
commit 76ce8e71c6340643253ea82c5b70adb5f1056d8e
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun May 30 10:56:08 2021 +0200
folder context menu: do not allow to move if cannot delete
extensions/file_manager/callbacks.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/extensions/file_manager/callbacks.c b/extensions/file_manager/callbacks.c
index 19329575..bb2bb054 100644
--- a/extensions/file_manager/callbacks.c
+++ b/extensions/file_manager/callbacks.c
@@ -1136,6 +1136,7 @@ fm__gth_browser_update_sensitivity_cb (GthBrowser *browser)
gth_window_enable_action (GTH_WINDOW (browser), "folder-context-delete", (folder != NULL) &&
g_file_info_get_attribute_boolean (folder->info, G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE));
gth_window_enable_action (GTH_WINDOW (browser), "folder-context-trash", (folder != NULL) &&
g_file_info_get_attribute_boolean (folder->info, G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH));
gth_window_enable_action (GTH_WINDOW (browser), "folder-context-cut", (folder != NULL) &&
g_file_info_get_attribute_boolean (folder->info, G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE));
+ gth_window_enable_action (GTH_WINDOW (browser), "folder-context-move-to", (folder != NULL) &&
g_file_info_get_attribute_boolean (folder->info, G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE));
gth_window_enable_action (GTH_WINDOW (browser), "rename", ((folder != NULL) &&
g_file_info_get_attribute_boolean (folder->info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE)) || (n_selected > 0));
_g_object_unref (folder);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]