[Github-comments] [geany/geany] Notebook menu: Add submenu to close all documents in/not in current folder (#2346)
Nick Treleaven
notifications at xxxxx
Wed Oct 9 13:07:32 UTC 2019
ntrel commented on this pull request.
> @@ -455,60 +456,104 @@ static void on_close_documents_right_activate(GtkMenuItem *menuitem, GeanyDocume
}
+// simple implementation (vs. close all which doesn't close documents if cancelled)
+static void close_folder_action(GeanyDocument *cur_doc, gboolean other_folders)
+{
+ if (cur_doc == NULL)
+ cur_doc = document_get_current();
+ if (!cur_doc->real_path)
+ return;
+
+ gchar *dir = g_dirname(cur_doc->real_path);
Thanks, fixed.
--
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/2346#discussion_r333002228
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20191009/e065a96a/attachment.html>
More information about the Github-comments
mailing list