summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2009-04-30 16:33:12 +0200
committerTomas Bzatek <tbzatek@redhat.com>2009-04-30 16:33:12 +0200
commit9ceea791bba7f107a198f024c4ca0ac1ad0d3a2a (patch)
treecf5073e5e9ae4c2a313d5f55b0fb20b253233460
parent7f92162788281c40298f88ba4d1902ad19142d1c (diff)
downloadgnome-disk-utility-9ceea791bba7f107a198f024c4ca0ac1ad0d3a2a.tar.gz
gnome-disk-utility-9ceea791bba7f107a198f024c4ca0ac1ad0d3a2a.tar.xz
gnome-disk-utility-9ceea791bba7f107a198f024c4ca0ac1ad0d3a2a.zip
don't display the confirmation dialog
-rw-r--r--src/gdu-format-tool/format-window-operation.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/gdu-format-tool/format-window-operation.c b/src/gdu-format-tool/format-window-operation.c
index 9ba9d8d..6b85f38 100644
--- a/src/gdu-format-tool/format-window-operation.c
+++ b/src/gdu-format-tool/format-window-operation.c
@@ -923,9 +923,6 @@ do_format (FormatDialogPrivate *priv)
FormatProcessData *data;
GduPresentable *toplevel_presentable;
GduDevice *toplevel_device;
- char *primary;
- char *secondary;
- char *drive_name;
gboolean create_new_part_table = FALSE;
gboolean create_new_partition = FALSE;
GduKnownFilesystem *kfs;
@@ -936,11 +933,8 @@ do_format (FormatDialogPrivate *priv)
data = g_new0 (FormatProcessData, 1);
data->priv = priv;
data->job_progress_pulse_timer_id = 0;
- primary = NULL;
- secondary = NULL;
toplevel_presentable = NULL;
toplevel_device = NULL;
- drive_name = NULL;
data->presentable = g_object_ref (priv->presentable);
@@ -982,7 +976,6 @@ do_format (FormatDialogPrivate *priv)
goto out;
}
- drive_name = gdu_presentable_get_name (toplevel_presentable);
part_combo_item_index = gtk_combo_box_get_active (GTK_COMBO_BOX (priv->part_type_combo_box));
if (part_combo_item_index < 0 || part_combo_item_index >= (int) G_N_ELEMENTS (filesystem_combo_items)) {
g_warning ("%s: no valid filesystem type specified", __FUNCTION__);
@@ -1001,51 +994,8 @@ do_format (FormatDialogPrivate *priv)
g_object_unref (kfs);
}
- primary = g_strconcat ("<b><big>", _("Are you sure you want to create a new file system, deleting existing data ?"), "</big></b>", NULL);
-
- if (gdu_device_is_partition (data->device)) {
- if (gdu_device_is_removable (toplevel_device)) {
- secondary = g_strdup_printf (_("All data on partition %d on the media in \"%s\" will be "
- "irrecovably erased. "
- "Make sure important data is backed up. "
- "This action cannot be undone."),
- gdu_device_partition_get_number (data->device),
- drive_name);
- } else {
- secondary = g_strdup_printf (_("All data on partition %d of \"%s\" will be "
- "irrecovably erased. "
- "Make sure important data is backed up. "
- "This action cannot be undone."),
- gdu_device_partition_get_number (data->device),
- drive_name);
- }
- } else {
- if (gdu_device_is_removable (toplevel_device)) {
- secondary = g_strdup_printf (_("All data on the media in \"%s\" will be irrecovably erased. "
- "Make sure important data is backed up. "
- "This action cannot be undone."),
- drive_name);
- } else {
- secondary = g_strdup_printf (_("All data on the drive \"%s\" will be irrecovably erased. "
- "Make sure important data is backed up. "
- "This action cannot be undone."),
- drive_name);
- }
-
- }
-
update_ui_progress (priv, data, TRUE);
- if (! gdu_util_delete_confirmation_dialog (GTK_WIDGET (priv->dialog),
- "",
- primary,
- secondary,
- _("C_reate")))
- {
- free_format_action_data (data);
- goto out;
- }
-
if (filesystem_combo_items[part_combo_item_index].encrypted) {
data->encrypt_passphrase = gdu_util_dialog_ask_for_new_secret (GTK_WIDGET (priv->dialog),
&data->save_in_keyring,
@@ -1082,9 +1032,6 @@ out:
g_object_unref (toplevel_presentable);
if (toplevel_device != NULL)
g_object_unref (toplevel_device);
- g_free (primary);
- g_free (secondary);
- g_free (drive_name);
}
/* ---------------------------------------------------------------------------------------------------- */