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 G_BEGIN_DECLS
gboolean g_content_type_equals (const char *type1, gboolean g_content_type_equals (const gchar *type1,
const char *type2); const gchar *type2);
gboolean g_content_type_is_a (const char *type, gboolean g_content_type_is_a (const gchar *type,
const char *supertype); const gchar *supertype);
gboolean g_content_type_is_unknown (const char *type); gboolean g_content_type_is_unknown (const gchar *type);
char * g_content_type_get_description (const char *type); gchar * g_content_type_get_description (const gchar *type);
char * g_content_type_get_mime_type (const char *type); gchar * g_content_type_get_mime_type (const gchar *type);
GIcon * g_content_type_get_icon (const char *type); GIcon * g_content_type_get_icon (const gchar *type);
gboolean g_content_type_can_be_executable (const char *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, gchar * g_content_type_guess (const gchar *filename,
const guchar *data, const guchar *data,
gsize data_size, gsize data_size,
gboolean *result_uncertain); 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); 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