Function

Giocontent_type_can_be_executable

Declaration [src]

gboolean
g_content_type_can_be_executable (
  const gchar* type
)

Description [src]

Checks if a content type can be executable. Note that for instance things like text files can be executables (i.e. scripts and batch files).

Parameters

type const gchar*
 

A content type string.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.

Return value

Returns: gboolean
 

TRUE if the file type corresponds to a type that can be executable, FALSE otherwise.