<p><b>@codebrainz</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/geany/pull/2346#discussion_r332787580">src/notebook.c</a>:</p>
<pre style='color:#555'>> @@ -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);
</pre>
<p>Should probably use <code>g_path_get_dirname()</code> since <code>g_dirname()</code> is deprecated.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2346?email_source=notifications&email_token=AAIOWJ7QPX2GVE37T3ESNSDQNUQOHA5CNFSM4I6TQ5Q2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCHKC4GA#pullrequestreview-299118104">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3YMVUIV65J446NHHLQNUQOHANCNFSM4I6TQ5QQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ2TIWY2VKZHTRQK4X3QNUQOHA5CNFSM4I6TQ5Q2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCHKC4GA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2346?email_source=notifications\u0026email_token=AAIOWJ7QPX2GVE37T3ESNSDQNUQOHA5CNFSM4I6TQ5Q2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCHKC4GA#pullrequestreview-299118104",
"url": "https://github.com/geany/geany/pull/2346?email_source=notifications\u0026email_token=AAIOWJ7QPX2GVE37T3ESNSDQNUQOHA5CNFSM4I6TQ5Q2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCHKC4GA#pullrequestreview-299118104",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>