diff options
Diffstat (limited to 'mail/em-folder-view.c')
-rw-r--r-- | mail/em-folder-view.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c index 0d041d0117..c45c4f8cc2 100644 --- a/mail/em-folder-view.c +++ b/mail/em-folder-view.c @@ -55,6 +55,7 @@ #include <bonobo/bonobo-ui-util.h> #include "widgets/misc/e-charset-picker.h" +#include "shell/e-user-creatable-items-handler.h" #include <e-util/e-dialog-utils.h> @@ -117,6 +118,8 @@ struct _EMFolderViewPrivate { GtkWidget *invisible; char *selection_uri; + + EUserCreatableItemsHandler *creatable_items_handler; }; static GtkVBoxClass *emfv_parent; @@ -173,6 +176,8 @@ emfv_init(GObject *o) emfv->async = mail_async_event_new(); + p->creatable_items_handler = e_user_creatable_items_handler_new ("mail"); + emfv_setting_setup(emfv); } @@ -192,6 +197,9 @@ emfv_finalise(GObject *o) g_free(emfv->folder_uri); } + if (p->creatable_items_handler) + g_object_unref (p->creatable_items_handler); + g_slist_free(emfv->ui_files); g_slist_free(emfv->enable_map); @@ -1647,6 +1655,8 @@ emfv_activate(EMFolderView *emfv, BonoboUIComponent *uic, int act) emfv_enable_menus(emfv); if (emfv->statusbar_active) bonobo_ui_component_set_translate (uic, "/", "<status><item name=\"main\"/></status>", NULL); + + e_user_creatable_items_handler_activate (emfv->priv->creatable_items_handler, uic); } else { const BonoboUIVerb *v; |