put things in Misc if they have no defined category. (get_category_name) :
2002-05-29 Jody Goldberg <jody@gnome.org> * mime-type-info.c (get_category_description) : put things in Misc if they have no defined category. (get_category_name) : ditto.
This commit is contained in:
parent
c5511a1f29
commit
66d7504bf6
2 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2002-05-29 Jody Goldberg <jody@gnome.org>
|
||||||
|
|
||||||
|
* mime-type-info.c (get_category_description) : put things in Misc if
|
||||||
|
they have no defined category.
|
||||||
|
(get_category_name) : ditto.
|
||||||
|
|
||||||
2002-05-24 Satyajit Kanungo <satyajit.kanungo@wipro.com>
|
2002-05-24 Satyajit Kanungo <satyajit.kanungo@wipro.com>
|
||||||
|
|
||||||
* file-types-capplet.c : Changed the help file link
|
* file-types-capplet.c : Changed the help file link
|
||||||
|
|
|
@ -703,8 +703,10 @@ get_category_name (const gchar *mime_type)
|
||||||
return "Video";
|
return "Video";
|
||||||
else if (!strncmp (mime_type, "audio/", strlen ("audio/")))
|
else if (!strncmp (mime_type, "audio/", strlen ("audio/")))
|
||||||
return "Audio";
|
return "Audio";
|
||||||
else
|
else {
|
||||||
return NULL;
|
g_warning (mime_type);
|
||||||
|
return "Misc";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static const gchar *
|
static const gchar *
|
||||||
|
@ -723,7 +725,7 @@ get_category_description (const gchar *mime_type)
|
||||||
else if (!strncmp (mime_type, "audio/", strlen ("audio/")))
|
else if (!strncmp (mime_type, "audio/", strlen ("audio/")))
|
||||||
return _("Audio");
|
return _("Audio");
|
||||||
else
|
else
|
||||||
return NULL;
|
return _("Misc");
|
||||||
}
|
}
|
||||||
|
|
||||||
static GSList *
|
static GSList *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue