Index: mail/ChangeLog
===================================================================
--- mail/ChangeLog	(revision 34552)
+++ mail/ChangeLog	(working copy)
@@ -1,3 +1,14 @@
+2007-11-19  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #256899 by Chaya
+
+	* mail-config.glade:
+	* em-account-prefs.h: (struct _EMAccountPrefs):
+	* em-account-prefs.c: (account_delete_clicked),
+	(account_able_clicked), (account_able_toggled),
+	(account_cursor_change), (em_account_prefs_construct):
+	Remove "Disable/Enable" button from Mail Accounts preferences.
+
 2007-11-18  Gilles Dartiguelongue  <gdartigu@svn.gnome.org>
 
 	** Fix bug #495875
Index: mail/mail-config.glade
===================================================================
--- mail/mail-config.glade	(revision 34552)
+++ mail/mail-config.glade	(working copy)
@@ -4504,21 +4504,6 @@
 		  <property name="focus_on_click">True</property>
 		</widget>
 	      </child>
-
-	      <child>
-		<widget class="GtkButton" id="cmdAccountAble">
-		  <property name="width_request">89</property>
-		  <property name="height_request">36</property>
-		  <property name="visible">True</property>
-		  <property name="sensitive">False</property>
-		  <property name="can_default">True</property>
-		  <property name="can_focus">True</property>
-		  <property name="label" translatable="yes">E_nable</property>
-		  <property name="use_underline">True</property>
-		  <property name="relief">GTK_RELIEF_NORMAL</property>
-		  <property name="focus_on_click">True</property>
-		</widget>
-	      </child>
 	    </widget>
 	    <packing>
 	      <property name="padding">0</property>
Index: mail/em-account-prefs.c
===================================================================
--- mail/em-account-prefs.c	(revision 34552)
+++ mail/em-account-prefs.c	(working copy)
@@ -270,7 +270,6 @@
 			gtk_widget_set_sensitive (GTK_WIDGET (prefs->mail_edit), FALSE);
 			gtk_widget_set_sensitive (GTK_WIDGET (prefs->mail_delete), FALSE);
 			gtk_widget_set_sensitive (GTK_WIDGET (prefs->mail_default), FALSE);
-			gtk_widget_set_sensitive (GTK_WIDGET (prefs->mail_able), FALSE);
 		}
 	}
 }
@@ -317,29 +316,6 @@
 }
 
 static void
-account_able_clicked (GtkButton *button, gpointer user_data)
-{
-	EMAccountPrefs *prefs = user_data;
-	GtkTreeSelection *selection;
-	EAccount *account;
-	GtkTreeModel *model;
-	GtkTreeIter iter;
-
-	selection = gtk_tree_view_get_selection (prefs->table);
-	if (gtk_tree_selection_get_selected (selection, &model, &iter)) {
-		gtk_tree_model_get (model, &iter, 3, &account, -1);
-		account->enabled = !account->enabled;
-		gtk_list_store_set ((GtkListStore *) model, &iter, 0, account->enabled, -1);
-
-		gtk_button_set_label (prefs->mail_able, account->enabled ? _("Di_sable") : _("E_nable"));
-
-		/* let the rest of the application know it changed */
-		e_account_list_change (mail_config_get_accounts(), account);
-		account_able_changed (account);
-	}
-}
-
-static void
 account_able_toggled (GtkCellRendererToggle *renderer, char *arg1, gpointer user_data)
 {
 	EMAccountPrefs *prefs = user_data;
@@ -375,9 +351,6 @@
 		account_able_changed (account);
 		gtk_list_store_set ((GtkListStore *) model, &iter, 0, account->enabled, -1);
 
-		if (gtk_tree_selection_iter_is_selected (selection, &iter))
-			gtk_button_set_label (prefs->mail_able, account->enabled ? _("Di_sable") : _("E_nable"));
-
 		/* let the rest of the application know it changed */
 	}
 
@@ -408,10 +381,6 @@
 		if (state) {
 			gtk_tree_model_get (model, &iter, 3, &account, -1);
 			url = e_account_get_string (account, E_ACCOUNT_SOURCE_URL);
-			if (account->source && account->enabled)
-				gtk_button_set_label (prefs->mail_able, _("Di_sable"));
-			else
-				gtk_button_set_label (prefs->mail_able, _("E_nable"));
 		} else {
 			gtk_widget_grab_focus (GTK_WIDGET (prefs->mail_add));
 		}
@@ -429,8 +398,6 @@
 		gtk_widget_set_sensitive (GTK_WIDGET (prefs->mail_default), FALSE);
 	else
 		gtk_widget_set_sensitive (GTK_WIDGET (prefs->mail_default), state);
-
-	gtk_widget_set_sensitive (GTK_WIDGET (prefs->mail_able), state);
 }
 
 static void
@@ -597,9 +564,6 @@
 	prefs->mail_default = GTK_BUTTON (glade_xml_get_widget (gui, "cmdAccountDefault"));
 	g_signal_connect (prefs->mail_default, "clicked", G_CALLBACK (account_default_clicked), prefs);
 
-	prefs->mail_able = GTK_BUTTON (glade_xml_get_widget (gui, "cmdAccountAble"));
-	g_signal_connect (prefs->mail_able, "clicked", G_CALLBACK (account_able_clicked), prefs);
-
 	g_signal_connect (gtk_tree_view_get_selection (prefs->table),
 			  "changed", G_CALLBACK (account_cursor_change), prefs);
 	g_signal_connect (prefs->table, "row-activated", G_CALLBACK (account_double_click), prefs);
Index: mail/em-account-prefs.h
===================================================================
--- mail/em-account-prefs.h	(revision 34552)
+++ mail/em-account-prefs.h	(working copy)
@@ -67,7 +67,6 @@
 	GtkButton *mail_edit;
 	GtkButton *mail_delete;
 	GtkButton *mail_default;
-	GtkButton *mail_able;
 
 	guint destroyed : 1;
 	guint changed : 1;
