diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-06-25 10:28:22 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-06-25 10:28:22 +0800 |
commit | fc69e596cc52aca862407cab4cb13f26876c6805 (patch) | |
tree | 5cac4f1453f0a243b2c0c01fdfe34a5123d0a64f /plugins/mark-all-read | |
parent | f0d3f3afdfa314e1e8cd7d8da790878008a46aad (diff) | |
download | gsoc2013-evolution-fc69e596cc52aca862407cab4cb13f26876c6805.tar gsoc2013-evolution-fc69e596cc52aca862407cab4cb13f26876c6805.tar.gz gsoc2013-evolution-fc69e596cc52aca862407cab4cb13f26876c6805.tar.bz2 gsoc2013-evolution-fc69e596cc52aca862407cab4cb13f26876c6805.tar.lz gsoc2013-evolution-fc69e596cc52aca862407cab4cb13f26876c6805.tar.xz gsoc2013-evolution-fc69e596cc52aca862407cab4cb13f26876c6805.tar.zst gsoc2013-evolution-fc69e596cc52aca862407cab4cb13f26876c6805.zip |
Get the "mark-all-read" plugin working again.
Diffstat (limited to 'plugins/mark-all-read')
-rw-r--r-- | plugins/mark-all-read/mark-all-read.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/mark-all-read/mark-all-read.c b/plugins/mark-all-read/mark-all-read.c index 2001bcc8bc..0a59b69f33 100644 --- a/plugins/mark-all-read/mark-all-read.c +++ b/plugins/mark-all-read/mark-all-read.c @@ -29,7 +29,6 @@ #include <gtk/gtk.h> #include <glib/gi18n.h> #include <e-util/e-plugin-ui.h> -#include <mail/e-mail-shell-sidebar.h> #include <mail/em-folder-tree.h> #include <mail/mail-ops.h> #include <mail/mail-mt.h> @@ -37,6 +36,7 @@ #include "e-util/e-error.h" #include <shell/e-shell-sidebar.h> +#include <shell/e-shell-view.h> #include <shell/e-shell-window.h> #include <shell/e-shell-window-actions.h> @@ -272,16 +272,12 @@ static void action_mail_mark_read_recursive_cb (GtkAction *action, EShellView *shell_view) { - EMailShellSidebar *mail_shell_sidebar; EShellSidebar *shell_sidebar; EMFolderTree *folder_tree; const gchar *folder_uri; shell_sidebar = e_shell_view_get_shell_sidebar (shell_view); - g_return_if_fail (E_IS_MAIL_SHELL_SIDEBAR (shell_sidebar)); - - mail_shell_sidebar = E_MAIL_SHELL_SIDEBAR (shell_sidebar); - folder_tree = e_mail_shell_sidebar_get_folder_tree (mail_shell_sidebar); + g_object_get (shell_sidebar, "folder-tree", &folder_tree, NULL); folder_uri = em_folder_tree_get_selected_uri (folder_tree); g_return_if_fail (folder_uri != NULL); |