Rename methods in GParted_Core and Win_GParted classes (#741424)
class GParted_Core: label_partition() -> label_filesystem() class Win_GParted: allow_label_partition() -> allow_label_filesystem() activate_label_partition() -> activate_label_filesystem() Bug 741424 - Add support for GPT partition names
This commit is contained in:
parent
63aeb150ac
commit
3630b9c83b
|
@ -109,8 +109,8 @@ private:
|
|||
|
||||
bool remove_filesystem( const Partition & partition, OperationDetail & operationdetail ) ;
|
||||
|
||||
bool label_partition( const Partition & partition, OperationDetail & operation_detail ) ;
|
||||
|
||||
bool label_filesystem( const Partition & partition, OperationDetail & operationdetail );
|
||||
|
||||
bool change_uuid( const Partition & partition, OperationDetail & operation_detail ) ;
|
||||
|
||||
bool resize_move( const Device & device,
|
||||
|
|
|
@ -103,7 +103,7 @@ private:
|
|||
void allow_check( bool state ) {
|
||||
toggle_item( state, MENU_CHECK ) ; }
|
||||
|
||||
void allow_label_partition( bool state ) {
|
||||
void allow_label_filesystem( bool state ) {
|
||||
toggle_item( state, MENU_LABEL_PARTITION ) ; }
|
||||
|
||||
void allow_change_uuid( bool state ) {
|
||||
|
@ -168,8 +168,8 @@ private:
|
|||
void activate_manage_flags() ;
|
||||
void activate_check() ;
|
||||
void activate_change_uuid() ;
|
||||
void activate_label_partition() ;
|
||||
|
||||
void activate_label_filesystem();
|
||||
|
||||
void activate_undo();
|
||||
void remove_operation( int index = -1, bool remove_all = false ) ;
|
||||
int partition_in_operation_queue_count( const Partition & partition ) ;
|
||||
|
|
|
@ -728,7 +728,7 @@ bool GParted_Core::apply_operation_to_disk( Operation * operation )
|
|||
operation ->operation_detail ) ;
|
||||
break ;
|
||||
case OPERATION_LABEL_FILESYSTEM:
|
||||
succes = label_partition( operation ->partition_new, operation ->operation_detail ) ;
|
||||
succes = label_filesystem( operation->partition_new, operation->operation_detail );
|
||||
break ;
|
||||
case OPERATION_CHANGE_UUID:
|
||||
succes = change_uuid( operation ->partition_new, operation ->operation_detail ) ;
|
||||
|
@ -2069,7 +2069,7 @@ bool GParted_Core::remove_filesystem( const Partition & partition, OperationDeta
|
|||
return success ;
|
||||
}
|
||||
|
||||
bool GParted_Core::label_partition( const Partition & partition, OperationDetail & operationdetail )
|
||||
bool GParted_Core::label_filesystem( const Partition & partition, OperationDetail & operationdetail )
|
||||
{
|
||||
if( partition.get_filesystem_label().empty() ) {
|
||||
operationdetail.add_child( OperationDetail(
|
||||
|
|
|
@ -389,7 +389,7 @@ void Win_GParted::init_partition_menu()
|
|||
|
||||
menu_partition .items() .push_back(
|
||||
Gtk::Menu_Helpers::MenuElem( _("_Label File System"),
|
||||
sigc::mem_fun( *this, &Win_GParted::activate_label_partition ) ) );
|
||||
sigc::mem_fun( *this, &Win_GParted::activate_label_filesystem ) ) );
|
||||
MENU_LABEL_PARTITION = index++ ;
|
||||
|
||||
menu_partition .items() .push_back(
|
||||
|
@ -935,7 +935,7 @@ void Win_GParted::set_valid_operations()
|
|||
{
|
||||
allow_new( false ); allow_delete( false ); allow_resize( false ); allow_copy( false );
|
||||
allow_paste( false ); allow_format( false ); allow_toggle_busy_state( false ) ;
|
||||
allow_manage_flags( false ) ; allow_check( false ) ; allow_label_partition( false ) ;
|
||||
allow_manage_flags( false ) ; allow_check( false ) ; allow_label_filesystem( false );
|
||||
allow_change_uuid( false ); allow_info( false ) ;
|
||||
|
||||
dynamic_cast<Gtk::Label*>( menu_partition .items()[ MENU_TOGGLE_BUSY ] .get_child() )
|
||||
|
@ -1102,7 +1102,7 @@ void Win_GParted::set_valid_operations()
|
|||
|
||||
//only allow labelling of real partitions that support labelling
|
||||
if ( selected_partition .status == GParted::STAT_REAL && fs .write_label )
|
||||
allow_label_partition( true ) ;
|
||||
allow_label_filesystem( true );
|
||||
|
||||
//only allow changing UUID of real partitions that support it
|
||||
if ( selected_partition .status == GParted::STAT_REAL && fs .write_uuid )
|
||||
|
@ -2471,7 +2471,7 @@ void Win_GParted::activate_check()
|
|||
show_operationslist() ;
|
||||
}
|
||||
|
||||
void Win_GParted::activate_label_partition()
|
||||
void Win_GParted::activate_label_filesystem()
|
||||
{
|
||||
Dialog_Partition_Label dialog( selected_partition );
|
||||
dialog .set_transient_for( *this );
|
||||
|
|
Loading…
Reference in New Issue