aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-09-06 14:05:48 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-09-06 14:05:48 +0800
commitae49ccd1797d71133f0f850fa791b7eed2a4e5ab (patch)
treede99f53405d86f8799b02dc30c9b4cb636f8c811
parent7ec5dfdbc782701531f215c35e851b27b3e789db (diff)
downloadgsoc2013-evolution-ae49ccd1797d71133f0f850fa791b7eed2a4e5ab.tar.gz
gsoc2013-evolution-ae49ccd1797d71133f0f850fa791b7eed2a4e5ab.tar.zst
gsoc2013-evolution-ae49ccd1797d71133f0f850fa791b7eed2a4e5ab.zip
** Fix for bug #304993 (Novell Bugzilla)
svn path=/trunk/; revision=34184
-rw-r--r--mail/ChangeLog9
-rw-r--r--mail/em-folder-selector.c1
-rw-r--r--mail/em-folder-utils.c2
3 files changed, 11 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index f8ded40f9e..ab5878ee2c 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,12 @@
+2007-09-06 Srinivasa Ragavan <sragavan@novell.com>
+
+ ** Fix for bug #304993 (Novell Bugzilla)
+
+ * em-folder-selector.c: (emfs_response): Do allow folder selection of
+ created folders.
+ * em-folder-utils.c: (new_folder_created_cb): Expand only if selection
+ is not asked for.
+
2007-09-01 Matthew Barnes <mbarnes@redhat.com>
* em-folder-view:
diff --git a/mail/em-folder-selector.c b/mail/em-folder-selector.c
index ec7a013b0d..3294c4fa5a 100644
--- a/mail/em-folder-selector.c
+++ b/mail/em-folder-selector.c
@@ -139,6 +139,7 @@ emfs_response (GtkWidget *dialog, int response, EMFolderSelector *emfs)
if (response != EM_FOLDER_SELECTOR_RESPONSE_NEW)
return;
+ g_object_set_data ((GObject *)emfs->emft, "select", GUINT_TO_POINTER (1));
em_folder_utils_create_folder(NULL, emfs->emft);
g_signal_stop_emission_by_name (emfs, "response");
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c
index 2602c797e2..66935aedd8 100644
--- a/mail/em-folder-utils.c
+++ b/mail/em-folder-utils.c
@@ -675,7 +675,7 @@ new_folder_created_cb (CamelFolderInfo *fi, void *user_data)
/* Exapnding newly created folder */
if (emcftd->emft)
- em_folder_tree_set_selected ((EMFolderTree *) emcftd->emft, emcftd->uri, TRUE);
+ em_folder_tree_set_selected ((EMFolderTree *) emcftd->emft, emcftd->uri, GPOINTER_TO_INT(g_object_get_data ((GObject *)emcftd->emft, "select")) ? FALSE : TRUE);
}
g_object_unref (emcftd->emfs);
g_free (emcftd);