Top | ![]() |
![]() |
![]() |
![]() |
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 () |
const gchar * | ide_file_get_language_id () |
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 () |
IdeFileSettings * | ide_file_peek_settings () |
void | ide_file_find_other_async () |
IdeFile * | ide_file_find_other_finish () |
gint | ide_file_compare () |
GFile * | file | Read / Write / Construct Only |
gboolean | is-temporary | Read |
GtkSourceLanguage * | language | Read |
gchar * | path | Read / Write / Construct Only |
guint | temporary-id | Read / Write / Construct Only |
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.
GtkSourceLanguage *
ide_file_get_language (IdeFile *self
);
Retrieves the GtkSourceLanguage that was discovered for the file.
GFile *
ide_file_get_file (IdeFile *self
);
Retrieves the underlying GFile represented by self
.
void ide_file_load_settings_async (IdeFile *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
IdeFileSettings * ide_file_load_settings_finish (IdeFile *self
,GAsyncResult *result
,GError **error
);
IdeFileSettings *
ide_file_peek_settings (IdeFile *self
);
Returns the IdeFileSettings if they've been loaded.
Since: 3.28
void ide_file_find_other_async (IdeFile *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
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.
“file”
property “file” GFile *
The path to the underlying file.
Flags: Read / Write / Construct Only
“is-temporary”
property “is-temporary” gboolean
If the file represents a temporary file.
Flags: Read
Default value: FALSE
“path”
property “path” gchar *
The path within the project.
Flags: Read / Write / Construct Only
Default value: NULL