Commit graph

84 commits

Author SHA1 Message Date
Bradford Hovinen
aed49db337 Always retrieve the location id from gnome_config
2001-07-30  Bradford Hovinen  <hovinen@ximian.com>

	* archive.c (archive_get_current_location_id): Always retrieve
	the location id from gnome_config
2001-07-30 14:25:57 +00:00
Bradford Hovinen
bd3a67e6b6 Use capplet-archive/config/current/location for current location to avoid
2001-07-30  Bradford Hovinen  <hovinen@ximian.com>

	* archive.c (archive_set_current_location_id): Use
	capplet-archive/config/current/location for current location to
	avoid conflicting with control-center
2001-07-30 14:12:03 +00:00
Bradford Hovinen
eb938c2725 Make sure to write log when socket_owner not set
2001-07-30  Bradford Hovinen  <hovinen@ximian.com>

	* config-log.c (config_log_write_entry): Make sure to write log
	when socket_owner not set
2001-07-30 13:43:33 +00:00
Bradford Hovinen
a817c23277 Close the socket if we couldn't load the log entry (config_log_destroy):
2001-07-30  Bradford Hovinen  <hovinen@ximian.com>

	* config-log.c (socket_data_cb): Close the socket if we couldn't
	load the log entry
	(config_log_destroy):
	(config_log_open): Disable socket sync system
2001-07-30 13:23:57 +00:00
Bradford Hovinen (Gdict maintainer)
2087f846f0 Removed efence bootstrap 2001-07-27 22:23:44 +00:00
Bradford Hovinen
d9f17ec8c3 Don't unref the event source or the property bag
2001-07-27  Bradford Hovinen  <hovinen@ximian.com>

	* bonobo-config-archiver.c (bonobo_config_archiver_destroy): Don't
	unref the event source or the property bag
2001-07-27 22:21:38 +00:00
Bradford Hovinen
33b3809115 1.5.2
2001-07-27  Bradford Hovinen  <hovinen@ximian.com>

	* RELEASE : 1.5.2
2001-07-27 16:02:08 +00:00
Bradford Hovinen
4937798114 Remove IMLIB check (GNOMECC_CAPPLETS_DESKTOP_IN_RULE): Add sed expression
2001-07-25  Bradford Hovinen  <hovinen@ximian.com>

	* configure.in: Remove IMLIB check
	(GNOMECC_CAPPLETS_DESKTOP_IN_RULE): Add sed expression to cover
	macro DESKTOP_EXEC_LINE
	(LIBCOMMON_DIR): Add option --enable-bonobo-conf

	* all: Added support for optionally compiling without bonobo-conf enabled
2001-07-25 17:26:17 +00:00
Richard Hestilow
ed25d779db Do sanity checking on the rollback ID we get.
2001-07-24  Richard Hestilow  <hestilow@ximian.com>

	* bonobo-config-archiver.c (pb_set_fn): Do sanity checking on
	the rollback ID we get.
2001-07-25 06:00:49 +00:00
Richard Hestilow
fa088b6d63 Ok, bad fix. Move that to the archiver.
2001-07-24  Richard Hestilow  <hestilow@ximian.com>

	* config-log.c (parse_line): Ok, bad fix. Move that to the archiver.

	* bonobo-config-archiver.c (pb_set_fn): Moved here.
	(bonobo_config_archiver_new): Don't aggregate against an EventSource,
	since the PropertyBag already has one and everything will get confused.
	Just use the one the bag has.
	(bonobo_config_archiver_destroy): Don't unref the event source, we
	don't own it any more.
2001-07-25 05:25:13 +00:00
Richard Hestilow
17cd2c6e79 Fix date parsing to work with DST.
2001-07-24  Richard Hestilow  <hestilow@ximian.com>

	* config-log.c (parse_line): Fix date parsing to work with DST.

	* bonobo-config-archiver.[ch]: Export a PropertyBag interface that
	has the last_modified date as a read-only property.
2001-07-25 02:58:40 +00:00
Bradford Hovinen
62137c9e23 Use correct pointer type when passing to notify_listeners
2001-07-24  Bradford Hovinen  <hovinen@ximian.com>

	* bonobo-config-archiver.c (real_sync): Use correct pointer
	type when passing to notify_listeners
2001-07-24 23:20:53 +00:00
Bradford Hovinen
f079a9ab87 Notify listeners with a sync event
2001-07-24  Bradford Hovinen  <hovinen@ximian.com>

	* bonobo-config-archiver.c (real_sync): Notify listeners with a sync event
2001-07-24 22:52:28 +00:00
Jose Maria Celorio
0ae3d29c91 1.5.0 here we go 2001-07-20 09:49:49 +00:00
Bradford Hovinen (Gdict maintainer)
70c43768b5 Fixed name of background properties capplet 2001-07-19 21:39:14 +00:00
Bradford Hovinen
fe99988f34 Add mechanism for quitting once the moniker is no longer in use
2001-07-17  Bradford Hovinen  <hovinen@ximian.com>

        * bonobo-config-archiver.c (bonobo_config_archiver_new): Add
        mechanism for quitting once the moniker is no longer in use
        (bonobo_config_archiver_new): Make archive a static variable
        (bonobo_config_archiver_new): Explicitly destroy archive when
        program quits
        (timeout_cb): Remove

        * capplet-util.c (get_factory_name):
        (get_default_moniker):
        (get_property_name): Use correct names when the full path was
        specified for the executable
2001-07-17 22:14:19 +00:00
Bradford Hovinen
90ffc8a3e6 Add mechanism for quitting once the moniker is no longer in use
2001-07-17  Bradford Hovinen  <hovinen@ximian.com>

	* bonobo-config-archiver.c (bonobo_config_archiver_new): Add
	mechanism for quitting once the moniker is no longer in use
2001-07-17 20:09:05 +00:00
Bradford Hovinen
7e8f457622 Remove
2001-07-17  Bradford Hovinen  <hovinen@ximian.com>

	* config-log.c (slave_apprise_data): Remove
2001-07-17 19:22:51 +00:00
Bradford Hovinen
31a81628c4 strdup the string to remove compiler warnings
2001-07-17  Bradford Hovinen  <hovinen@ximian.com>

	* archive.c (archive_unregister_location):
	(archive_get_location): strdup the string to remove compiler warnings
2001-07-17 19:08:55 +00:00
Bradford Hovinen
313127a2e5 Use return value (location_store_full_snapshot): Use return value
2001-07-17  Bradford Hovinen  <hovinen@ximian.com>

	* location.c (location_store): Use return value
	(location_store_full_snapshot): Use return value
2001-07-17 19:04:33 +00:00
Bradford Hovinen
d6ec57650d Logic fix.
2001-07-12  Bradford Hovinen  <hovinen@ximian.com>

	* archive.c (archive_get_current_location_id): Logic fix.
2001-07-12 20:32:09 +00:00
Bradford Hovinen
85bc24c3f4 Clear appropriate global archive pointer
2001-07-12  Bradford Hovinen  <hovinen@ximian.com>

	* archive.c (archive_destroy): Clear appropriate global archive pointer
2001-07-12 20:31:25 +00:00
Jose Maria Celorio
021cafaa5f update to reflect the new location of the scripts 2001-07-12 19:37:15 +00:00
Bradford Hovinen
10e8b799a7 Only try to store a full snapshot if we are in a global archive
2001-07-12  Bradford Hovinen  <hovinen@ximian.com>

	* archive.c (archive_get_current_location_id): Only try to store a
	full snapshot if we are in a global archive

	* bonobo-config-archiver.c (bonobo_config_archiver_new): Store
	real_name in archiver_db
	(bonobo_config_archiver_destroy): Use archiver_db->real_name with
	bonobo_url_register
2001-07-12 19:15:36 +00:00
Jose Maria Celorio
2d866ad94e remove the root-manager for now. added an explanation to Makefile.am 2001-07-12 05:08:36 +00:00
Bradford Hovinen
3395c90a5d Add sound-properties
2001-07-10  Bradford Hovinen  <hovinen@ximian.com>

        * default-user.xml: Add sound-properties

        * sound-properties-capplet.c (get_legacy_settings): Sync database
2001-07-11 02:22:46 +00:00
Bradford Hovinen
18e8de9ef6 Don't accept PropertyBag interface
2001-07-10  Bradford Hovinen  <hovinen@ximian.com>

	* bonobo-moniker-archiver.c (archiver_resolve): Don't accept
	PropertyBag interface

	* sound-properties-capplet.c (set_moniker_cb): Make full moniker

	* sound-properties.xml: Fixed path name
2001-07-10 14:00:15 +00:00
Bradford Hovinen
2c2fafbaad Use bonobo_object_unref rather than gtk_object_destroy
2001-07-09  Bradford Hovinen  <hovinen@ximian.com>

	* bonobo-config-archiver.c (bonobo_config_archiver_new): Use
	bonobo_object_unref rather than gtk_object_destroy

	* bonobo-moniker-archiver.c (archiver_resolve): Allow PropertyBag
	interface as well
	(parse_name): Set *location to NULL when there is no location

	* sound-properties.xml: Use 0 and 1 rather than true and false

	* capplet-dir.c (capplet_control_launch): Don't convert underscores
	to dashes in moniker
2001-07-09 19:56:27 +00:00
Bradford Hovinen
c09362e12a Use .gnome/capplet-archive rather than .gnome/control-center
2001-07-09  Bradford Hovinen  <hovinen@ximian.com>

	* archive.c (archive_load): Use .gnome/capplet-archive rather than
	.gnome/control-center

	* sound-properties-capplet.c (create_control_cb): Implement
	(main): Use create_control_cb

	* Bonobo_Control_Capplet_sound_properties.oaf: Use PropertyControl
	interface

	* sound-properties-capplet.c (create_dialog_cb): Update signature
	for use as a BonoboPropertyControlGetControlFn

	* capplet-dir.c (capplet_control_launch): Create a control by
	first retrieving the PropertyControl and then extracting the
	control from it
	(capplet_control_launch): Connect button signals
	(capplet_cancel_cb): Implement. Just destroy the app widget
	(capplet_ok_cb): Ditto.
	(capplet_control_launch): Don't use a BonoboArg when setting the
	property
2001-07-09 18:36:10 +00:00
Bradford Hovinen
299c4ed6f4 Try to load the defaults file if no rollback data can be found
2001-07-09  Bradford Hovinen  <hovinen@ximian.com>

	* bonobo-config-archiver.c (bonobo_config_archiver_new): Try to
	load the defaults file if no rollback data can be found

	* capplets/sound/Makefile.am (defaults_DATA): Add sound-properties.xml
	(EXTRA_DIST): Add defaults_DATA

	* control-center/Makefile.am (INCLUDES): Update directory locations
2001-07-09 16:46:31 +00:00
Bradford Hovinen
33cc1312bc Renamed ximian_archiver to config_archiver
2001-07-05  Bradford Hovinen  <hovinen@ximian.com>

	* config-manager-dialog.c: Update #include locations
2001-07-05 21:57:01 +00:00
Bradford Hovinen
00a42ca4f3 Remove libcapplet Add XIMIAN_ARCHIVER_{LIBDIR|LIBS|INCLUDEDIR} Bump
2001-07-05  Bradford Hovinen  <hovinen@ximian.com>

	* configure.in (GNOMECC): Remove libcapplet
	Add XIMIAN_ARCHIVER_{LIBDIR|LIBS|INCLUDEDIR}
	Bump version number to 1.3.2
2001-07-05 20:06:12 +00:00
Bradford Hovinen
4cf6f3a859 Use bonobo-conf rather than bonobo-config for include path
2001-07-05  Bradford Hovinen  <hovinen@ximian.com>

	* bonobo-config-archiver.[ch]: Use bonobo-conf rather than
	bonobo-config for include path
2001-07-05 17:41:47 +00:00
Bradford Hovinen (Gdict maintainer)
07bc9090c8 Added missing OAF file 2001-07-05 17:38:11 +00:00
Bradford Hovinen (Gdict maintainer)
f76b12f43c Added missing Bonobo config moniker files 2001-07-05 17:37:53 +00:00
Bradford Hovinen
aaaf56e71c Removed rules pertaining to sound-properties
2001-07-05  Bradford Hovinen  <hovinen@ximian.com>

	* capplets/Makefile.am: Removed rules pertaining to
	sound-properties

	* capplets/sound-properties-capplet.c (set_moniker_cb): Change
	BonoboPropertyEditor to BonoboPEditor

	* configure.in: Update AC_INIT to use correct directory name
	(AC_OUTPUT): Update to current directory structure

	* Makefile.am (SUBDIRS): Update to current directory structure

	* capplets/Makefile.am (always_built_SUBDIRS): Updated to current
	directory structure

	* bonobo-moniker-archiver.c (archiver_resolve): Update call to
	Bonobo_ConfigDatabase_addDatabase

	* bonobo-config-archiver.h: Fix include directories

	* Makefile.am (INCLUDES): Update to use pkg-config standards; add
	BONOBO_CFLAGS
	Include configuration moniker-related material
	(SUBDIRS): Remove
	(bin_PROGRAMS): Added ximian-archiver

	* capplets/keyboard/prefs-widget.c (set_scale): Add appropriate casts

	* capplets/rollback/Makefile.am (INCLUDES):
	(rollback_capplet_LDADD): Update to include ximian_archiver stuff
	correctly
2001-07-05 17:27:44 +00:00
Tambet Ingo
9a1ac9dd28 Added display-conf backend.
2001-07-02  Tambet Ingo  <tambet@ximian.com>

	* default-global.xml: Added display-conf backend.
2001-07-02 21:40:38 +00:00
Bradford Hovinen
a18fd85bba Return NULL if the location id is NULL (archive_get_current_location_id):
2001-06-22  Bradford Hovinen  <hovinen@ximian.com>

	* archive.c (archive_get_current_location): Return NULL if the
	location id is NULL
	(archive_get_current_location_id): Return NULL if storing the
	snapshot results in an error

	* location.c (location_store): Add return values for error
	conditions; remove g_warning's and g_critical's
	(location_store_full_snapshot): Folded in store_snapshot_cb; don't
	call location_foreach_backend
	(location_store_full_snapshot): Return error condition; 0 on
	success, -1 if any backend failed

	* location-manager-dialog.c (location_manager_dialog_set_arg): Add
	a check to inform the user if the location manager was unable to
	form an initial configuration snapshot
2001-06-22 16:34:57 +00:00
Bradford Hovinen
47d682e446 Use location_get_changed_backends
2001-06-21  Bradford Hovinen  <hovinen@ximian.com>

	* archive.c (archive_set_current_location): Use
	location_get_changed_backends

	* location.c (location_get_changed_backends):
	(location_does_backend_change): Implement
	(create_backends_list):
	(merge_backend_lists): Moved from archive.c

	* gui-backend-list.c (gui_backend_list_launch_current): Use
	location_does_backend_change when deciding whether to pass
	--location on the command line
2001-06-21 21:48:12 +00:00
Bradford Hovinen
93e004a93f Don't call close on fd (dump_log): Use g_critical on error conditions
2001-06-21  Bradford Hovinen  <hovinen@ximian.com>

	* config-log.c (dump_log): Don't call close on fd
	(dump_log): Use g_critical on error conditions rather than g_warning
2001-06-21 14:33:24 +00:00
Bradford Hovinen (Gdict maintainer)
9f75f8c219 Typo bugfix in configuration log 2001-06-20 18:53:47 +00:00
Bradford Hovinen
f0dda427f7 Call io_buffer_destroy
2001-06-20  Bradford Hovinen  <hovinen@ximian.com>

	* config-log.c (config_log_write_entry): Call io_buffer_destroy
2001-06-20 18:33:08 +00:00
Bradford Hovinen
1f701fce3b Dump the log after loading it from the slave (dump_log): Set first_old to
2001-06-20  Bradford Hovinen  <hovinen@ximian.com>

	* config-log.c (slave_data_cb): Dump the log after loading it from
	the slave
	(dump_log): Set first_old to the beginning of the list after the dump
	(do_load): Don't call do_unload
	(socket_data_cb): Check for hang up first
	(do_load): Don't call reset_filenames

	* archive.c, Makefile.am: Replace all instances of ximian-config
	with ximian-setup-tools

	* config-log.c (slave_new): Don't apprise slave of new data
	(config_log_write_entry): Dump log after every write
2001-06-20 17:58:45 +00:00
Bradford Hovinen
c39d6dff02 Dump the log after loading it from the slave (dump_log): Set first_old to
2001-06-20  Bradford Hovinen  <hovinen@ximian.com>

	* config-log.c (slave_data_cb): Dump the log after loading it from
	the slave
	(dump_log): Set first_old to the beginning of the list after the dump
	(do_load): Don't call do_unload
	(socket_data_cb): Check for hang up first
2001-06-20 17:21:33 +00:00
Bradford Hovinen
0b43d32e46 Don't apprise slave of new data (config_log_write_entry): Dump log after
2001-06-20  Bradford Hovinen  <hovinen@ximian.com>

	* config-log.c (slave_new): Don't apprise slave of new data
	(config_log_write_entry): Dump log after every write
2001-06-20 14:41:18 +00:00
Bradford Hovinen (Gdict maintainer)
0d1ac243ed Undefine DEBUG_ME_MORE 2001-06-19 18:46:02 +00:00
Bradford Hovinen
172e5c0939 Free the location path as we walk down it. (create_backends_list):
2001-06-19  Bradford Hovinen  <hovinen@ximian.com>

	* archive.c (archive_set_current_location): Free the location path
	as we walk down it.
	(create_backends_list): Implement
	(merge_backend_lists): Implement
	(archive_set_current_location): Call above functions
	(create_backends_list): Get rid of dummy first element
	(archive_set_current_location): Don't use backends->next when
	calling rollback_backends_to

	* location.c (run_backend_proc): Remember to close the writing end
	(location_store): Change g_error to g_critical
	(run_backend_proc): Don't getenv PATH
	(run_backend_proc): Make sure to close other end of pipe in child
	process

2001-06-18  Bradford Hovinen  <hovinen@ximian.com>

	* location.c (location_store): Use GString API

	* config-log.c (slave_data_cb): Don't use == to test IO conditions
2001-06-19 18:31:18 +00:00
Bradford Hovinen
aa7315ed93 Don't use == to test IO conditions
2001-06-18  Bradford Hovinen  <hovinen@ximian.com>

	* config-log.c (slave_data_cb): Don't use == to test IO conditions
2001-06-18 16:45:31 +00:00
Bradford Hovinen
cf371772c8 Don't free path string after setting the path
2001-06-01  Bradford Hovinen  <hovinen@ximian.com>

        * location.c (run_backend_proc): Don't free path string after
        setting the path
2001-06-02 01:47:18 +00:00
Chema Celorio
1d5ef7fade create x_aConf.sh from the XIMIAN_ARCHIVER_FOO_CONF varialbes
2001-05-26  Chema Celorio  <chema@celorio.com>

	* Makefile.am (ximian_archiverConf.sh): create x_aConf.sh from
	the XIMIAN_ARCHIVER_FOO_CONF varialbes

2001-05-26  Chema Celorio  <chema@celorio.com>

	* configure.in (XIMIAN_ARCHIVER_LIBDIR/LIBS/INCLUDEDIR_CONF):
	add new variables to be used in ximian_archiverConf.sh which are
	different from
2001-05-26 10:14:57 +00:00