2001-02-20 Bradford Hovinen <hovinen@ximian.com>
* location.c (compare_xml_nodes): Use attr->val rather than
attr->node
* tests/test-3.sh: Created
* tests/test-2.sh: Removed parts dealing with partial containment
2001-02-19 Bradford Hovinen <hovinen@ximian.com>
* Added test-1.sh and test-2.sh, the first two tests in the test suite
* location.c (location_foreach_backend): Update to use BackendNote
(do_rollback): Don't do rollback if the doc is NULL
(location_store_xml): Return if this location does not contain the
backend specified
(location_store_xml): Use fprintf rather than g_warning
(subtract_xml_node):
(merge_xml_nodes): Update child node while iterating
* config-log.c (config_log_get_rollback_ids_for_date): Remove
* location.c (location_set_arg): ref inherited object
* main.c (main): Don't check if the location is default; don't
create default location if non-existant
(main): Signal error if the user is adding a location and did not
specify a name
(main): Use fprintf to signal the error that a location could not
be opened
(main): Signal error and exit when archive cannot be opened,
rather than using g_error
(do_add_location): Check for NULL location_id
(do_add_location): Create default location if it does not exist
and it is specified as the parent
* archive.c (archive_get_current_location_id): Create the default
location if it does not exist
* backend-list.c (backend_list_contains): Use strcmp and iterate
through the list
* location.c (location_contains): Read whether the backend is in
the master list if this location is toplevel
2001-02-18 Bradford Hovinen <hovinen@ximian.com>
* main.c (do_add_backend): Support ContainmentType specification
(do_store): Support StoreType specification
(struct store_options): Add set of options to support
compare_parent, mask_previous, options
(struct add_remove_backend_options): Add option for partial
containment when adding backend
* location.c (subtract_xml_node):
(merge_xml_nodes):
(compare_xml_nodes):
(merge_xml_docs):
(subtract_xml_doc): Implement. XML node compare/merging operations
(location_store): Rewrite to call location_store_xml
(location_store_xml): Include support for diffing with
configuration data from parent config
(location_dump_rollback_data): Rewrite to use
location_load_rollback_data
(dump_xml_data): Remove
(do_rollback): Rewrite to use xmlDocDump; pass xmlDocPtr rather
than id number
(location_rollback_id): Add node merging support
(location_rollback_backend_by):
(location_rollback_backend_to): Rewrite to use
location_load_rollback_data
(location_rollback_backends_to): Rewrite to iterate through
backend list and call location_rollback_backend_to for each
element
(location_rollback_all_to): Ditto
2001-02-14 Bradford Hovinen <hovinen@ximian.com>
* location.h (_ContainmentType): Introduce. Specifies the type of
containment (full, partial, none), of a backend in a location
* location.c: Added struct BackendNote; have backend list include
type of containment as well as backend id
(location_contains): Use find_note
(find_note): Implement. Finds a note for the given backend id in
the backend list
(backend_note_new):
(backend_note_destroy): Implement. Convenience functions for
creating and destroying backend notes
(load_metadata_file):
(write_metadata_file): Read/write type of backend containment
(full or partial)
(location_add_backend): Pass parameter telling whether containment
is partial
2001-02-06 Gene Z. Ragan <gzr@eazel.com>
Fixed bug 6258, Determine initial capplet sort column
* mime-type-capplet/nautilus-mime-type-capplet.c:
(init_mime_capplet):
Sort based on first column in list.
2001-02-05 Gene Z. Ragan <gzr@eazel.com>
Work done to improve the mime tpye capplet.
Enable the capplet to be launched with a mime type.
If a mime type is an argument, have the capplet scroll
to that item in the list before the user begins interaction.
* mime-type-capplet/nautilus-mime-type-capplet.c: (main),
(list_move_vertical), (list_moveto), (list_reveal_row),
(init_mime_capplet), (populate_mime_list):
2001-01-29 Rebecca Schulman <rebecka@eazel.com>
Change the value of the "expects_uris" attribute
of applications to have 3 possible values:
"yes", "no", and "non-file". This change will
allow applications to understand how to launch programs
that expect local paths for local files, but uris
for non-file locations.
reviewed by: Darin Adler <darin@eazel.com>
* data/mime/gnome-vfs.applications:
Change expects_uris to "non-file" where appropriate
(for now mpg123), and added supported_uri_schemes
in places where "expects_uris" was "yes" but no
supported uri schemes were listed. This information
is not yet complete.
* doc/mime-data-specification.txt: Remove the "[to be
implemented]" tag from fields that are now fully implemented
(supported_uri_schemes and expects_uris)
* libgnomevfs/gnome-vfs-mime-handlers.h:
* libgnomevfs/gnome-vfs-application-registry.h:
* libgnomevfs/gnome-vfs-application-registry.c: (application_new),
(value_looks_true), (get_bool_value), (application_add_key),
(gnome_vfs_application_registry_get_mime_application),
(gnome_vfs_application_registry_save_mime_application):
Parse, set and get the new "expects_uris"
attribute, and represent its set of possible values using
an enum, rather than a gboolean.
* mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
(show_new_application_window), (show_edit_application_window):
Add the right bug number to fixmes about updates need in the capplet
to reflect the new application attributes
* test/test-mime-handlers.c:
(format_mime_application_argument_type_for_display),
(print_application):
Print the "expects_uris" attribute as part of the test
program for application information parsing.
2001-01-29 Bradford Hovinen <hovinen@ximian.com>
* rollback-widget.c (rollback_widget_realize): Check entire
success array and warn if any allocation did not succeed
* config-manager-dialog.c (cancel_cb): Don't do rollback
* Makefile.am (rollback_capplet_SOURCES): Added rollback-control.[ch]
* config-manager-dialog.c (config_manager_dialog_init): Construct
a rollback widget with a rollback control and place it in the
dialog
2001-01-27 Bradford Hovinen <hovinen@ximian.com>
* rollback-widget.c (rollback_widget_realize): Allocate control
colors
* rollback-widget.h (struct _RollbackWidget ): Added array
control_colors
* rollback-widget.c (rollback_widget_realize):
(rollback_widget_unrealize): Implement. Just calls the parent's
[un]realize and creates/destroys a GC to be used by the individual
controls.
(rollback_widget_get_gc): Implement. Return the GC created above
2001-01-29 Gene Z. Ragan <gzr@eazel.com>
Fixed bug 5847, MIME type capplet alphabetical oder case sensitive
* mime-type-capplet/nautilus-mime-type-capplet.c:
(sort_case_insensitive), (column_clicked),
(create_mime_list_and_scroller):
Create a sort routine that is not case sensitive.
2001-01-27 Bradford Hovinen <hovinen@ximian.com>
* capplets/new-background-properties/applier.c
(applier_apply_prefs): Disable wallpaper in new_prefs structure,
not structure passed to function
2001-01-26 Bradford Hovinen <hovinen@ximian.com>
* capplets/new-background-properties/main.c
(do_restore_from_defaults): Implement. Creates a preferences
object with factory defaults and saves and applies those changes.
2001-01-26 Rebecca Schulman <rebecka@eazel.com>
Add support for the "supported_uri_schemes"
attributes in the mime applications file,
and changed can_open_uris to "expects_uris"
because this attribute is more about
the way arguments should be specified than
about its capabilities of understanding
locations.
The supported uri schemes attributes is
optional, and if it is not included, the
value is assumed to be file.
reviewed by: Pavel Cisler <pavel@eazel.com>
* libgnomevfs/gnome-vfs-application-registry.h:
Add the new function
gnome_vfs_application_registry_supports_uri_scheme to the
public api
* libgnomevfs/gnome-vfs-application-registry.c: (application_new),
(add_application_to_mime_type_table),
(add_mime_type_to_application),
(add_supported_uri_scheme_to_application),
(remove_application_from_mime_type_table),
(remove_mime_type_for_application),
(supported_uri_scheme_list_copy),
(gnome_vfs_application_registry_supports_uri_scheme),
(gnome_vfs_application_registry_supports_mime_type),
(gnome_vfs_application_registry_add_mime_type),
(gnome_vfs_application_registry_remove_mime_type),
Add supported uri schemes functions to complement
the current mime type functions
and refactor the mime_type functions to share code with
the new supported_uri_schemes functions where
appropriate
(application_clear_mime_types),
(application_add_key),
Add ability to parse the supported_uri_schemes attribute
(gnome_vfs_application_registry_get_mime_application),
(gnome_vfs_application_registry_save_mime_application):
Add supported_uri_schemes to these functions
* libgnomevfs/gnome-vfs-mime-handlers.h:
* libgnomevfs/gnome-vfs-mime-handlers.c:
(gnome_vfs_mime_get_short_list_applications),
(gnome_vfs_mime_application_copy),
(gnome_vfs_mime_application_free),
(copy_str_list):
Add supported_uri_schemes to the MimeApplication
structure
* data/mime/gnome-vfs.applications:
Add some new "supported_uri_schemes".
What I have added is not complete.
* doc/mime-data-specification.txt:
Add information about how user files can augment, but
not replace information about applications' accepted mime
types and supported uri schemes. Add FIXMEs about
how this isn't clearly correct.
* mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
(add_or_update_application), (show_new_application_window),
(show_edit_application_window):
Change can_open_uris to "Expects URIs"
* test/test-mime-handlers-set.c: (main):
* test/test-mime-handlers.c: (append_comma_and_scheme),
(format_supported_uri_schemes_for_display), (print_application):
Update tests, by adding new attribute
2001-01-25 Bradford Hovinen <hovinen@ximian.com>
* config-log.c (get_current_date): Use local time rather than
Greenwich Mean Time
* location.c (location_store_xml): Implement; copy from
location_store
(location_store): Free filename after use
* archive.c (archive_load): Free prefix only if not global
* location.c (location_rollback_all_to): Increment array
* util.c (parse_date): Normalize values
2001-01-25 Bradford Hovinen <hovinen@ximian.com>
* main.c (main): Support operating on global backends
Add popt option for operating on global backends
2001-01-25 jacob berkman <jacob@ximian.com>
* root-manager/root-manager.c (main): add a \n to the usage
message
* root-manager/root-manager-wrap.c: change some g_print's to
fprintf to stderr
2001-01-24 Bradford Hovinen <hovinen@ximian.com>
* config-manager-dialog.c (config_manager_dialog_finalize): Update
unrefs
(config_manager_dialog_init): GLADE_DIR -> GLADE_DATADIR
(config_manager_dialog_init): Remove outdated signal connections
(config_manager_dialog_init): Remove code to create location list
Inherit from CappletWidget rather than GnomeDialog
(config_manager_dialog_init): Remove gtk_window_set_policy call
(ok_cb):
(cancel_cb): Remove gnome_dialog_close call
(config_manager_dialog_init): Set state to "changed" so that the
Ok button is active
(populate_backends_cb): Set backend_id in dialog if not already set
2001-01-24 Bradford Hovinen <hovinen@ximian.com>
* capplets/new-background-properties/preferences.c
(preferences_read_xml): Fix typo in adjust-opacity part
* capplets/new-background-properties/main.c (do_set_xml): Apply
preferences as well as saving them
2001-01-24 Jason Leach <jasonleach@usa.net>
* Makefile.am (INCLUDES): Forgot a trailing backslash so
GNOMECC_CFLAGS wasn't actually being used. It is now.