Commit a35749b6 authored by Kai Lüke's avatar Kai Lüke

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:
!5
!14
parent 925ceb1d
......@@ -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)));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment