diff options
author | Carlos Garnacho <carlos@imendio.com> | 2008-05-27 00:12:33 +0000 |
---|---|---|
committer | Carlos Garnacho <carlosg@src.gnome.org> | 2008-05-27 00:12:33 +0000 |
commit | 5d224f01e6948cc2c734e899068ca32b82838787 (patch) | |
tree | 76db760f1479575e13c3b214398d772b78c98dc4 /gtk | |
parent | 416bda12047586a847f554615c2df53804f43c20 (diff) | |
download | gtk+-5d224f01e6948cc2c734e899068ca32b82838787.tar.gz |
Enable correctly dialog buttons sensitivity when the anonymous option is
2008-05-27 Carlos Garnacho <carlos@imendio.com>
* gtk/gtkmountoperation.c (gtk_mount_operation_ask_password): Enable
correctly dialog buttons sensitivity when the anonymous option is
enabled by default. Bug #531865.
svn path=/trunk/; revision=20183
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkmountoperation.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c index ebd6cbf031..3b8dff049d 100644 --- a/gtk/gtkmountoperation.c +++ b/gtk/gtkmountoperation.c @@ -615,7 +615,12 @@ gtk_mount_operation_ask_password (GMountOperation *mount_op, G_CALLBACK (pw_dialog_got_response), operation); if (can_anonymous) - gtk_widget_set_sensitive (priv->entry_container, FALSE); + { + /* The anonymous option will be active by default, + * ensure the toggled signal is emitted for it. + */ + gtk_toggle_button_toggled (GTK_TOGGLE_BUTTON (priv->anonymous_toggle)); + } else if (! pw_dialog_input_is_valid (operation)) gtk_dialog_set_response_sensitive (dialog, GTK_RESPONSE_OK, FALSE); |