[gnome-commander] Make do_delete() method available for other classes



commit e2f821889fcdf4a15ffc045691888bc25b9a6b7c
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Mon Aug 23 00:29:06 2021 +0200

    Make do_delete() method available for other classes
    
    ... We'll use it later on when doing a non-native move operation

 src/dialogs/gnome-cmd-delete-dialog.cc | 2 +-
 src/dialogs/gnome-cmd-delete-dialog.h  | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/dialogs/gnome-cmd-delete-dialog.cc b/src/dialogs/gnome-cmd-delete-dialog.cc
index d7483892..e82792c4 100644
--- a/src/dialogs/gnome-cmd-delete-dialog.cc
+++ b/src/dialogs/gnome-cmd-delete-dialog.cc
@@ -320,7 +320,7 @@ static gboolean update_delete_status_widgets (DeleteData *deleteData)
 }
 
 
-inline void do_delete (DeleteData *deleteData)
+void do_delete (DeleteData *deleteData)
 {
     g_return_if_fail(GNOME_CMD_IS_FILE(deleteData->gnomeCmdFiles->data));
 
diff --git a/src/dialogs/gnome-cmd-delete-dialog.h b/src/dialogs/gnome-cmd-delete-dialog.h
index 59d40b6c..217c6694 100644
--- a/src/dialogs/gnome-cmd-delete-dialog.h
+++ b/src/dialogs/gnome-cmd-delete-dialog.h
@@ -42,4 +42,6 @@ struct DeleteData
     guint64 itemsTotal{0};                // total number of items which should be deleted
 };
 
+void do_delete (DeleteData *deleteData);
+
 void gnome_cmd_delete_dialog_show (GList *files);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]