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
This commit is contained in:
Bradford Hovinen 2002-01-26 18:30:32 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent d8c7752324
commit 54d540dd47
10 changed files with 132 additions and 51 deletions

View file

@ -55,9 +55,11 @@ ServiceInfo *service_info_new (const gchar *protocol);
void service_info_load_all (ServiceInfo *info);
const gchar *service_info_get_description (ServiceInfo *info);
void service_info_save (const ServiceInfo *info);
void service_info_delete (const ServiceInfo *info);
void service_info_free (ServiceInfo *info);
const GList *get_apps_for_service_type (gchar *protocol);
ModelEntry *get_services_category_entry (void);
G_END_DECLS