aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree-model.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-03-11 05:28:50 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-03-11 05:28:50 +0800
commitf5f54e2eaa8e123473d5a20cef325e5418d1ee21 (patch)
tree5c279b13616acc553b9f962b9d054cd18fa8cb90 /mail/em-folder-tree-model.c
parente948af7be842595b0028001c0e9f7db5d4ed3cb7 (diff)
downloadgsoc2013-evolution-f5f54e2eaa8e123473d5a20cef325e5418d1ee21.tar.gz
gsoc2013-evolution-f5f54e2eaa8e123473d5a20cef325e5418d1ee21.tar.zst
gsoc2013-evolution-f5f54e2eaa8e123473d5a20cef325e5418d1ee21.zip
Partial fix for bug #53862
2004-03-10 Jeffrey Stedfast <fejj@ximian.com> Partial fix for bug #53862 * em-folder-selector.c (emfs_response): Connect to the newly added "folder-added" signal and save a created_uri string so that we can be sure to only listen for the creation of the folder the user created in *our* create-folder dilog (and not from some other place). * em-folder-tree-model.c (folder_subscribed): Emit a new "folder-added" signal. svn path=/trunk/; revision=25013
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r--mail/em-folder-tree-model.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index 948de7774a..a095a88da6 100644
--- a/mail/em-folder-tree-model.c
+++ b/mail/em-folder-tree-model.c
@@ -77,6 +77,7 @@ static void account_removed (EAccountList *accounts, EAccount *account, gpointer
enum {
LOADING_ROW,
+ FOLDER_ADDED,
LAST_SIGNAL
};
@@ -143,6 +144,17 @@ em_folder_tree_model_class_init (EMFolderTreeModelClass *klass)
G_TYPE_NONE, 2,
G_TYPE_POINTER,
G_TYPE_POINTER);
+
+ signals[FOLDER_ADDED] =
+ g_signal_new ("folder-added",
+ G_OBJECT_CLASS_TYPE (object_class),
+ G_SIGNAL_RUN_FIRST,
+ G_STRUCT_OFFSET (EMFolderTreeModelClass, loading_row),
+ NULL, NULL,
+ em_marshal_VOID__STRING_STRING,
+ G_TYPE_NONE, 2,
+ G_TYPE_STRING,
+ G_TYPE_STRING);
}
static int
@@ -525,6 +537,8 @@ folder_subscribed (CamelStore *store, CamelFolderInfo *fi, EMFolderTreeModel *mo
em_folder_tree_model_set_folder_info (model, &iter, si, fi);
+ g_signal_emit (model, signals[FOLDER_ADDED], 0, fi->path, fi->url);
+
done:
camel_object_unref (store);