Fixed bug 3042, Adding new mime type doesn't work.
2000-10-16 Gene Z. Ragan <gzr@eazel.com> Fixed bug 3042, Adding new mime type doesn't work. * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c: (nautilus_mime_type_capplet_show_new_mime_window): * mime-type-capplet/nautilus-mime-type-capplet.c: (add_mime_clicked): Write proper description key. * libgnomevfs/gnome-vfs-mime-handlers.c: (gnome_vfs_mime_add_extension): Work in progress on adding user defined extensions
This commit is contained in:
parent
6ff265240c
commit
31a39d9838
2 changed files with 3 additions and 3 deletions
|
@ -571,7 +571,6 @@ nautilus_mime_type_capplet_show_new_mime_window (void)
|
|||
GtkWidget *desc_entry;
|
||||
GtkWidget *hbox;
|
||||
GtkWidget *vbox;
|
||||
GnomeVFSResult result;
|
||||
const char *type, *description;
|
||||
char *mime_type;
|
||||
|
||||
|
@ -616,7 +615,8 @@ nautilus_mime_type_capplet_show_new_mime_window (void)
|
|||
|
||||
/* Add new mime type here */
|
||||
if (strlen (type) > 3) {
|
||||
result = gnome_vfs_mime_set_registered_type_key (type, "description", description);
|
||||
gnome_vfs_mime_set_registered_type_key (type, "description", description);
|
||||
gnome_vfs_mime_set_value (type, "description", description);
|
||||
mime_type = g_strdup (type);
|
||||
}
|
||||
/* Fall through to close dialog */
|
||||
|
|
|
@ -901,7 +901,7 @@ add_mime_clicked (GtkWidget *widget, gpointer data)
|
|||
if (description != NULL && strlen (description) > 0) {
|
||||
text[0] = g_strdup (description);
|
||||
} else {
|
||||
text[0] = "";
|
||||
text[0] = g_strdup ("");
|
||||
}
|
||||
|
||||
/* Add mime type to second column */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue