http://bugzilla.gnome.org/show_bug.cgi?id=17728 (mime_type_info_save): a
2002-05-08 Jody Goldberg <jody@gnome.org> http://bugzilla.gnome.org/show_bug.cgi?id=17728 (mime_type_info_save): a patch inspired by Archit Baweja's proposal. 2002-05-09 Archit Baweja <bighead@users.sourceforge.net> * mime-type-info.c (mime_type_info_set_file_extensions): free the old list.
This commit is contained in:
parent
104110c45d
commit
55e3056021
2 changed files with 15 additions and 4 deletions
|
@ -1,3 +1,13 @@
|
|||
2002-05-08 Jody Goldberg <jody@gnome.org>
|
||||
|
||||
http://bugzilla.gnome.org/show_bug.cgi?id=17728
|
||||
(mime_type_info_save): a patch inspired by Archit Baweja's proposal.
|
||||
|
||||
2002-05-09 Archit Baweja <bighead@users.sourceforge.net>
|
||||
|
||||
* mime-type-info.c (mime_type_info_set_file_extensions): free the old
|
||||
list.
|
||||
|
||||
2002-05-10 jacob berkman <jacob@ximian.com>
|
||||
|
||||
* mime-type-info.c (mime_category_info_get_full_description):
|
||||
|
|
|
@ -229,7 +229,7 @@ mime_type_info_set_category_name (const MimeTypeInfo *info, const gchar *categor
|
|||
void
|
||||
mime_type_info_set_file_extensions (MimeTypeInfo *info, GList *list)
|
||||
{
|
||||
/* FIXME: Free the old list */
|
||||
gnome_vfs_mime_extensions_list_free (info->file_extensions);
|
||||
info->file_extensions = list;
|
||||
}
|
||||
|
||||
|
@ -254,9 +254,6 @@ mime_type_info_save (const MimeTypeInfo *info)
|
|||
uuid_unparse (app_uuid, app_uuid_str);
|
||||
|
||||
info->default_action->id = g_strdup (app_uuid_str);
|
||||
|
||||
gnome_vfs_application_registry_save_mime_application (info->default_action);
|
||||
gnome_vfs_application_registry_sync ();
|
||||
}
|
||||
else if (!strcmp (tmp, info->default_action->name)) {
|
||||
gnome_vfs_application_registry_set_value (info->default_action->id, "command",
|
||||
|
@ -266,6 +263,8 @@ mime_type_info_save (const MimeTypeInfo *info)
|
|||
}
|
||||
|
||||
gnome_vfs_mime_set_default_application (info->mime_type, info->default_action->id);
|
||||
|
||||
gnome_vfs_application_registry_save_mime_application (info->default_action);
|
||||
} else {
|
||||
gnome_vfs_mime_set_default_application (info->mime_type, NULL);
|
||||
}
|
||||
|
@ -284,6 +283,8 @@ mime_type_info_save (const MimeTypeInfo *info)
|
|||
g_free (tmp);
|
||||
|
||||
gnome_vfs_mime_set_value (info->mime_type, "use_category_default", info->use_category ? "yes" : "no");
|
||||
|
||||
gnome_vfs_application_registry_sync ();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue