Commit graph

28 commits

Author SHA1 Message Date
Jonathan Blandford
86ebff6da2 Patch from snallagatla@novell.com to fix a crash.
Mon Nov 17 00:13:07 2003  Jonathan Blandford  <jrb@gnome.org>

        * service-edit-dialog.c (populate_app_list): Patch from
        snallagatla@novell.com to fix a crash.
2003-11-17 05:16:41 +00:00
Federico Mena Quintero
0906294387 Made the file entries modal as they live in modal dialogs. Fixes #89370.
2002-08-01  Federico Mena Quintero  <federico@ximian.com>

	* file-types-properties.glade: Made the file entries modal as they
	live in modal dialogs.  Fixes #89370.

	* service-edit-dialog.c (service_add_dialog_new): Return a
	GObject, not a GtkWidget.

	* file-types-capplet.c (add_service_cb): Do not assign a GtkWidget
	to a GObject.
2002-08-01 18:21:46 +00:00
Jody Goldberg
f71755edc4 set the icon here.
2002-07-10  Jody Goldberg <jody@gnome.org>

	* mime-edit-dialog.c (mime_edit_dialog_init) : set the icon here.
2002-07-10 23:36:40 +00:00
Jody Goldberg
7bb012af08 ui review 2002-07-10 21:45:45 +00:00
Jody Goldberg
fa54b079f5 http://bugzilla.gnome.org/show_bug.cgi?id=80327 Doh! If the current tree
2002-04-30  Jody Goldberg <jody@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=80327
	* service-edit-dialog.c (program_changed_cb) : Doh! If the current
	tree selection is not a service then the app can be null.
2002-05-03 22:17:38 +00:00
Jody Goldberg
8d5b6e6284 always populate the details fields so a user can see what they selected.
2002-04-26  Jody Goldberg <jody@gnome.org>

	* service-edit-dialog.c (populate_app_list) : always populate the
	  details fields so a user can see what they selected.
	(program_changed_cb) : ditto.

	* service-info.c (fill_service_apps) : fix to not use freed memory.
2002-04-26 15:13:57 +00:00
Jody Goldberg
fa05cd9201 Make instant apply and add link to Help.
2002-04-23  Jody Goldberg <jody@gnome.org>

	* model-entry.c (model_entry_save) : wrap in vfs freeze/unfreeze.
	(model_entry_append_to_dirty_list) : delete.
	(model_entry_remove_from_dirty_list) : delete.
	(model_entry_commit_dirty_list) : delete.
	(model_entry_append_to_delete_list) : delete.
	(model_entry_commit_delete_list) : delete.

	* mime-category-edit-dialog.c (store_data) : make this instant apply.
	* mime-edit-dialog.c (store_data) : ditto.
	* service-edit-dialog.c (store_data) : ditto.

	* file-types-capplet.c (cb_file_type_dialog_response) : add help and
	  change the buttons to help & close to be HIG compliant.
	(remove_cb) : make removal apply instantly.
	* file-types-properties.glade : Make the buttons Help & Close
2002-04-23 15:56:53 +00:00
Jody Goldberg
7bf0bcfc8d tidy up. (choose_cat_cb) : reorder buttons to be hig compliant.
2002-04-22  Jody Goldberg <jody@gnome.org>

	* mime-edit-dialog.c (validate_data) : tidy up.
	(choose_cat_cb) : reorder buttons to be hig compliant.
	(mime_edit_dialog_init) : ditto.
	* service-edit-dialog.c (service_edit_dialog_init) : ditto.
	* mime-category-edit-dialog.c (mime_category_edit_dialog_init) : ditto.
2002-04-22 21:34:39 +00:00
Jody Goldberg
61829b4eea set dialog title correctly when adding a service. ditto.
2002-04-22  Jody Goldberg <jody@gnome.org>

	* service-edit-dialog.c (service_edit_dialog_set_prop) : set dialog
	  title correctly when adding a service.
	* mime-edit-dialog.c (mime_edit_dialog_set_prop) : ditto.
2002-04-22 18:07:39 +00:00
Jody Goldberg
2eb29c281c Use the new hook in gnome_vfs_application_registry_get_applications to
2002-04-21  Jody Goldberg <jody@gnome.org>

	* service-info.c (fill_service_apps) : Use the new hook in
	  gnome_vfs_application_registry_get_applications to actually retrieve
	  all the applications rather than just pretending.

2002-04-21  Jody Goldberg <jody@gnome.org>

	* service-edit-dialog.c (service_edit_dialog_init) : fully disable the
	  already disable 'check content' field.  What the heck is this supposed
	  to do ?
	(fill_dialog) : ditto.
	(setup_add_dialog) : ditto.
	(store_data) : ditto.
	* file-types-properties.glade : ditto.  Having user visible widgets
	  that don't do anything is not a good idea.
2002-04-22 03:20:50 +00:00
jacob berkman
21be41f15f show 'unknown' in the protocol name for the unknown protocol
2002-04-02  jacob berkman  <jacob@ximian.com>

	* service-edit-dialog.c (fill_dialog): show 'unknown' in the
	protocol name for the unknown protocol
	(validate_data): actually run and destroy the error dialogs
2002-04-02 22:32:23 +00:00
Lauris Kaplinski
35e192827a Lot of little fixes to make it to compile without most of the deprecated stuff 2002-02-04 17:48:43 +00:00
Bradford Hovinen
66fa37fc6e Set custom program entry and needs terminal here
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 19:08:14 +00:00
Bradford Hovinen
fadeef3e41 Always set run_program to TRUE
2002-01-27  Bradford Hovinen  <hovinen@ximian.com>

	* service-info.c (service_info_load_all): Always set run_program
	to TRUE

	* service-edit-dialog.c (fill_dialog): Disable look at content toggle
2002-01-28 02:29:44 +00:00
Bradford Hovinen
5b53898068 Set use_category_defaults_toggle (store_data): Set override_category
2002-01-27  Bradford Hovinen  <hovinen@ximian.com>

	* mime-edit-dialog.c (fill_dialog): Set
	use_category_defaults_toggle
	(store_data): Set override_category
	(mime_edit_dialog_init): Connect to
	use_category_defaults_toggled_cb
	(use_category_defaults_toggle_cb): Implement
	(default_action_changed_cb, populate_application_list)
	(populate_component_list): Call update_sensitivity; set
	sensitivity-controlling flags
	(update_sensitivity): Implement
2002-01-27 17:41:06 +00:00
Bradford Hovinen
e32444ef56 Call get_service_info to handle case where the service was created and not
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 16:58:43 +00:00
Bradford Hovinen
6a3797bfc5 Accept model (get_services_category_entry): Accept model
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-27 16:18:36 +00:00
Bradford Hovinen
54d540dd47 Free the structure if the user clicks cancel and this is an add dialog
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-26 18:30:32 +00:00
Bradford Hovinen
d8c7752324 Implement (find_possible_supported_apps): Implement
2002-01-26  Bradford Hovinen  <hovinen@ximian.com>

	* mime-type-info.c (intersect_lists, reduce_supported_app_list)
	(mime_category_info_find_apps): Implement
	(find_possible_supported_apps): Implement

	* mime-category-edit-dialog.c (mime_category_edit_dialog_init):
	Use mime_category_edit_widget for the dialog source

	* model-entry.c (model_entry_remove_from_dirty_list): Accept a
	ModelEntry structure

	* mime-category-edit-dialog.c (store_data): Call
	model_entry_append_to_dirty_list

	* service-edit-dialog.c (store_data): Call
	model_entry_append_to_dirty_list
2002-01-26 16:24:45 +00:00
Bradford Hovinen
fbdb86b151 Desensitize component select (populate_application_list): Desensitize
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 20:55:44 +00:00
Bradford Hovinen
1a3c89e420 Code cleanup; create our own model rather than using GtkTreeStore Update
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-25 16:12:01 +00:00
Bradford Hovinen
9cd12bb3c2 Implement
2002-01-11  Bradford Hovinen  <hovinen@ximian.com>

	* service-info.c (get_apps_for_service_type): Implement

	* service-edit-dialog.c (program_changed_cb): Implement
	(service_edit_dialog_init): Connect program_select changed signal
	(populate_app_list): Fill app menu with results from
	get_apps_for_service_type

	* service-info.c (fill_service_apps): Implement
2002-01-11 17:47:31 +00:00
Bradford Hovinen
caa4385d60 Retrieve app info from option menu
2002-01-11  Bradford Hovinen  <hovinen@ximian.com>

	* service-edit-dialog.c (store_data): Retrieve app info from
	option menu
2002-01-11 16:10:03 +00:00
Bradford Hovinen
cd0aec7eaa Commit the changeset (main): Construct a changeset (edit_cb): Pass the
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 16:01:15 +00:00
Bradford Hovinen
a53fac33f2 Don't set the value if it is NULL
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 15:48:52 +00:00
Bradford Hovinen
ee6a2823a4 Terminate column list with -1
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 15:32:10 +00:00
Bradford Hovinen
b097229244 Implement (program_sensitive_cb): Implement (response_cb): Call store_data
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
2002-01-11 14:17:40 +00:00
Bradford Hovinen (Gdict maintainer)
98e37477fa Near total rewrite 2002-01-08 21:25:33 +00:00