Rename combobox_change() parameter to combo_type_changed

"Type" was rather a generic name.  Use "combo_type_changed" which makes
it clear that the boolean parameter indicates whether a change to
combo_type or one of the other ComboBoxes triggered this callback.
This commit is contained in:
Mike Fleetwood 2021-02-28 13:30:48 +00:00 committed by Curtis Gedak
parent e91db19e30
commit 400fc8397e
2 changed files with 6 additions and 6 deletions

View File

@ -64,7 +64,7 @@ private:
std::vector<FS> FILESYSTEMS ;
//signal handlers
void combobox_changed(bool);
void combobox_changed(bool combo_type_changed);
unsigned short new_count, first_creatable_fs ;
};

View File

@ -325,12 +325,12 @@ const Partition & Dialog_Partition_New::Get_New_Partition()
}
void Dialog_Partition_New::combobox_changed(bool type)
void Dialog_Partition_New::combobox_changed(bool combo_type_changed)
{
g_assert( new_partition != NULL ); // Bug: Not initialised by constructor calling set_data()
// combo_type
if ( type )
if (combo_type_changed)
{
if (combo_type.get_active_row_number() == TYPE_EXTENDED &&
combo_filesystem.items().size() < FILESYSTEMS.size() )
@ -349,7 +349,7 @@ void Dialog_Partition_New::combobox_changed(bool type)
}
// combo_filesystem and combo_alignment
if ( ! type )
if (! combo_type_changed)
{
fs = FILESYSTEMS[combo_filesystem.get_active_row_number()];
fs_limits = GParted_Core::get_filesystem_limits(fs.fstype, *new_partition);