be anal.
2002-06-26 Jody Goldberg <jody@gnome.org> * mime-type-info.c (mime_category_info_save) : be anal.
This commit is contained in:
parent
f8d3fe9e7c
commit
6e5233869c
2 changed files with 3 additions and 3 deletions
|
@ -4,6 +4,7 @@
|
|||
gnome_vfs_mime_get_default_application. It silently removes
|
||||
applications that do not exist on the current system. That makes it
|
||||
look like they are not being assigned.
|
||||
(mime_category_info_save) : be anal.
|
||||
|
||||
* mime-edit-dialog.c (validate_data) : relax the restriction here. By
|
||||
supplying a reasonable default to the new info it was appearing in
|
||||
|
|
|
@ -411,11 +411,10 @@ mime_category_info_save (MimeCategoryInfo *category)
|
|||
|
||||
basename = get_gconf_base_name (category);
|
||||
key = g_strconcat (basename, "/default-action-id", NULL);
|
||||
if (category->default_action != NULL) {
|
||||
if ((set_ids = (category->default_action != NULL)))
|
||||
gconf_client_set_string (gconf_client_get_default (),
|
||||
key, category->default_action->id, NULL);
|
||||
set_ids = TRUE;
|
||||
} else
|
||||
else
|
||||
gconf_client_unset (gconf_client_get_default (), key, NULL);
|
||||
g_free (key);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue