diff options
Diffstat (limited to 'archiver/location.c')
-rw-r--r-- | archiver/location.c | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/archiver/location.c b/archiver/location.c index 45be20088..18638214d 100644 --- a/archiver/location.c +++ b/archiver/location.c @@ -466,7 +466,7 @@ location_set_arg (GtkObject *object, GtkArg *arg, guint arg_id) (GTK_VALUE_POINTER (*arg))); location->p->parent = GTK_VALUE_POINTER (*arg); - bonobo_object_ref (GTK_VALUE_POINTER (*arg)); + bonobo_object_ref (BONOBO_OBJECT (location->p->parent)); } default: @@ -1355,12 +1355,13 @@ location_store_full_snapshot (Location *location) return 0; } -/* location_garbage_collect: +/** + * location_garbage_collect: * @location: * * Iterates through backends and eliminates excess archived data from the * configuration log and the XML archive - */ + **/ static void garbage_collect_cb (ConfigLog *config_log, gchar *backend_id, gint id, Location *location) @@ -1391,6 +1392,19 @@ location_garbage_collect (Location *location) } } +/** + * location_is_deleted: + * @location: + * + * Returns TRUE iff the location is marked deleted + **/ + +gboolean +location_is_deleted (const Location *location) +{ + return location->p->deleted; +} + static gint get_backends_cb (BackendList *backend_list, gchar *backend_id, Location *location) |