aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-shell-client.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-01-11 05:39:33 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-01-11 05:39:33 +0800
commit472a6e0fa01103936680f652a4551cbf455efdef (patch)
tree38580c23c5035f199ded562d000cb60013439c4b /shell/evolution-shell-client.c
parent8c37e1b2ee3dec0445e299cc0f29c2c2bb76ae7d (diff)
downloadgsoc2013-evolution-472a6e0fa01103936680f652a4551cbf455efdef.tar.gz
gsoc2013-evolution-472a6e0fa01103936680f652a4551cbf455efdef.tar.zst
gsoc2013-evolution-472a6e0fa01103936680f652a4551cbf455efdef.zip
Don't duplicate the shell object here before passing to
* evolution-shell-component.c (impl_setOwner): Don't duplicate the shell object here before passing to evolution_shell_client_new(). * evolution-shell-client.c (evolution_shell_client_construct): Dupliate the @corba_shell before storing into the EvolutionShellClientPrivate struct. * e-shell-config-default-folders.c (e_shell_config_default_folders_create_widget): Do not duplicate the shell's CORBA objref. * e-shell-config-autocompletion.c (e_shell_config_autocompletion_create_widget): Do not duplicate the shell's CORBA objref. svn path=/trunk/; revision=19415
Diffstat (limited to 'shell/evolution-shell-client.c')
-rw-r--r--shell/evolution-shell-client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/evolution-shell-client.c b/shell/evolution-shell-client.c
index e5cabc34e4..f21e9860b6 100644
--- a/shell/evolution-shell-client.c
+++ b/shell/evolution-shell-client.c
@@ -393,10 +393,11 @@ evolution_shell_client_construct (EvolutionShellClient *shell_client,
priv = shell_client->priv;
g_return_if_fail (priv->activity_interface == CORBA_OBJECT_NIL);
- priv->corba_objref = corba_shell;
-
CORBA_exception_init (&ev);
+
+ priv->corba_objref = CORBA_Object_duplicate (corba_shell, &ev);
Bonobo_Unknown_ref (priv->corba_objref, &ev);
+
CORBA_exception_free (&ev);
priv->activity_interface = query_shell_interface (shell_client, "IDL:GNOME/Evolution/Activity:1.0");
@@ -408,8 +409,7 @@ evolution_shell_client_construct (EvolutionShellClient *shell_client,
* evolution_shell_client_new:
* @corba_shell: A pointer to the CORBA Evolution::Shell interface.
*
- * Create a new client object for @corba_shell. The shell client will
- * free @corba_shell when it is destroyed.
+ * Create a new client object for @corba_shell.
*
* Return value: A pointer to the Evolution::Shell client BonoboObject.
**/