summaryrefslogtreecommitdiff
path: root/gtk/gtkmountoperation.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2009-04-08 10:02:52 -0400
committerMatthias Clasen <mclasen@redhat.com>2009-04-08 12:59:10 -0400
commit84a9e65ca3bf407807dbe60c549169810c631601 (patch)
tree5c7df17bb39208d1bc9703e1911a42310eff0bec /gtk/gtkmountoperation.c
parenta15b14032eeda8d23808a842abffe3a198bd735d (diff)
downloadgtk+-84a9e65ca3bf407807dbe60c549169810c631601.tar.gz
Allow empty passwords in GtkMountOperation
Allow empty passwords, since there are situations where the backend doesn't need the password. (#578365)
Diffstat (limited to 'gtk/gtkmountoperation.c')
-rw-r--r--gtk/gtkmountoperation.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c
index add46e85bd..ace58ed90a 100644
--- a/gtk/gtkmountoperation.c
+++ b/gtk/gtkmountoperation.c
@@ -316,9 +316,14 @@ pw_dialog_input_is_valid (GtkMountOperation *operation)
GtkMountOperationPrivate *priv = operation->priv;
gboolean is_valid = TRUE;
+ /* We don't require password to be non-empty here
+ * since there are situations where it is not needed,
+ * see bug 578365.
+ * We may add a way for the backend to specify that it
+ * definitively needs a password.
+ */
is_valid = entry_has_input (priv->username_entry) &&
- entry_has_input (priv->domain_entry) &&
- entry_has_input (priv->password_entry);
+ entry_has_input (priv->domain_entry);
return is_valid;
}