[Github-comments] [geany/geany] Make document_rename_file() return a gboolean; Abort save if rename fails (#1180)

konsolebox notifications at xxxxx
Fri Aug 19 08:14:25 UTC 2016


Come to think of it, there's no point touching `document_rename_file()` because it's not useful being used alone, and it shouldn't be used alone since you would need to have everyone that listens to "document-save" to be updated.  It probably even needs to be dropped from the API.

We better just create another function named `document_rename_file_and_save()` (i.e. `gboolean document_rename_file_and_save(GeanyDocument *doc, const gchar *new_filename);`) for anyone that would want to use it.  An example for this usage is an in-place renaming of a document in Documents tab.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1180#issuecomment-240956541
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160819/1bd29833/attachment.html>


More information about the Github-comments mailing list