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

@ -62,9 +62,9 @@ private:
Gtk::Entry filesystem_label_entry; Gtk::Entry filesystem_label_entry;
std::vector<FS> FILESYSTEMS ; std::vector<FS> FILESYSTEMS ;
//signal handlers //signal handlers
void combobox_changed(bool); void combobox_changed(bool combo_type_changed);
unsigned short new_count, first_creatable_fs ; 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() g_assert( new_partition != NULL ); // Bug: Not initialised by constructor calling set_data()
// combo_type // combo_type
if ( type ) if (combo_type_changed)
{ {
if (combo_type.get_active_row_number() == TYPE_EXTENDED && if (combo_type.get_active_row_number() == TYPE_EXTENDED &&
combo_filesystem.items().size() < FILESYSTEMS.size() ) combo_filesystem.items().size() < FILESYSTEMS.size() )
@ -347,9 +347,9 @@ void Dialog_Partition_New::combobox_changed(bool type)
combo_filesystem.set_sensitive(true); combo_filesystem.set_sensitive(true);
} }
} }
// combo_filesystem and combo_alignment // combo_filesystem and combo_alignment
if ( ! type ) if (! combo_type_changed)
{ {
fs = FILESYSTEMS[combo_filesystem.get_active_row_number()]; fs = FILESYSTEMS[combo_filesystem.get_active_row_number()];
fs_limits = GParted_Core::get_filesystem_limits(fs.fstype, *new_partition); fs_limits = GParted_Core::get_filesystem_limits(fs.fstype, *new_partition);