Top |
Functions
IdeFile * | ide_file_new () |
IdeFile * | ide_file_new_for_path () |
gboolean | ide_file_get_is_temporary () |
guint | ide_file_get_temporary_id () |
GtkSourceLanguage * | ide_file_get_language () |
GFile * | ide_file_get_file () |
guint | ide_file_hash () |
gboolean | ide_file_equal () |
const gchar * | ide_file_get_path () |
void | ide_file_load_settings_async () |
IdeFileSettings * | ide_file_load_settings_finish () |
void | ide_file_find_other_async () |
IdeFile * | ide_file_find_other_finish () |
Functions
ide_file_get_temporary_id ()
guint
ide_file_get_temporary_id (IdeFile *self
);
Gets the “temporary-id” property for the file.
Temporary files have unique identifiers associated with them so that we can display names such as "unsaved file 1" and know that it will not collide with another temporary file.
Files that are not temporary, will return zero.
ide_file_get_language ()
GtkSourceLanguage *
ide_file_get_language (IdeFile *self
);
Retrieves the GtkSourceLanguage that was discovered for the file.
ide_file_get_file ()
GFile *
ide_file_get_file (IdeFile *self
);
Retrieves the underlying GFile represented by self
.
ide_file_load_settings_async ()
void ide_file_load_settings_async (IdeFile *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
ide_file_load_settings_finish ()
IdeFileSettings * ide_file_load_settings_finish (IdeFile *self
,GAsyncResult *result
,GError **error
);
ide_file_find_other_async ()
void ide_file_find_other_async (IdeFile *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
ide_file_find_other_finish ()
IdeFile * ide_file_find_other_finish (IdeFile *self
,GAsyncResult *result
,GError **error
);
Completes an asynchronous call to ide_file_find_other_async()
. This function
will try to find a matching file for languages where this exists. Such cases
include C and C++ where a .c or .cpp file may have a .h or .hh header. Additional
suffixes are implemented including (.c, .cc, .cpp, .cxx, .h, .hh, .hpp, and .hxx).
Returns an IdeFile if successful, otherwise NULL
and error
is set.