diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-25 05:36:21 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-25 07:41:59 +0800 |
commit | a9dff2f33a06879403277a422fc579854aa99885 (patch) | |
tree | 36d8ccdaf876cc6ca36db80069dcbef8a26a60bf /mail/e-mail-sidebar.c | |
parent | b6fecfcd53bc5a733a7aaf3684cda077bfdd2e5e (diff) | |
download | gsoc2013-evolution-a9dff2f33a06879403277a422fc579854aa99885.tar.gz gsoc2013-evolution-a9dff2f33a06879403277a422fc579854aa99885.tar.zst gsoc2013-evolution-a9dff2f33a06879403277a422fc579854aa99885.zip |
Use em_folder_tree_get_selected() in places to simplify code.
There were a few places where we were accessing the folder tree model
directly to get the selected store + folder name, or were asking for the
selected URI only to parse back into its store + folder name components.
Diffstat (limited to 'mail/e-mail-sidebar.c')
-rw-r--r-- | mail/e-mail-sidebar.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mail/e-mail-sidebar.c b/mail/e-mail-sidebar.c index 45d16a8be1..5f6285112d 100644 --- a/mail/e-mail-sidebar.c +++ b/mail/e-mail-sidebar.c @@ -300,7 +300,6 @@ mail_sidebar_check_state (EMailSidebar *sidebar) GtkTreeIter iter; CamelStore *store; gchar *full_name; - gchar *uri; gboolean allows_children = TRUE; gboolean can_delete = TRUE; gboolean is_junk = FALSE; @@ -321,8 +320,7 @@ mail_sidebar_check_state (EMailSidebar *sidebar) COL_POINTER_CAMEL_STORE, &store, COL_STRING_FULL_NAME, &full_name, COL_BOOL_IS_STORE, &is_store, - COL_UINT_FLAGS, &folder_flags, - COL_STRING_URI, &uri, -1); + COL_UINT_FLAGS, &folder_flags, -1); if (!is_store && full_name != NULL) { CamelStore *local_store; @@ -372,7 +370,6 @@ mail_sidebar_check_state (EMailSidebar *sidebar) state |= E_MAIL_SIDEBAR_STORE_SUPPORTS_SUBSCRIPTIONS; g_free (full_name); - g_free (uri); return state; } |