[gnome-disk-utility] Don't require filesystem label when formatting
- From: Kai Lüke <kailueke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Don't require filesystem label when formatting
- Date: Sun, 5 May 2019 18:38:30 +0000 (UTC)
commit a35749b6d25c656cf19ea5ff7be6ccb11d0f80c4
Author: Kai Lüke <kailueke riseup net>
Date: Sun Apr 7 23:40:38 2019 +0200
Don't require filesystem label when formatting
The format dialog required the used to specify
the filesystem label in order to proceed.
Lift this restriction and rely on the default
representation of GVfs for filesystems without
labels.
Original discussion in:
https://gitlab.gnome.org/GNOME/gnome-disk-utility/merge_requests/5
https://gitlab.gnome.org/GNOME/gnome-disk-utility/merge_requests/14
src/disks/gducreatefilesystempage.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/src/disks/gducreatefilesystempage.c b/src/disks/gducreatefilesystempage.c
index c4b5cd8d..8bf4c2e1 100644
--- a/src/disks/gducreatefilesystempage.c
+++ b/src/disks/gducreatefilesystempage.c
@@ -28,8 +28,6 @@ struct _GduCreateFilesystemPagePrivate
GtkRadioButton *windows_radiobutton;
GtkRadioButton *all_radiobutton;
GtkRadioButton *other_radiobutton;
-
- gboolean complete;
};
enum
@@ -52,15 +50,10 @@ gdu_create_filesystem_page_get_property (GObject *object,
GValue *value,
GParamSpec *pspec)
{
- GduCreateFilesystemPage *page = GDU_CREATE_FILESYSTEM_PAGE (object);
- GduCreateFilesystemPagePrivate *priv;
-
- priv = gdu_create_filesystem_page_get_instance_private (page);
-
switch (property_id)
{
case PROP_COMPLETE:
- g_value_set_boolean (value, priv->complete);
+ g_value_set_boolean (value, TRUE);
break;
default:
@@ -162,9 +155,6 @@ on_fs_name_changed (GObject *object, GParamSpec *pspec, gpointer user_data)
priv = gdu_create_filesystem_page_get_instance_private (page);
- priv->complete = gtk_entry_get_text_length (priv->name_entry) > 0; /* require a label */
- g_object_notify (G_OBJECT (page), "complete");
-
_gtk_entry_buffer_truncate_bytes (gtk_entry_get_buffer (priv->name_entry),
gdu_utils_get_max_label_length (gdu_create_filesystem_page_get_fs
(page)));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]