diff options
author | Johnny Jacob <jjohnny@src.gnome.org> | 2007-09-07 20:16:07 +0800 |
---|---|---|
committer | Johnny Jacob <jjohnny@src.gnome.org> | 2007-09-07 20:16:07 +0800 |
commit | 6cfab2cd69ffb13d27011522271970352e1c3957 (patch) | |
tree | 32d6a560858a60e860ef4ddb6ee22be18d65d9bd /mail/mail-component.c | |
parent | 90abadc84d317fe7804b0c7d239bdbccdde5ba31 (diff) | |
download | gsoc2013-evolution-6cfab2cd69ffb13d27011522271970352e1c3957.tar.gz gsoc2013-evolution-6cfab2cd69ffb13d27011522271970352e1c3957.tar.zst gsoc2013-evolution-6cfab2cd69ffb13d27011522271970352e1c3957.zip |
Partial Fix for #467581.
svn path=/trunk/; revision=34194
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r-- | mail/mail-component.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c index fb690161c9..e3adcc9b09 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -651,6 +651,7 @@ enable_folder_tree (GtkWidget *emfb, GtkWidget *emft) { EMFolderView *emfv = (EMFolderView *) emfb; CamelURL *selected_curl, *current_curl; + CamelFolder *selected_folder; gchar *uri; /* Get the currently displayed folder. */ @@ -659,20 +660,16 @@ enable_folder_tree (GtkWidget *emfb, GtkWidget *emft) g_free (uri); /* Get the selected folder in the folder tree. */ - uri = em_folder_tree_get_selected_uri (EM_FOLDER_TREE (emft)); + selected_folder = em_folder_tree_get_selected_folder(EM_FOLDER_TREE (emft)); + uri = mail_tools_folder_to_url (selected_folder); + selected_curl = uri ? camel_url_new (uri, NULL) : NULL; if (current_curl && selected_curl && !camel_url_equal (selected_curl, current_curl)) { - CamelFolder *folder; - CamelException ex; - - camel_exception_init (&ex); - folder = mail_tool_uri_to_folder (uri, 0, &ex); - camel_exception_clear (&ex); g_signal_emit_by_name ( emft, "folder-selected", emft, uri, - folder->full_name, uri, folder->folder_flags); + selected_folder->full_name, uri, selected_folder->folder_flags); } gtk_widget_set_sensitive (emft, TRUE); |