aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-shell-component.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-04-16 22:49:22 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-04-16 22:49:22 +0800
commit611fbb0443eb7a26a252ca4a706f9b592cdf0b98 (patch)
treed9274ce378153b5b80116597a196927524834282 /shell/evolution-shell-component.c
parentd4b1e549f69674ab8c3d36f6ffe2b116269b9032 (diff)
downloadgsoc2013-evolution-611fbb0443eb7a26a252ca4a706f9b592cdf0b98.tar
gsoc2013-evolution-611fbb0443eb7a26a252ca4a706f9b592cdf0b98.tar.gz
gsoc2013-evolution-611fbb0443eb7a26a252ca4a706f9b592cdf0b98.tar.bz2
gsoc2013-evolution-611fbb0443eb7a26a252ca4a706f9b592cdf0b98.tar.lz
gsoc2013-evolution-611fbb0443eb7a26a252ca4a706f9b592cdf0b98.tar.xz
gsoc2013-evolution-611fbb0443eb7a26a252ca4a706f9b592cdf0b98.tar.zst
gsoc2013-evolution-611fbb0443eb7a26a252ca4a706f9b592cdf0b98.zip
Increase the default value for
* apps_evolution_shell.schemas: Increase the default value for /schemas/apps/evolution/shell/view_defaults/folder_bar/width to 200. [#41002] * evolution-shell-component.c (owner_ping_callback): Enable this again. (setup_owner_pinging): Same. (impl_setOwner): Check if the shell is in-process and, if so, call setup_owner_pinging(). svn path=/trunk/; revision=20862
Diffstat (limited to 'shell/evolution-shell-component.c')
-rw-r--r--shell/evolution-shell-component.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/shell/evolution-shell-component.c b/shell/evolution-shell-component.c
index 84dd2873a4..f15e656be8 100644
--- a/shell/evolution-shell-component.c
+++ b/shell/evolution-shell-component.c
@@ -204,7 +204,6 @@ fill_corba_sequence_from_null_terminated_string_array (CORBA_sequence_CORBA_stri
/* Owner pinging. */
-#if 0
static gboolean
owner_ping_callback (void *data)
{
@@ -267,8 +266,6 @@ setup_owner_pinging (EvolutionShellComponent *shell_component)
priv->ping_timeout_id = g_timeout_add (PING_DELAY, owner_ping_callback, shell_component);
}
-#endif
-
/* CORBA interface implementation. */
@@ -405,12 +402,10 @@ impl_setOwner (PortableServer_Servant servant,
const CORBA_char *evolution_homedir,
CORBA_Environment *ev)
{
- BonoboObject *bonobo_object;
EvolutionShellComponent *shell_component;
EvolutionShellComponentPrivate *priv;
- bonobo_object = bonobo_object_from_servant (servant);
- shell_component = EVOLUTION_SHELL_COMPONENT (bonobo_object);
+ shell_component = EVOLUTION_SHELL_COMPONENT (bonobo_object_from_servant (servant));
priv = shell_component->priv;
if (priv->owner_client != NULL) {
@@ -435,15 +430,16 @@ impl_setOwner (PortableServer_Servant servant,
}
if (ev->_major == CORBA_NO_EXCEPTION) {
+ BonoboObject *local_object;
+
priv->owner_client = evolution_shell_client_new (shell);
g_signal_emit (shell_component, signals[OWNER_SET], 0, priv->owner_client, evolution_homedir);
-#if 0
- /* Disable this for now, it seems to cause trouble for local
- components. We should be checking wether the component is
- local, and disable the pinging in that case. */
- setup_owner_pinging (shell_component);
-#endif
+ /* Set up pinging of the shell (to realize if it's gone unexpectedly) when in the
+ non-local case. */
+ local_object = bonobo_object (ORBit_small_get_servant (shell));
+ if (local_object == NULL)
+ setup_owner_pinging (shell_component);
}
}