Update listener name
2001-10-18 Bradford Hovinen <hovinen@ximian.com> * bonobo-config-archiver.c (get_listener_oafiid): Update listener name
This commit is contained in:
parent
fd0dba5cec
commit
caea6d86ce
2 changed files with 5 additions and 13 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2001-10-18 Bradford Hovinen <hovinen@ximian.com>
|
||||||
|
|
||||||
|
* bonobo-config-archiver.c (get_listener_oafiid): Update listener name
|
||||||
|
|
||||||
2001-10-13 Bradford Hovinen <hovinen@ximian.com>
|
2001-10-13 Bradford Hovinen <hovinen@ximian.com>
|
||||||
|
|
||||||
* bonobo-config-archiver.c (real_sync): Try to resolve a listener
|
* bonobo-config-archiver.c (real_sync): Try to resolve a listener
|
||||||
|
|
|
@ -220,8 +220,6 @@ real_get_value (BonoboConfigDatabase *db,
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0 /* Disabled now to be safe */
|
|
||||||
|
|
||||||
/* Produce a new, dynamically allocated string with the OAF IID of the listener
|
/* Produce a new, dynamically allocated string with the OAF IID of the listener
|
||||||
* associated with the given backend id
|
* associated with the given backend id
|
||||||
*/
|
*/
|
||||||
|
@ -233,14 +231,12 @@ get_listener_oafiid (const gchar *backend_id)
|
||||||
|
|
||||||
tmp = g_strdup (backend_id);
|
tmp = g_strdup (backend_id);
|
||||||
if ((tmp1 = strstr (tmp, "-properties")) != NULL) *tmp1 = '\0';
|
if ((tmp1 = strstr (tmp, "-properties")) != NULL) *tmp1 = '\0';
|
||||||
oafiid = g_strconcat ("OAFIID:Bonobo_Listener_", tmp, NULL);
|
oafiid = g_strconcat ("OAFIID:Bonobo_Listener_Config_", tmp, NULL);
|
||||||
g_free (tmp);
|
g_free (tmp);
|
||||||
|
|
||||||
return oafiid;
|
return oafiid;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* Disabled */
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
real_sync (BonoboConfigDatabase *db,
|
real_sync (BonoboConfigDatabase *db,
|
||||||
CORBA_Environment *ev)
|
CORBA_Environment *ev)
|
||||||
|
@ -248,10 +244,8 @@ real_sync (BonoboConfigDatabase *db,
|
||||||
BonoboConfigArchiver *archiver_db = BONOBO_CONFIG_ARCHIVER (db);
|
BonoboConfigArchiver *archiver_db = BONOBO_CONFIG_ARCHIVER (db);
|
||||||
BonoboArg *arg;
|
BonoboArg *arg;
|
||||||
|
|
||||||
#if 0 /* Disabled now to be safe */
|
|
||||||
gchar *listener_oafiid;
|
gchar *listener_oafiid;
|
||||||
Bonobo_Listener listener;
|
Bonobo_Listener listener;
|
||||||
#endif /* Disabled */
|
|
||||||
|
|
||||||
if (!db->writeable)
|
if (!db->writeable)
|
||||||
return;
|
return;
|
||||||
|
@ -266,8 +260,6 @@ real_sync (BonoboConfigDatabase *db,
|
||||||
|
|
||||||
BONOBO_RET_EX (ev);
|
BONOBO_RET_EX (ev);
|
||||||
|
|
||||||
#if 0 /* Disabled now to be safe */
|
|
||||||
|
|
||||||
/* Try to find a listener to apply the settings. If we can't, don't
|
/* Try to find a listener to apply the settings. If we can't, don't
|
||||||
* worry about it
|
* worry about it
|
||||||
*/
|
*/
|
||||||
|
@ -281,16 +273,12 @@ real_sync (BonoboConfigDatabase *db,
|
||||||
CORBA_exception_init (ev);
|
CORBA_exception_init (ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* Disabled */
|
|
||||||
|
|
||||||
arg = bonobo_arg_new (BONOBO_ARG_NULL);
|
arg = bonobo_arg_new (BONOBO_ARG_NULL);
|
||||||
bonobo_event_source_notify_listeners (archiver_db->es, "Bonobo/ConfigDatabase:sync", arg, ev);
|
bonobo_event_source_notify_listeners (archiver_db->es, "Bonobo/ConfigDatabase:sync", arg, ev);
|
||||||
bonobo_arg_release (arg);
|
bonobo_arg_release (arg);
|
||||||
|
|
||||||
#if 0 /* Disabled now to be safe */
|
|
||||||
if (listener != CORBA_OBJECT_NIL)
|
if (listener != CORBA_OBJECT_NIL)
|
||||||
bonobo_object_release_unref (listener, NULL);
|
bonobo_object_release_unref (listener, NULL);
|
||||||
#endif /* Disabled */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue