This commit is contained in:
Matthias Clasen 2010-07-05 00:56:12 -04:00
parent f90eb144d4
commit c53c701e53
3 changed files with 369 additions and 346 deletions

File diff suppressed because it is too large Load Diff

View File

@ -31,24 +31,24 @@
G_BEGIN_DECLS
gboolean g_content_type_equals (const char *type1,
const char *type2);
gboolean g_content_type_is_a (const char *type,
const char *supertype);
gboolean g_content_type_is_unknown (const char *type);
char * g_content_type_get_description (const char *type);
char * g_content_type_get_mime_type (const char *type);
GIcon * g_content_type_get_icon (const char *type);
gboolean g_content_type_can_be_executable (const char *type);
gboolean g_content_type_equals (const gchar *type1,
const gchar *type2);
gboolean g_content_type_is_a (const gchar *type,
const gchar *supertype);
gboolean g_content_type_is_unknown (const gchar *type);
gchar * g_content_type_get_description (const gchar *type);
gchar * g_content_type_get_mime_type (const gchar *type);
GIcon * g_content_type_get_icon (const gchar *type);
gboolean g_content_type_can_be_executable (const gchar *type);
char * g_content_type_from_mime_type (const char *mime_type);
gchar * g_content_type_from_mime_type (const gchar *mime_type);
char * g_content_type_guess (const char *filename,
const guchar *data,
gsize data_size,
gboolean *result_uncertain);
gchar * g_content_type_guess (const gchar *filename,
const guchar *data,
gsize data_size,
gboolean *result_uncertain);
char ** g_content_type_guess_for_tree (GFile *root);
gchar ** g_content_type_guess_for_tree (GFile *root);
GList * g_content_types_get_registered (void);

View File

@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=appinfo-test
Name[de]=appinfo-test-de
X-GNOME-FullName=example
X-GNOME-FullName[de]=Beispiel
Comment=GAppInfo example
Comment[de]=GAppInfo Beispiel
Exec=./appinfo-test --option
TryExec=does-not-exist
Icon=testicon