<p></p>
<p>Tried your fix, no luck.   :-(</p>
<p>Verified, by adding <code>printf()</code>,  that the <code>finalize()</code> function is only called once.</p>
<p>It is very sensitive to exact local conditions, and after resizing the window a few times to make the overflow menu come and go, I can now longer make the bug happen at all, so not surprised you couldn't reproduce it.</p>
<p>Sometimes, on start-up, I get a whole bunch of GTK errors, like this:</p>
<pre lang="(geany:30311):" data-meta="Gtk-WARNING **: 13:16:14.355: Negative content width -17 (allocation 1, extents 9x9) while allocating gadget (node entry, owner GtkEntry)"><code>(geany:30311): Gtk-WARNING **: 13:16:14.355: Negative content height -1 (allocation 1, extents 1x1) while allocating gadget (node entry, owner GtkEntry)
(geany:30311): Gtk-WARNING **: 13:16:14.355: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node scrolledwindow, owner GtkScrolledWindow)
(geany:30311): Gtk-WARNING **: 13:16:14.355: Negative content height -1 (allocation 1, extents 1x1) while allocating gadget (node scrolledwindow, owner GtkScrolledWindow)
(geany:30311): Gtk-CRITICAL **: 13:16:14.355: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
(geany:30311): Gtk-CRITICAL **: 13:16:14.355: gtk_widget_get_preferred_width_for_height: assertion 'height >= 0' failed
(geany:30311): Gtk-WARNING **: 13:16:14.355: gtk_widget_size_allocate(): attempt to allocate widget with width 13 and height -25
(geany:30311): Gtk-CRITICAL **: 13:16:14.355: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
</code></pre>
<p>which may or may not be from <code>doclist</code>, or from another part of <code>addons</code>.</p>
<p>I'll see what I can find out if it starts to happen again, other wise not a lot we can do, except hope that it's not some random corruption happening elsewhere and waiting to trip us up...</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-plugins/issues/983#issuecomment-632962069">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ7WBRQPP6UL6QHEJBTRS4QLHANCNFSM4NHLNMJA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJYYPRDFKMM6RRFBZELRS4QLHA5CNFSM4NHLNMJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEW5DYFI.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-plugins/issues/983#issuecomment-632962069",
"url": "https://github.com/geany/geany-plugins/issues/983#issuecomment-632962069",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>