Top | ![]() |
![]() |
![]() |
![]() |
Plugins implementing IAnjutaFile inteface that can also save files should also implement this interface.
gboolean ianjuta_file_savable_is_conflict (IAnjutaFileSavable *obj
,GError **err
);
Return is the file is in conflict. It means the file has been modified externally and the user needs to tell which version he wants to use.
gboolean ianjuta_file_savable_is_dirty (IAnjutaFileSavable *obj
,GError **err
);
Returns the dirty status of the content.
gboolean ianjuta_file_savable_is_read_only (IAnjutaFileSavable *obj
,GError **err
);
Return is the file is read-only
void ianjuta_file_savable_save (IAnjutaFileSavable *obj
,GError **err
);
Saves the content to the original file from which it was loaded. The signal saved is always emitted even if the save fails.
void ianjuta_file_savable_save_as (IAnjutaFileSavable *obj
,GFile *file
,GError **err
);
Saves the content to a different File. The signal saved is always emitted even if the save fails.
void ianjuta_file_savable_set_dirty (IAnjutaFileSavable *obj
,gboolean dirty
,GError **err
);
if dirty
is TRUE, sets dirty for the content. Save point will be
left and the content will be considered not saved. Otherwise,
content will considered saved and save-point will be entered.
“saved”
signalvoid user_function (IAnjutaFileSavable *obj, GFile *file, gpointer user_data)
This signal is emitted when the content is saved.
obj |
Self |
|
file |
file where the content is saved or NULL if save failed |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“update-save-ui”
signalvoid user_function (IAnjutaFileSavable *ianjutafilesavable, gpointer user_data)
Flags: Run Last