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.
This commit is contained in:
Mike Fleetwood 2019-04-19 20:16:40 +01:00
parent 4939b941dd
commit 57e8ac50f4
2 changed files with 6 additions and 5 deletions

View file

@ -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;

View file

@ -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 ) ;