aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-05-08 10:43:10 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-05-08 10:43:10 +0800
commit7c5e55ba41e736f76a599ff34edbcf03cc558432 (patch)
tree750b9a8efa7dec361ae306a6deb15c11e7ba2664 /mail
parent614aa5e4a53b78ec2a6e612d32c63fcaebfb8b39 (diff)
downloadgsoc2013-evolution-7c5e55ba41e736f76a599ff34edbcf03cc558432.tar
gsoc2013-evolution-7c5e55ba41e736f76a599ff34edbcf03cc558432.tar.gz
gsoc2013-evolution-7c5e55ba41e736f76a599ff34edbcf03cc558432.tar.bz2
gsoc2013-evolution-7c5e55ba41e736f76a599ff34edbcf03cc558432.tar.lz
gsoc2013-evolution-7c5e55ba41e736f76a599ff34edbcf03cc558432.tar.xz
gsoc2013-evolution-7c5e55ba41e736f76a599ff34edbcf03cc558432.tar.zst
gsoc2013-evolution-7c5e55ba41e736f76a599ff34edbcf03cc558432.zip
** See bug #42456
2003-05-07 Not Zed <NotZed@Ximian.com> ** See bug #42456 * mail-composer-prefs.c (spell_language_button_press): set the enable/disable button to the right text when we toggle a column. Added a fixme about the weird code in the whole routine. svn path=/trunk/; revision=21127
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/mail-composer-prefs.c4
2 files changed, 12 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index c2f7460f0d..4cefc66794 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,11 @@
+2003-05-07 Not Zed <NotZed@Ximian.com>
+
+ ** See bug #42456
+
+ * mail-composer-prefs.c (spell_language_button_press): set the
+ enable/disable button to the right text when we toggle a column.
+ Added a fixme about the weird code in the whole routine.
+
2003-05-07 Jeremy Katz <katzj@redhat.com>
* evolution-mail.schemas
diff --git a/mail/mail-composer-prefs.c b/mail/mail-composer-prefs.c
index 15fbd6fdaf..c875b25a1a 100644
--- a/mail/mail-composer-prefs.c
+++ b/mail/mail-composer-prefs.c
@@ -703,6 +703,9 @@ spell_language_button_press (GtkTreeView *tv, GdkEventButton *event, MailCompose
GtkTreeViewColumn *column = NULL;
gtk_tree_view_get_path_at_pos (tv, event->x, event->y, &path, &column, NULL, NULL);
+ /* FIXME: This routine should just be a "toggled" event handler on the checkbox cell renderer which
+ has "activatable" set. */
+
if (path != NULL && column != NULL && !strcmp (gtk_tree_view_column_get_title (column), _("Enabled"))) {
GtkTreeIter iter;
GtkTreeModel *model;
@@ -712,6 +715,7 @@ spell_language_button_press (GtkTreeView *tv, GdkEventButton *event, MailCompose
gtk_tree_model_get_iter (model, &iter, path);
gtk_tree_model_get (model, &iter, 0, &enabled, -1);
gtk_list_store_set ((GtkListStore *) model, &iter, 0, !enabled, -1);
+ gtk_button_set_label ((GtkButton *) prefs->spell_able_button, enabled ? _("Enable") : _("Disable"));
spell_changed (prefs);
}