aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-shell-component-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/evolution-shell-component-client.c')
-rw-r--r--shell/evolution-shell-component-client.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/shell/evolution-shell-component-client.c b/shell/evolution-shell-component-client.c
index 6a96bc3b33..218379fd03 100644
--- a/shell/evolution-shell-component-client.c
+++ b/shell/evolution-shell-component-client.c
@@ -315,7 +315,6 @@ evolution_shell_component_client_construct (EvolutionShellComponentClient *shell
EvolutionShellComponentClient *
evolution_shell_component_client_new (const char *id)
{
- EvolutionShellComponentClient *new;
CORBA_Environment ev;
CORBA_Object corba_object;
@@ -338,8 +337,18 @@ evolution_shell_component_client_new (const char *id)
return NULL;
}
+ return evolution_shell_component_client_new_for_objref (corba_object);
+}
+
+EvolutionShellComponentClient *
+evolution_shell_component_client_new_for_objref (const GNOME_Evolution_ShellComponent objref)
+{
+ EvolutionShellComponentClient *new;
+
+ g_return_val_if_fail (objref != CORBA_OBJECT_NIL, NULL);
+
new = gtk_type_new (evolution_shell_component_client_get_type ());
- evolution_shell_component_client_construct (new, corba_object);
+ evolution_shell_component_client_construct (new, objref);
return new;
}