diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-03-10 10:29:03 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2009-03-10 10:29:03 +0000 |
commit | 4227351c441b392cd54dee671e25760f4986dcc3 (patch) | |
tree | 2affbd7d9da02253c3c261c836a6296340aa471a /gtk/gtkmountoperation.c | |
parent | e7c30d6be9ad3f1d55da57a27553e303463613d9 (diff) | |
download | gtk+-4227351c441b392cd54dee671e25760f4986dcc3.tar.gz |
Clear all optionally created widget pointer in priv. Initially priv is
2009-03-10 Alexander Larsson <alexl@redhat.com>
* gtk/gtkmountoperation.c:
(gtk_mount_operation_ask_password):
Clear all optionally created widget pointer in priv. Initially
priv is cleared so thats ok, but on a second call we may have
leftovers from previous calls which is problematic if for instance
we asked for the user the first time and not the second, then we
will access the old priv->username_entry.
svn path=/trunk/; revision=22496
Diffstat (limited to 'gtk/gtkmountoperation.c')
-rw-r--r-- | gtk/gtkmountoperation.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c index 66563eeec5..add46e85bd 100644 --- a/gtk/gtkmountoperation.c +++ b/gtk/gtkmountoperation.c @@ -516,6 +516,7 @@ gtk_mount_operation_ask_password (GMountOperation *mount_op, can_anonymous = flags & G_ASK_PASSWORD_ANONYMOUS_SUPPORTED; + priv->anonymous_toggle = NULL; if (can_anonymous) { GtkWidget *anon_box; @@ -571,14 +572,17 @@ gtk_mount_operation_ask_password (GMountOperation *mount_op, rows = 0; + priv->username_entry = NULL; if (flags & G_ASK_PASSWORD_NEED_USERNAME) priv->username_entry = table_add_entry (table, rows++, _("_Username:"), default_user, operation); + priv->domain_entry = NULL; if (flags & G_ASK_PASSWORD_NEED_DOMAIN) priv->domain_entry = table_add_entry (table, rows++, _("_Domain:"), default_domain, operation); + priv->password_entry = NULL; if (flags & G_ASK_PASSWORD_NEED_PASSWORD) { priv->password_entry = table_add_entry (table, rows++, _("_Password:"), |