diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-24 23:02:59 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-24 23:02:59 +0800 |
commit | ff9fcffeca2bdc37a91e0c2f0cb51f871a3cd7a1 (patch) | |
tree | 2383ff114db06ca92b9b477af849d417e2e6a761 /mail/em-folder-selector.c | |
parent | c6d8a030399f9e3d9f38798e99cdeecaf2d5fbbb (diff) | |
download | gsoc2013-evolution-ff9fcffeca2bdc37a91e0c2f0cb51f871a3cd7a1.tar.gz gsoc2013-evolution-ff9fcffeca2bdc37a91e0c2f0cb51f871a3cd7a1.tar.zst gsoc2013-evolution-ff9fcffeca2bdc37a91e0c2f0cb51f871a3cd7a1.zip |
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.
Diffstat (limited to 'mail/em-folder-selector.c')
-rw-r--r-- | mail/em-folder-selector.c | 10 |
1 files changed, 7 insertions, 3 deletions
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); |