]> git.0d.be Git - empathy.git/commitdiff
Set the sensitivity to the forget button
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 29 Jul 2009 21:21:40 +0000 (23:21 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 29 Jul 2009 22:13:21 +0000 (00:13 +0200)
libempathy-gtk/empathy-account-widget.c

index 0361b957cfe623de316b6619eafdae6ca8f658d3..5cfff21d9348d96dc79df647b186a7c4cd39f93a 100644 (file)
@@ -198,12 +198,13 @@ account_widget_forget_clicked_cb (GtkWidget *button,
 
 static void
 account_widget_password_changed_cb (GtkWidget *entry,
-    GtkWidget *button)
+    EmpathyAccountWidget *self)
 {
+  EmpathyAccountWidgetPriv *priv = GET_PRIV (self);
   const gchar *str;
 
   str = gtk_entry_get_text (GTK_ENTRY (entry));
-  gtk_widget_set_sensitive (button, !EMP_STR_EMPTY (str));
+  gtk_widget_set_sensitive (priv->button_forget, !EMP_STR_EMPTY (str));
 }
 
 static void