[gnome-disk-utility] Add a "Use entire disks instead of creating partitions" check box
- From: David Zeuthen <davidz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Add a "Use entire disks instead of creating partitions" check box
- Date: Tue, 15 Dec 2009 20:00:29 +0000 (UTC)
commit 9afeec28e73fe9c23c82d10313681acd9b823e6f
Author: David Zeuthen <davidz redhat com>
Date: Tue Dec 15 14:59:03 2009 -0500
Add a "Use entire disks instead of creating partitions" check box
It currently doesn't do anything - not yet anyway.
Signed-off-by: David Zeuthen <davidz redhat com>
src/gdu-gtk/gdu-create-linux-md-dialog.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/gdu-gtk/gdu-create-linux-md-dialog.c b/src/gdu-gtk/gdu-create-linux-md-dialog.c
index 33ff025..54da53a 100644
--- a/src/gdu-gtk/gdu-create-linux-md-dialog.c
+++ b/src/gdu-gtk/gdu-create-linux-md-dialog.c
@@ -48,6 +48,8 @@ struct GduCreateLinuxMdDialogPrivate
GtkWidget *disk_selection_widget;
+ GtkWidget *use_whole_disk_check_button;
+
GtkWidget *tip_container;
GtkWidget *tip_image;
GtkWidget *tip_label;
@@ -499,6 +501,7 @@ gdu_create_linux_md_dialog_constructed (GObject *object)
GtkWidget *align;
gchar *s;
GtkWidget *disk_selection_widget;
+ GtkWidget *check_button;
ret = FALSE;
@@ -697,6 +700,13 @@ gdu_create_linux_md_dialog_constructed (GObject *object)
/* -------------------------------------------------------------------------------- */
+ check_button = gtk_check_button_new_with_mnemonic (_("Use entire disks instead of _partitions"));
+ gtk_widget_set_tooltip_text (check_button, _("If checked, the entirety of each selected disk will be used for the RAID array. Otherwise partitions will be created."));
+ dialog->priv->use_whole_disk_check_button = check_button;
+ gtk_box_pack_start (GTK_BOX (vbox2), check_button, FALSE, FALSE, 0);
+
+ /* -------------------------------------------------------------------------------- */
+
gtk_widget_grab_focus (dialog->priv->name_entry);
gtk_editable_select_region (GTK_EDITABLE (dialog->priv->name_entry), 0, 1000);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]