gtk+ r20183 - in trunk: . gtk



Author: carlosg
Date: Tue May 27 00:12:33 2008
New Revision: 20183
URL: http://svn.gnome.org/viewvc/gtk+?rev=20183&view=rev

Log:
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.


Modified:
   trunk/ChangeLog
   trunk/gtk/gtkmountoperation.c

Modified: trunk/gtk/gtkmountoperation.c
==============================================================================
--- trunk/gtk/gtkmountoperation.c	(original)
+++ trunk/gtk/gtkmountoperation.c	Tue May 27 00:12:33 2008
@@ -615,7 +615,12 @@
                     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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]