aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-component.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-08-02 13:10:51 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-08-02 13:10:51 +0800
commit0c7f584760ab79d65f52a40844c10fed1564f1f5 (patch)
treed752d831bb00ca230ba90aa6308097dfb478c0a1 /mail/mail-component.c
parent0afd0d160d45699d7856dfb8ea7b422083c67bee (diff)
downloadgsoc2013-evolution-0c7f584760ab79d65f52a40844c10fed1564f1f5.tar.gz
gsoc2013-evolution-0c7f584760ab79d65f52a40844c10fed1564f1f5.tar.zst
gsoc2013-evolution-0c7f584760ab79d65f52a40844c10fed1564f1f5.zip
Fix from Lucky to expand newly created folder
svn path=/trunk/; revision=33926
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r--mail/mail-component.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c
index 65f2a5a56b..b9b1e4247a 100644
--- a/mail/mail-component.c
+++ b/mail/mail-component.c
@@ -703,7 +703,7 @@ impl_createView (PortableServer_Servant servant,
em_folder_tree_enable_drag_and_drop ((EMFolderTree *) tree_widget);
if ((uri = em_folder_tree_model_get_selected (priv->model))) {
- em_folder_tree_set_selected ((EMFolderTree *) tree_widget, uri);
+ em_folder_tree_set_selected ((EMFolderTree *) tree_widget, uri, FALSE);
em_folder_view_set_folder_uri ((EMFolderView *) view_widget, uri);
g_free (uri);
}
@@ -892,7 +892,7 @@ impl__get_userCreatableItems (PortableServer_Servant servant, CORBA_Environment
}
static int
-create_item(const char *type, EMFolderTreeModel *model, const char *uri)
+create_item(const char *type, EMFolderTreeModel *model, const char *uri, gpointer tree)
{
if (strcmp(type, "message") == 0) {
if (!em_utils_check_user_can_send_mail(NULL))
@@ -900,7 +900,7 @@ create_item(const char *type, EMFolderTreeModel *model, const char *uri)
em_utils_compose_new_message(uri);
} else if (strcmp(type, "folder") == 0) {
- em_folder_utils_create_folder(NULL);
+ em_folder_utils_create_folder(NULL, tree);
} else
return -1;
@@ -913,7 +913,7 @@ create_local_item_cb(EUserCreatableItemsHandler *handler, const char *item_type_
EMFolderTree *tree = data;
char *uri = em_folder_tree_get_selected_uri(tree);
- create_item(item_type_name, em_folder_tree_get_model(tree), uri);
+ create_item(item_type_name, em_folder_tree_get_model(tree), uri, (gpointer) tree);
g_free(uri);
}
@@ -924,7 +924,7 @@ impl_requestCreateItem (PortableServer_Servant servant,
{
MailComponent *mc = MAIL_COMPONENT(bonobo_object_from_servant(servant));
- if (create_item(item_type_name, mc->priv->model, NULL) == -1) {
+ if (create_item(item_type_name, mc->priv->model, NULL, NULL) == -1) {
CORBA_exception_set (ev, CORBA_USER_EXCEPTION,
ex_GNOME_Evolution_Component_UnknownType, NULL);
}