2002-01-27 Bradford Hovinen <hovinen@ximian.com>
* service-edit-dialog.c (validate_data): Call get_service_info to
handle case where the service was created and not yet committed
* mime-type-info.c (get_mime_type_info, get_mime_type_info_int):
Implement
* mime-edit-dialog.c (validate_data): Check if the MIME type is
already known and we are adding a new type
* service-edit-dialog.c (service_edit_dialog_init): Change dialog
title
* file-types-capplet.c (edit_count_cb): Rename from count_cb
(selection_changed_cb): Initialize count
(selection_changed_cb): Iterate on remove_count_cb and use that to
set the sensitivity of the remove button
(create_dialog): Desensitize the remove button
2002-01-27 Bradford Hovinen <hovinen@ximian.com>
* service-info.c (load_all_services): Accept model
(get_services_category_entry): Accept model
(service_info_new): Accept model
(get_services_category_entry): Set the parent pointer
* model-entry.c (get_model_entries): Accept model
* mime-type-info.c (mime_type_info_new, load_all_mime_types):
Accept model
* mime-edit-dialog.c (store_data): Don't perform notification
* model-entry.c (model_entry_insert_child)
(model_entry_remove_child): Perform notification here
* mime-type-info.c (mime_type_info_set_category_name): Accept
model for notification purposes
(get_category): Ditto; notify the model that the new category has
been created
* mime-types-model.c (mime_types_model_iter_parent): Make the
iterator invalid if the parent is the root node
* mime-edit-dialog.c (collect_filename_extensions): Return NULL if
there are no nodes in the tree at all
2002-01-26 Bradford Hovinen <hovinen@ximian.com>
* service-edit-dialog.c (response_cb): Free the structure if the
user clicks cancel and this is an add dialog
* mime-edit-dialog.c (response_cb): Free the structure if the user
clicks cancel and this is an add dialog
* service-info.c (load_all_services): Call
model_entry_insert_child here
(service_info_new): Don't call model_entry_insert_child
(get_services_category_entry): Make this public
* service-edit-dialog.c (store_data): Call
model_entry_insert_child here
2002-01-24 Bradford Hovinen <hovinen@ximian.com>
* mime-type-info.[ch], mime-types-model.[ch], service-info.[ch]:
Code cleanup; create our own model rather than using GtkTreeStore
* All: Update to reflect the above
2002-01-11 Bradford Hovinen <hovinen@ximian.com>
* mime-edit-dialog.c (populate_application_list): Don't check
default action id if default action is NULL
* mime-type-info.c (mime_type_info_free): Remove data from
mime_type_table
* service-info.c (service_info_free): Free the info structure
* mime-type-info.c (mime_type_info_load): Ditto below
* service-info.c (service_info_load): Use service_info_table as a
cache
(service_info_free): Remove data from service_info_table
2002-01-11 Bradford Hovinen <hovinen@ximian.com>
* file-types-capplet.c (apply_cb): Commit the changeset
(main): Construct a changeset
(edit_cb): Pass the changeset to service_info_new
* service-info.c (set_string): Don't set the value if it is NULL
(service_info_load): Store changeset in info structure
(service_info_save): Don't require a changeset; use the one stored
in the structure
2002-01-11 Bradford Hovinen <hovinen@ximian.com>
* service-info.c (set_string): Don't set the value if it is NULL
* service-edit-dialog.c (store_data): Call service_info_save
2002-01-11 Bradford Hovinen <hovinen@ximian.com>
* mime-edit-dialog.c (add_ext_cb): Terminate column list with -1
* service-edit-dialog.c (store_data): Call service_info_update
* mime-edit-dialog.c (store_data): Call mime_type_info_update
* mime-type-info.c (mime_type_info_update): Implement. Updates the
model with data from the structure
* service-info.c (service_info_update): Implement. Updates the
model with data from the structure
* mime-type-info.c (form_extensions_string): Implement. Factor
from mime_type_info_save
* service-info.c (service_info_load): Accept model and iter rather
than protocol name; read protocol name from model
* mime-type-info.c (mime_type_info_load): Accept model and iter
rather than mime type; read the mime type from the model
* mime-types-model.c (get_icon_pixbuf): Make this public
2002-01-11 Bradford Hovinen <hovinen@ximian.com>
* service-edit-dialog.c (store_data): Implement
(program_sensitive_cb): Implement
(response_cb): Call store_data if response_id is OK
(service_edit_dialog_init): Connect toggled signal on
run_program_toggle to program_sensitive_cb
* mime-type-info.h: Add #include gnome-vfs-mime-info.h
* service-edit-dialog.c (populate_app_list): Implement
* mime-edit-dialog.c (populate_component_list): Make sure custom
menu item is shown