modern-gtk2: Rename callback after OptionComboBox class switch (!17)

Final part in a series of commits to replace Gtk::OptionMenu widgets
with GParted::OptionComboBox.

This specific commit renames the signal handler callback to match the
previously renamed combobox widget variable names.

Closes !17 - Gtk2 modernisation
This commit is contained in:
Luca Bacci 2018-08-03 15:16:22 +02:00 committed by Mike Fleetwood
parent 48d2fd2120
commit 6bfa95d427
2 changed files with 8 additions and 7 deletions

View File

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

View File

@ -127,7 +127,7 @@ void Dialog_Partition_New::set_data( const Device & device,
combo_type.set_size_request(160, -1);
combo_type.signal_changed().connect(
sigc::bind<bool>( sigc::mem_fun( *this, &Dialog_Partition_New::optionmenu_changed ), true ) );
sigc::bind<bool>(sigc::mem_fun(*this, &Dialog_Partition_New::combobox_changed), true));
table_create.attach(combo_type, 1, 2, 0, 1, Gtk::FILL);
// Partition name
@ -147,7 +147,7 @@ void Dialog_Partition_New::set_data( const Device & device,
build_filesystems_combo(device.readonly);
combo_filesystem.signal_changed().connect(
sigc::bind<bool>( sigc::mem_fun( *this, &Dialog_Partition_New::optionmenu_changed ), false ) );
sigc::bind<bool>(sigc::mem_fun(*this, &Dialog_Partition_New::combobox_changed), false));
table_create.attach(combo_filesystem, 1, 2, 2, 3, Gtk::FILL);
//Label
@ -168,8 +168,8 @@ void Dialog_Partition_New::set_data( const Device & device,
//set first enabled file system
combo_filesystem.set_active(first_creatable_fs);
optionmenu_changed( false ) ;
combobox_changed(false);
//set spinbuttons initial values
spinbutton_after .set_value( 0 ) ;
spinbutton_size.set_value( ceil( fs_limits.max_size / double(MEBIBYTE) ) );
@ -181,7 +181,7 @@ void Dialog_Partition_New::set_data( const Device & device,
// Connect signal handler for Dialog_Base_Partiton combo_alignment.
combo_alignment.signal_changed().connect(
sigc::bind<bool>( sigc::mem_fun( *this, &Dialog_Partition_New::optionmenu_changed ), false ) );
sigc::bind<bool>(sigc::mem_fun(*this, &Dialog_Partition_New::combobox_changed), false));
this ->show_all_children() ;
}
@ -310,7 +310,8 @@ const Partition & Dialog_Partition_New::Get_New_Partition()
return *new_partition;
}
void Dialog_Partition_New::optionmenu_changed( bool type )
void Dialog_Partition_New::combobox_changed(bool type)
{
g_assert( new_partition != NULL ); // Bug: Not initialised by constructor calling set_data()