<p>In <a href="https://github.com/geany/geany/pull/1144#discussion_r71978431">src/notebook.c</a>:</p>
<pre style='color:#555'>> @@ -531,6 +550,8 @@ void notebook_init(void)
> /* in case the switch dialog misses an event while drawing the dialog */
> g_signal_connect(main_widgets.window, "key-release-event", G_CALLBACK(on_key_release_event), NULL);
>
> + g_signal_connect(geany_object, "document-open", G_CALLBACK(on_document_open), NULL);
</pre>
<p>you probably also need to catch <code>document-save</code> in case the document has been saved as.</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/1144/files/4f219bdad24610e674da26cf2dc97d7d8a10b8c8#r71978431">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ0jIzlpMWuui5wXqw_RlMXNbohETks5qYoWcgaJpZM4JQxCD">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ004l_TbYmQoWLuHDd3IqM_gJGJFks5qYoWcgaJpZM4JQxCD.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/geany/geany/pull/1144/files/4f219bdad24610e674da26cf2dc97d7d8a10b8c8#r71978431"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>