2002-01-28 Richard Hestilow <hestilow@ximian.com>
* Makefile.am: Use libtool to create the static library, thus
allowing shlibs to link to libbackground (needed for metatheme).
2002-01-28 Bradford Hovinen <hovinen@ximian.com>
* service-edit-dialog.c (populate_app_list): Set custom program
entry and needs terminal here
* service-info.c (service_info_using_custom_app): Implement
* service-edit-dialog.c (populate_app_list): Add destroy notify
for app
* service-info.[ch]: Eliminate custom_line and needs_terminal; use
app for that
2002-01-28 Bradford Hovinen <hovinen@ximian.com>
* mime-type-info.c (mime_type_info_using_custom_app)
(mime_category_info_using_custom_app): Implement
* mime-edit-dialog.c (store_data): Update: don't use custom_line,
needs_terminal
* mime-type-info.[ch]: Eliminate custom_line and needs_terminal;
will use default_action for that now
2002-01-28 Bradford Hovinen <hovinen@ximian.com>
* mime-type-info.c (mime_category_info_save): Don't set tmp1 with
the full category name, free tmp too
(mime_category_info_load_all): strdup app->command
(get_gconf_base_name): Don't put /default-action-id after the key
name
* category-names.h: Update category names
2002-01-28 Bradford Hovinen <hovinen@ximian.com>
* mime-type-info.c (update_subcategories): Fix logic
(mime_type_info_load_all): Don't load default_action if
custom_line is set
* mime-category-edit-dialog.c (store_data): Call
mime_category_info_update
(store_data): Don't notify the model -- nothing there could have
changed
* mime-type-info.c (mime_category_info_update): Implement
(update_subcategories): Update; split from set_subcategory_ids
* mime-category-edit-dialog.c (populate_application_list): Notify
destruction with gnome_vfs_mime_application_free
(store_data): Store default action
(store_data): Store custom line, needs terminal
(populate_application_list): Set needs_terminal_toggle
* mime-type-info.c (mime_type_info_get_use_category):
Implement. Factor from mime_type_info_load_all
(find_possible_supported_apps, reduce_supported_app_list): Use
mime_type_info_get_use_category
(get_gconf_base_name): Replace parentheses with '-'
(mime_category_info_load_all): Only load default action, custom
line if not already loaded
* mime-edit-dialog.c (populate_component_list): Use get_all_components
(populate_application_list): Use get_all_applications
2002-01-27 Bradford Hovinen <hovinen@ximian.com>
* mime-types-model.c (mime_types_model_get_value): Invoke gettext
macro on the category name
* category-names.h: Add this file
2002-01-27 Bradford Hovinen <hovinen@ximian.com>
* mime-type-info.c (get_gconf_base_name): Implement
* mime-category-edit-dialog.c (fill_dialog): Disable
use_category_toggle if this is a toplevel category
(populate_application_list, default_action_changed_cb)
(use_category_toggled_cb, update_sensitivity): Set widget
sensitivity based on various values
* mime-type-info.c (mime_type_info_load_all)
(mime_category_info_load_all): Check use_[parent_]cat_loaded
(mime_category_info_load_all): Override use_parent_category with
FALSE if this is a toplevel category
2002-01-27 Bradford Hovinen <hovinen@ximian.com>
* mime-edit-dialog.c (choose_cat_cb): Use
mime_category_info_get_full_name
* mime-type-info.c (mime_type_info_load_all, mime_type_info_save):
Rename override_category as use_category; give it the opposite
meaning
(reduce_supported_app_list, find_possible_supported_apps): Update
according to the above
(set_subcategory_ids): Implement
(mime_category_info_save): Implement
(mime_category_info_load_all): Implement
(mime_category_info_get_full_name): Implement; copy from
mime_type_info_get_category_name
(mime_type_info_get_category_name): Call
mime_category_info_get_full_name
2002-01-27 Richard Hestilow <hestilow@ximian.com>
* control/control.c: Include string.h.
(create_form): Defer modifying default rc files until property is set.
(set_prop_cb): Set default files here instead.
2002-01-27 Bradford Hovinen <hovinen@ximian.com>
* mime-type-info.c (mime_type_info_load_all, mime_type_info_save):
Rename override_category as use_category; give it the opposite
meaning
(reduce_supported_app_list, find_possible_supported_apps): Update
according to the above
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>
* model-entry.c (model_entry_insert_child): Set the parent field
(model_entry_remove_child): Reset the parent field
(model_entry_remove_child): Set up the path before removing the
entry from the list
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-25 Bradford Hovinen <hovinen@ximian.com>
* mime-category-edit-dialog.c (fill_dialog): Desensitize component
select
(populate_application_list): Desensitize application select if
there are no applications
(fill_dialog): Flip logic on category defaults toggle sensitivity
* service-edit-dialog.c (populate_app_list): Desensitize program
select if there are no programs
(fill_dialog): Use service_info_get_description for description
entry
2002-01-25 Bradford Hovinen <hovinen@ximian.com>
* mime-edit-dialog.c (store_data): Construct an iterator if the
one given is NULL
(store_data): Don't notify row deletion if the object was not in
the model to begin with
(store_data): Don't fetch the old path if this is an add dialog
(populate_component_list): Desensitize the component select box if
there are no components
(populate_application_list): Ditto
* mime-type-info.c (mime_type_info_new): Initialize the parent
field even if the mime type field is NULL
(mime_type_info_get_category_name): Don't crash if the parent
field is NULL
* mime-edit-dialog.c (store_data): Generate random MIME type if
not already set
(validate_data): Implement. Make sure all the data entered are valid
(response_cb): Call validate_data
* file-types-capplet.c (remove_cb): Check the entry type and
notify the tree of the deletion; update according to earlier
changes
* mime-edit-dialog.c: Add property is-add
(setup_add_dialog): Implement
(add_ext_cb): Clear the entry after adding
(choose_cat_cb): Pack the tree in a scrolled window
(choose_cat_cb): Set the minimum size on the dialog to 300x300
2002-01-25 Bradford Hovinen <hovinen@ximian.com>
* mime-type-info.c (mime_type_info_free): Free icon_path
* mime-edit-dialog.c (fill_dialog): Set icon entry with the full
path of the icon
* mime-type-info.c (mime_type_info_get_icon_path):
Implement. Factor from get_pixbuf
* mime-edit-dialog.c (store_data): Reset the icon pixbufs so that
they get reloaded
* mime-type-info.c (get_icon_pixbuf): Use
gnome_vfs_icon_path_from_filename and install the nautilus/ hack
from the old capplet *sigh*
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