aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/component-factory.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-07-01 06:59:34 +0800
committerIain Holmes <iain@src.gnome.org>2001-07-01 06:59:34 +0800
commit730ceece38016a382888d5a9958eca004f65acf0 (patch)
treee16a9a0feaa6ba76b7d74216095e48c64c4481f7 /my-evolution/component-factory.c
parentba225d83afd4d6b444553a79b3fa224d5a47e98b (diff)
downloadgsoc2013-evolution-730ceece38016a382888d5a9958eca004f65acf0.tar
gsoc2013-evolution-730ceece38016a382888d5a9958eca004f65acf0.tar.gz
gsoc2013-evolution-730ceece38016a382888d5a9958eca004f65acf0.tar.bz2
gsoc2013-evolution-730ceece38016a382888d5a9958eca004f65acf0.tar.lz
gsoc2013-evolution-730ceece38016a382888d5a9958eca004f65acf0.tar.xz
gsoc2013-evolution-730ceece38016a382888d5a9958eca004f65acf0.tar.zst
gsoc2013-evolution-730ceece38016a382888d5a9958eca004f65acf0.zip
Handle the online/offline stuff
svn path=/trunk/; revision=10639
Diffstat (limited to 'my-evolution/component-factory.c')
-rw-r--r--my-evolution/component-factory.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/my-evolution/component-factory.c b/my-evolution/component-factory.c
index 72f8c4d3c2..d41c059440 100644
--- a/my-evolution/component-factory.c
+++ b/my-evolution/component-factory.c
@@ -18,6 +18,7 @@
#include <shell/Evolution.h>
#include "e-summary-factory.h"
+#include "e-summary-offline-handler.h"
#include "component-factory.h"
#include <gal/widgets/e-gui-utils.h>
@@ -42,16 +43,21 @@ create_view (EvolutionShellComponent *shell,
void *closure)
{
EvolutionShellClient *shell_client;
+ ESummaryOfflineHandler *offline_handler;
GNOME_Evolution_Shell corba_shell;
BonoboControl *control;
+
if (g_strcasecmp (folder_type, "My Evolution") != 0) {
return EVOLUTION_SHELL_COMPONENT_UNSUPPORTEDTYPE;
}
+ offline_handler = gtk_object_get_data (GTK_OBJECT (shell),
+ "offline-handler");
shell_client = evolution_shell_component_get_owner (shell);
corba_shell = bonobo_object_corba_objref (BONOBO_OBJECT (shell_client));
- control = e_summary_factory_new_control (physical_uri, corba_shell);
+ control = e_summary_factory_new_control (physical_uri, corba_shell,
+ offline_handler);
if (!control)
return EVOLUTION_SHELL_COMPONENT_NOTFOUND;
@@ -96,6 +102,7 @@ factory_fn (BonoboGenericFactory *factory,
void *closure)
{
EvolutionShellComponent *shell_component;
+ ESummaryOfflineHandler *offline_handler;
running_objects++;
@@ -112,6 +119,11 @@ factory_fn (BonoboGenericFactory *factory,
gtk_signal_connect (GTK_OBJECT (shell_component), "owner_unset",
GTK_SIGNAL_FUNC (owner_unset_cb), NULL);
+ offline_handler = e_summary_offline_handler_new ();
+ gtk_object_set_data (GTK_OBJECT (shell_component), "offline-handler",
+ offline_handler);
+ bonobo_object_add_interface (BONOBO_OBJECT (shell_component), BONOBO_OBJECT (offline_handler));
+
return BONOBO_OBJECT (shell_component);
}