aboutsummaryrefslogtreecommitdiffstats
path: root/mail/subscribe-dialog.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@helixcode.com>2000-10-11 12:28:44 +0800
committerChris Toshok <toshok@src.gnome.org>2000-10-11 12:28:44 +0800
commit139f2405f0a36396f7e3e171ad03a18e8d78ea69 (patch)
tree20c9748a01054278eb088b7198095f353c0fd423 /mail/subscribe-dialog.c
parent73f3bc0bd4680f3e4d4fd77d5b9f5d598ffca209 (diff)
downloadgsoc2013-evolution-139f2405f0a36396f7e3e171ad03a18e8d78ea69.tar.gz
gsoc2013-evolution-139f2405f0a36396f7e3e171ad03a18e8d78ea69.tar.zst
gsoc2013-evolution-139f2405f0a36396f7e3e171ad03a18e8d78ea69.zip
umm.. duh :) only subscribe if it's not subscribed, and vice versa.
2000-10-10 Chris Toshok <toshok@helixcode.com> * subscribe-dialog.c (folder_toggle_cb): umm.. duh :) only subscribe if it's not subscribed, and vice versa. (subscribe_folder_foreach): make sure to call e_tree_model_node_changed. (unsubscribe_folder_foreach): make sure to call e_tree_model_node_changed. svn path=/trunk/; revision=5831
Diffstat (limited to 'mail/subscribe-dialog.c')
-rw-r--r--mail/subscribe-dialog.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/mail/subscribe-dialog.c b/mail/subscribe-dialog.c
index 22a12b0b92..b645dcf32d 100644
--- a/mail/subscribe-dialog.c
+++ b/mail/subscribe-dialog.c
@@ -198,8 +198,10 @@ subscribe_folder_foreach (int model_row, gpointer closure)
printf ("subscribe: row %d, node_data %p\n", model_row,
e_tree_model_node_get_data (sc->folder_model, node));
- if (!camel_store_folder_subscribed (sc->store, info->name))
+ if (!camel_store_folder_subscribed (sc->store, info->name)) {
subscribe_folder_info (sc, info);
+ e_tree_model_node_changed (sc->folder_model, node);
+ }
}
static void
@@ -221,8 +223,10 @@ unsubscribe_folder_foreach (int model_row, gpointer closure)
printf ("unsubscribe: row %d, node_data %p\n", model_row,
e_tree_model_node_get_data (sc->folder_model, node));
- if (camel_store_folder_subscribed (sc->store, info->name))
+ if (camel_store_folder_subscribed (sc->store, info->name)) {
unsubscribe_folder_info (sc, info);
+ e_tree_model_node_changed (sc->folder_model, node);
+ }
}
@@ -518,9 +522,9 @@ folder_toggle_cb (ETable *table,
CamelFolderInfo *info = e_tree_model_node_get_data (sc->folder_model, node);
if (camel_store_folder_subscribed (sc->store, info->name))
- subscribe_folder_info (sc, info);
- else
unsubscribe_folder_info (sc, info);
+ else
+ subscribe_folder_info (sc, info);
e_tree_model_node_changed (sc->folder_model, node);
}