From ce37d56d0b42f88549e45920df29a06fdce3ce95 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 26 Jun 2009 11:05:58 -0400 Subject: Get the "mail-to-task" plugin working again. This one was more challenging. It exposed some flaws in the new shell design and in EPluginUI, which is good because they're fixed now. --- plugins/mark-all-read/mark-all-read.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/mark-all-read') diff --git a/plugins/mark-all-read/mark-all-read.c b/plugins/mark-all-read/mark-all-read.c index 0a59b69f33..662bd137c3 100644 --- a/plugins/mark-all-read/mark-all-read.c +++ b/plugins/mark-all-read/mark-all-read.c @@ -38,7 +38,6 @@ #include #include #include -#include #define PRIMARY_TEXT \ N_("Also mark messages in subfolders?") @@ -283,6 +282,8 @@ action_mail_mark_read_recursive_cb (GtkAction *action, mail_get_folder ( folder_uri, 0, mar_got_folder, NULL, mail_msg_unordered_push); + + g_object_unref (folder_tree); } static GtkActionEntry entries[] = { @@ -303,9 +304,9 @@ e_plugin_ui_init (GtkUIManager *ui_manager, GtkActionGroup *action_group; shell_window = e_shell_view_get_shell_window (shell_view); - action_group = E_SHELL_WINDOW_ACTION_GROUP_SHELL (shell_window); + action_group = e_shell_window_get_action_group (shell_window, "mail"); - /* Add actions to the "shell" action group. */ + /* Add actions to the "mail" action group. */ gtk_action_group_add_actions ( action_group, entries, G_N_ELEMENTS (entries), shell_view); -- cgit v1.2.3