Top |
Functions
GQuark | ianjuta_file_savable_error_quark () |
gboolean | ianjuta_file_savable_is_conflict () |
gboolean | ianjuta_file_savable_is_dirty () |
gboolean | ianjuta_file_savable_is_read_only () |
void | ianjuta_file_savable_save () |
void | ianjuta_file_savable_save_as () |
void | ianjuta_file_savable_set_dirty () |
Description
Plugins implementing IAnjutaFile inteface that can also save files should also implement this interface.
Functions
ianjuta_file_savable_is_conflict ()
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.
ianjuta_file_savable_is_dirty ()
gboolean ianjuta_file_savable_is_dirty (IAnjutaFileSavable *obj
,GError **err
);
Returns the dirty status of the content.
ianjuta_file_savable_is_read_only ()
gboolean ianjuta_file_savable_is_read_only (IAnjutaFileSavable *obj
,GError **err
);
Return is the file is read-only
ianjuta_file_savable_save ()
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.
ianjuta_file_savable_save_as ()
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.
ianjuta_file_savable_set_dirty ()
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.
Signal Details
The “saved”
signal
void user_function (IAnjutaFileSavable *obj, GFile *file, gpointer user_data)
Flags: Run Last
The “update-save-ui”
signal
void user_function (IAnjutaFileSavable *ianjutafilesavable, gpointer user_data)
Flags: Run Last