gtk+ r22496 - in trunk: . gtk
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r22496 - in trunk: . gtk
- Date: Tue, 10 Mar 2009 10:29:03 +0000 (UTC)
Author: alexl
Date: Tue Mar 10 10:29:03 2009
New Revision: 22496
URL: http://svn.gnome.org/viewvc/gtk+?rev=22496&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/gtk/gtkmountoperation.c
Modified: trunk/gtk/gtkmountoperation.c
==============================================================================
--- trunk/gtk/gtkmountoperation.c (original)
+++ trunk/gtk/gtkmountoperation.c Tue Mar 10 10:29:03 2009
@@ -516,6 +516,7 @@
can_anonymous = flags & G_ASK_PASSWORD_ANONYMOUS_SUPPORTED;
+ priv->anonymous_toggle = NULL;
if (can_anonymous)
{
GtkWidget *anon_box;
@@ -571,14 +572,17 @@
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:"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]