[Github-comments] [geany/geany] Notebook menu: Add submenu to close all documents in/not in current folder (#2346)

Matthew Brush notifications at xxxxx
Wed Oct 9 00:27:15 UTC 2019


codebrainz 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);

Should probably use `g_path_get_dirname()` since `g_dirname()` is deprecated.

-- 
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#pullrequestreview-299118104
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20191008/e3ae464c/attachment.html>


More information about the Github-comments mailing list