[gparted] Rename combobox_change() parameter to combo_type_changed
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Rename combobox_change() parameter to combo_type_changed
- Date: Thu, 4 Mar 2021 17:17:07 +0000 (UTC)
commit 400fc8397e16bf1d276501af995287daad6bdc97
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Sun Feb 28 13:30:48 2021 +0000
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.
include/Dialog_Partition_New.h | 4 ++--
src/Dialog_Partition_New.cc | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/include/Dialog_Partition_New.h b/include/Dialog_Partition_New.h
index f1a662ab..77c0aed1 100644
--- a/include/Dialog_Partition_New.h
+++ b/include/Dialog_Partition_New.h
@@ -62,9 +62,9 @@ private:
Gtk::Entry filesystem_label_entry;
std::vector<FS> FILESYSTEMS ;
-
+
//signal handlers
- void combobox_changed(bool);
+ void combobox_changed(bool combo_type_changed);
unsigned short new_count, first_creatable_fs ;
};
diff --git a/src/Dialog_Partition_New.cc b/src/Dialog_Partition_New.cc
index 5dcdefe6..f3210d63 100644
--- a/src/Dialog_Partition_New.cc
+++ b/src/Dialog_Partition_New.cc
@@ -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() )
@@ -347,9 +347,9 @@ void Dialog_Partition_New::combobox_changed(bool type)
combo_filesystem.set_sensitive(true);
}
}
-
+
// 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]