Change button create to apply for partition table creation (#576374)

To further minimize the chance of accidentally creating a new partition
table, the following steps have been taken:

1)  Rename non-standard Create button to stock Apply button.
2)  Remove extra warning about erasing entire disk device.
3)  Update GParted Manual accordingly.

Closes GParted bug #576374
This commit is contained in:
Curtis Gedak 2009-07-06 15:58:08 -06:00
parent bbe8bf5479
commit 8e8bf7e544
3 changed files with 8 additions and 17 deletions

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY appversion "0.4.2">
<!ENTITY manrevision "1.0">
<!ENTITY date "January 2009">
<!ENTITY appversion "0.4.6">
<!ENTITY manrevision "1.1">
<!ENTITY date "July 2009">
<!ENTITY app "gparted">
<!ENTITY appname "GParted">
<!-- Information about the entities:
@ -490,7 +490,7 @@
</listitem>
<listitem>
<para>
Click <guibutton>Create</guibutton> to create the new partition table.
Click <guibutton>Apply</guibutton> to create the new partition table.
The application writes the new partition table to the disk device.
The application refreshes the device partition layout in the
<application>&app;</application> window.

View File

@ -76,18 +76,9 @@ Dialog_Disklabel::Dialog_Disklabel( const Glib::ustring & device_path, const std
combo_labeltypes .set_active( 0 ) ;
hbox ->pack_start( combo_labeltypes, Gtk::PACK_SHRINK ) ;
//standard warning
str_temp = "\n<i>" ;
/*TO TRANSLATORS: looks like Choosing the Create button will IMMEDIATELY ERASE ALL DATA on disk /dev/hda */
str_temp += String::ucompose( _("Choosing the Create button will IMMEDIATELY ERASE ALL DATA on disk %1"), device_path ) ;
str_temp += "\n</i>";
vbox ->pack_start( * Utils::mk_label( str_temp, true, Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, true ),
Gtk::PACK_SHRINK );
this ->add_button( Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL );
/*TO TRANSLATORS: This is the name of the button referred to in the previous text Choosing the Create button will .... */
this ->add_button( _("Create"), Gtk::RESPONSE_OK );
this ->add_button( Gtk::Stock::APPLY, Gtk::RESPONSE_APPLY );
this ->show_all_children() ;
}

View File

@ -1845,8 +1845,8 @@ void Win_GParted::activate_disklabel()
{
Dialog_Disklabel dialog( devices[ current_device ] .get_path(), gparted_core .get_disklabeltypes() ) ;
dialog .set_transient_for( *this );
if ( dialog .run() == Gtk::RESPONSE_OK )
if ( dialog .run() == Gtk::RESPONSE_APPLY )
{
if ( ! gparted_core .set_disklabel( devices[ current_device ] .get_path(), dialog .Get_Disklabel() ) )
{