From ff9fcffeca2bdc37a91e0c2f0cb51f871a3cd7a1 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 24 May 2011 11:02:59 -0400 Subject: EMFolderTree: Add an EAlertSink property. Now EMFolderTree has access to both an EShellBackend and an EAlertSink; everything it needs to build and submit EActivity instances. --- mail/em-folder-selector.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mail/em-folder-selector.c') diff --git a/mail/em-folder-selector.c b/mail/em-folder-selector.c index 24f619d78d..2ac1d066fc 100644 --- a/mail/em-folder-selector.c +++ b/mail/em-folder-selector.c @@ -47,10 +47,14 @@ enum { PROP_BACKEND }; -G_DEFINE_TYPE ( +/* XXX EMFolderSelector is an EAlertSink, but it just uses the default + * message dialog implementation. We should do something nicer. */ + +G_DEFINE_TYPE_WITH_CODE ( EMFolderSelector, em_folder_selector, - GTK_TYPE_DIALOG) + GTK_TYPE_DIALOG, + G_IMPLEMENT_INTERFACE (E_TYPE_ALERT_SINK, NULL)) static void folder_selector_set_backend (EMFolderSelector *emfs, @@ -286,7 +290,7 @@ folder_selector_construct (EMFolderSelector *emfs, container = widget; - widget = em_folder_tree_new (backend); + widget = em_folder_tree_new (backend, E_ALERT_SINK (emfs)); emu_restore_folder_tree_state (EM_FOLDER_TREE (widget)); gtk_container_add (GTK_CONTAINER (widget), widget); emfs->priv->folder_tree = EM_FOLDER_TREE (widget); -- cgit