diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-25 05:36:21 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:20 +0800 |
commit | 6e6da8a4080c4606529603ad9a90489509bea105 (patch) | |
tree | ba6161fc5b5abc0c514004ea5fafa6424a46f224 /mail/e-mail-sidebar.c | |
parent | 851a872865769d1d53e495fd1d0b82f0452594c4 (diff) | |
download | gsoc2013-evolution-6e6da8a4080c4606529603ad9a90489509bea105.tar gsoc2013-evolution-6e6da8a4080c4606529603ad9a90489509bea105.tar.gz gsoc2013-evolution-6e6da8a4080c4606529603ad9a90489509bea105.tar.bz2 gsoc2013-evolution-6e6da8a4080c4606529603ad9a90489509bea105.tar.lz gsoc2013-evolution-6e6da8a4080c4606529603ad9a90489509bea105.tar.xz gsoc2013-evolution-6e6da8a4080c4606529603ad9a90489509bea105.tar.zst gsoc2013-evolution-6e6da8a4080c4606529603ad9a90489509bea105.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; } |