aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-notebook-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-04 07:24:58 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:06 +0800
commitb59648863b0f48360e4015269e7991c6a8d4b213 (patch)
tree2c5a30670abcade8eb7ae23f00ba8650bee1bbe8 /mail/e-mail-notebook-view.c
parentf4c914d057214acff9b2439e642202f7902531dc (diff)
downloadgsoc2013-evolution-b59648863b0f48360e4015269e7991c6a8d4b213.tar.gz
gsoc2013-evolution-b59648863b0f48360e4015269e7991c6a8d4b213.tar.zst
gsoc2013-evolution-b59648863b0f48360e4015269e7991c6a8d4b213.zip
Use e_mail_folder_uri_from_folder() instead of camel_folder_get_uri().
Diffstat (limited to 'mail/e-mail-notebook-view.c')
-rw-r--r--mail/e-mail-notebook-view.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/mail/e-mail-notebook-view.c b/mail/e-mail-notebook-view.c
index d6e4b4a9aa..582e0af166 100644
--- a/mail/e-mail-notebook-view.c
+++ b/mail/e-mail-notebook-view.c
@@ -1099,7 +1099,7 @@ mail_notebook_view_set_folder (EMailReader *reader,
{
EMailNotebookViewPrivate *priv;
GtkWidget *new_view;
- const gchar *folder_uri;
+ gchar *folder_uri;
#if HAVE_CLUTTER
EMailTab *tab;
ClutterActor *clone;
@@ -1111,8 +1111,10 @@ mail_notebook_view_set_folder (EMailReader *reader,
priv = E_MAIL_NOTEBOOK_VIEW (reader)->priv;
- folder_uri = camel_folder_get_uri (folder);
+ folder_uri = e_mail_folder_uri_from_folder (folder);
new_view = g_hash_table_lookup (priv->views, folder_uri);
+ g_free (folder_uri);
+
if (new_view) {
gint curr = emnv_get_page_num (E_MAIL_NOTEBOOK_VIEW (reader), new_view);
#if HAVE_CLUTTER
@@ -1241,7 +1243,9 @@ mail_notebook_view_set_folder (EMailReader *reader,
#endif
e_mail_reader_set_folder (E_MAIL_READER (priv->current_view), folder);
- g_hash_table_insert (priv->views, g_strdup (folder_uri), priv->current_view);
+
+ folder_uri = e_mail_folder_uri_from_folder (folder);
+ g_hash_table_insert (priv->views, folder_uri, priv->current_view);
g_signal_connect (
priv->current_view, "changed",
G_CALLBACK (reconnect_changed_event), reader);