<p>Accessing <code>menubar->children</code> doesn't work in Gtk3. I thought using _append instead of _insert would be equivalent, but apperently it's an off-by-one. I guess <code>gtk_menu_shell_insert(menubar, menu_vc, g_list_length(gtk_container_get_children() - 1))</code> is more appropriate?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany-plugins/commit/c6a7968d5ab71961db4b0a5e721d378048e60119#commitcomment-16518890">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ-eORH6_ei5hIcjoL1qWk3ShqU7Oks5pqbhngaJpZM4HqCdq.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-plugins/commit/c6a7968d5ab71961db4b0a5e721d378048e60119#commitcomment-16518890"></link>
  <meta itemprop="name" content="View Commit"></meta>
</div>
<meta itemprop="description" content="View this Commit on GitHub"></meta>
</div>