[gparted] Rename method to DialogFeatures::load_one_filesystem()



commit 57e8ac50f4d9adfa6af608400d9fec15f13993f9
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Fri Apr 19 20:16:40 2019 +0100

    Rename method to DialogFeatures::load_one_filesystem()
    
    To better reflect that it is loading the supported actions for one file
    system into the treeview, just like it's parent load_filesystems() is
    initiating the loading for all the file systems.

 include/DialogFeatures.h | 2 +-
 src/DialogFeatures.cc    | 9 +++++----
 2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/include/DialogFeatures.h b/include/DialogFeatures.h
index ec83fc25..3b4ed454 100644
--- a/include/DialogFeatures.h
+++ b/include/DialogFeatures.h
@@ -39,7 +39,7 @@ public:
        void load_filesystems(const std::vector<FS>& fss);
 
 private:
-       void show_filesystem( const FS & fs ) ;
+       void load_one_filesystem(const FS& fs);
 
        Gtk::Frame legend_frame ;
        Gtk::TreeView treeview_filesystems;
diff --git a/src/DialogFeatures.cc b/src/DialogFeatures.cc
index b168d504..c03eed4f 100644
--- a/src/DialogFeatures.cc
+++ b/src/DialogFeatures.cc
@@ -161,7 +161,7 @@ void DialogFeatures::load_filesystems(const std::vector<FS>& fss)
        for (unsigned i = 0; i < fss.size(); i++)
        {
                if (GParted_Core::supported_filesystem(fss[i].filesystem))
-                       show_filesystem(fss[i]);
+                       load_one_filesystem(fss[i]);
        }
 
        // Find and add "other" at the end, for all the basic supported file systems.
@@ -169,13 +169,14 @@ void DialogFeatures::load_filesystems(const std::vector<FS>& fss)
        {
                if (fss[i].filesystem == FS_OTHER)
                {
-                       show_filesystem(fss[i]);
+                       load_one_filesystem(fss[i]);
                        break;
                }
        }
 }
-               
-void DialogFeatures::show_filesystem( const FS & fs )
+
+
+void DialogFeatures::load_one_filesystem(const FS& fs)
 {
        treerow = *( liststore_filesystems ->append() );
        treerow[ treeview_filesystems_columns .filesystem ] = Utils::get_filesystem_string( fs .filesystem ) ;


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