file-utils

file-utils

Synopsis

gboolean            file_utils_filename_is_uri          (const gchar *filename,
                                                         GError **error);
gchar *             file_utils_filename_to_uri          (Gimp *gimp,
                                                         const gchar *filename,
                                                         GError **error);
gchar *             file_utils_any_to_uri               (Gimp *gimp,
                                                         const gchar *filename_or_uri,
                                                         GError **error);
gchar *             file_utils_filename_from_uri        (const gchar *uri);
gchar *             file_utils_uri_with_new_ext         (const gchar *uri,
                                                         const gchar *uri_with_ext);
gchar *             file_utils_uri_to_utf8_filename     (const gchar *uri);
gchar *             file_utils_uri_display_basename     (const gchar *uri);
gchar *             file_utils_uri_display_name         (const gchar *uri);
GdkPixbuf *         file_utils_load_thumbnail           (const gchar *filename);
gboolean            file_utils_save_thumbnail           (GimpImage *image,
                                                         const gchar *filename);

Description

Details

file_utils_filename_is_uri ()

gboolean            file_utils_filename_is_uri          (const gchar *filename,
                                                         GError **error);


file_utils_filename_to_uri ()

gchar *             file_utils_filename_to_uri          (Gimp *gimp,
                                                         const gchar *filename,
                                                         GError **error);


file_utils_any_to_uri ()

gchar *             file_utils_any_to_uri               (Gimp *gimp,
                                                         const gchar *filename_or_uri,
                                                         GError **error);


file_utils_filename_from_uri ()

gchar *             file_utils_filename_from_uri        (const gchar *uri);

A utility function to be used as a replacement for g_filename_from_uri(). It deals with file: URIs with hostname in a platform-specific way. On Win32, a UNC path is created and returned, on other platforms the URI is detected as non-local and NULL is returned.

uri :

a URI

Returns :

newly allocated filename or NULL if uri is a remote file

file_utils_uri_with_new_ext ()

gchar *             file_utils_uri_with_new_ext         (const gchar *uri,
                                                         const gchar *uri_with_ext);


file_utils_uri_to_utf8_filename ()

gchar *             file_utils_uri_to_utf8_filename     (const gchar *uri);


file_utils_uri_display_basename ()

gchar *             file_utils_uri_display_basename     (const gchar *uri);


file_utils_uri_display_name ()

gchar *             file_utils_uri_display_name         (const gchar *uri);


file_utils_load_thumbnail ()

GdkPixbuf *         file_utils_load_thumbnail           (const gchar *filename);


file_utils_save_thumbnail ()

gboolean            file_utils_save_thumbnail           (GimpImage *image,
                                                         const gchar *filename);