Use location_get_config_log rather than config_log_open; don't destroy the
2001-07-31 Bradford Hovinen <hovinen@ximian.com> * bonobo-config-archiver.c (pb_get_fn): Use location_get_config_log rather than config_log_open; don't destroy the log
This commit is contained in:
parent
7a711c8ba9
commit
0f5d8ca6dd
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2001-07-31 Bradford Hovinen <hovinen@ximian.com>
|
||||||
|
|
||||||
|
* bonobo-config-archiver.c (pb_get_fn): Use
|
||||||
|
location_get_config_log rather than config_log_open; don't destroy
|
||||||
|
the log
|
||||||
|
|
||||||
2001-07-30 Bradford Hovinen <hovinen@ximian.com>
|
2001-07-30 Bradford Hovinen <hovinen@ximian.com>
|
||||||
|
|
||||||
* archive.c (archive_set_current_location_id): Use
|
* archive.c (archive_set_current_location_id): Use
|
||||||
|
|
|
@ -476,11 +476,10 @@ pb_get_fn (BonoboPropertyBag *bag, BonoboArg *arg,
|
||||||
time_t val;
|
time_t val;
|
||||||
extern int daylight;
|
extern int daylight;
|
||||||
|
|
||||||
log = CONFIG_LOG (config_log_open (archiver_db->location));
|
log = location_get_config_log (archiver_db->location);
|
||||||
id = config_log_get_rollback_id_by_steps (log, 0, archiver_db->real_name);
|
id = config_log_get_rollback_id_by_steps (log, 0, archiver_db->real_name);
|
||||||
if (id < 0)
|
if (id < 0)
|
||||||
{
|
{
|
||||||
gtk_object_destroy (GTK_OBJECT (log));
|
|
||||||
BONOBO_ARG_SET_GENERAL (arg, 0,
|
BONOBO_ARG_SET_GENERAL (arg, 0,
|
||||||
TC_ulonglong, CORBA_unsigned_long_long, NULL);
|
TC_ulonglong, CORBA_unsigned_long_long, NULL);
|
||||||
return;
|
return;
|
||||||
|
@ -494,7 +493,6 @@ pb_get_fn (BonoboPropertyBag *bag, BonoboArg *arg,
|
||||||
|
|
||||||
BONOBO_ARG_SET_GENERAL (arg, val,
|
BONOBO_ARG_SET_GENERAL (arg, val,
|
||||||
TC_ulonglong, CORBA_unsigned_long_long, NULL);
|
TC_ulonglong, CORBA_unsigned_long_long, NULL);
|
||||||
gtk_object_destroy (GTK_OBJECT (log));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue