"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Dialog_Base_Partition.cc" between
gparted-1.1.0.tar.gz and gparted-1.2.0.tar.gz

About: GParted is a graphical partition editor for creating, reorganizing, and deleting disk partitions (using GNU libparted).

Dialog_Base_Partition.cc  (gparted-1.1.0):Dialog_Base_Partition.cc  (gparted-1.2.0)
skipping to change at line 118 skipping to change at line 118
grid_resize.attach(*Utils::mk_label(Glib::ustring(_("Align to:")) + "\t") , 0, 3, 1, 1); grid_resize.attach(*Utils::mk_label(Glib::ustring(_("Align to:")) + "\t") , 0, 3, 1, 1);
// Fill partition alignment combo // Fill partition alignment combo
/* TO TRANSLATORS: Option for combo box "Align to:" */ /* TO TRANSLATORS: Option for combo box "Align to:" */
combo_alignment.items().push_back(_("Cylinder")); combo_alignment.items().push_back(_("Cylinder"));
/* TO TRANSLATORS: Option for combo box "Align to:" */ /* TO TRANSLATORS: Option for combo box "Align to:" */
combo_alignment.items().push_back(_("MiB")); combo_alignment.items().push_back(_("MiB"));
/* TO TRANSLATORS: Option for combo box "Align to:" */ /* TO TRANSLATORS: Option for combo box "Align to:" */
combo_alignment.items().push_back(_("None")); combo_alignment.items().push_back(_("None"));
combo_alignment.set_active(ALIGN_MEBIBYTE); // Default setting // Default setting for partition table alignment
if (device.disktype == "amiga")
combo_alignment.set_active(ALIGN_CYLINDER);
else
combo_alignment.set_active(ALIGN_MEBIBYTE);
grid_resize.attach(combo_alignment, 1, 3, 1, 1); grid_resize.attach(combo_alignment, 1, 3, 1, 1);
// Set vexpand on all grid_resize child widgets // Set vexpand on all grid_resize child widgets
std::vector<Gtk::Widget*> children = grid_resize.get_children(); std::vector<Gtk::Widget*> children = grid_resize.get_children();
for (std::vector<Gtk::Widget*>::iterator it = children.begin(); it != chi ldren.end(); ++it) for (std::vector<Gtk::Widget*>::iterator it = children.begin(); it != chi ldren.end(); ++it)
(*it)->set_vexpand(); (*it)->set_vexpand();
this->add_button( Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL ); this->add_button( Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL );
this ->show_all_children() ; this ->show_all_children() ;
skipping to change at line 227 skipping to change at line 231
default: default:
new_partition->alignment = ALIGN_MEBIBYTE; new_partition->alignment = ALIGN_MEBIBYTE;
break; break;
} }
new_partition->free_space_before = Sector(spinbutton_before.get_value_as_ int()) * (MEBIBYTE / new_partition->sector_size); new_partition->free_space_before = Sector(spinbutton_before.get_value_as_ int()) * (MEBIBYTE / new_partition->sector_size);
// If the original before value has not changed, then set indicator to ke ep start sector unchanged. // If the original before value has not changed, then set indicator to ke ep start sector unchanged.
if ( ORIG_BEFORE == spinbutton_before .get_value_as_int() ) if ( ORIG_BEFORE == spinbutton_before .get_value_as_int() )
new_partition->strict_start = TRUE; new_partition->strict_start = true;
snap_to_alignment(m_device, *new_partition); snap_to_alignment(m_device, *new_partition);
//update partition usage //update partition usage
if ( new_partition->sector_usage_known() ) if ( new_partition->sector_usage_known() )
{ {
Sector new_size = new_partition->get_sector_length(); Sector new_size = new_partition->get_sector_length();
if ( old_size == new_size ) if ( old_size == new_size )
{ {
//Pasting into new same sized partition or moving partiti on keeping the same size, //Pasting into new same sized partition or moving partiti on keeping the same size,
 End of changes. 2 change blocks. 
2 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)