<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=793526" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/b4n">@b4n</a>: please fell free to reject this PR is it's to ugly for you  <g-emoji class="g-emoji" alias="grinning" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f600.png">😀</g-emoji></p>
<p>All the functions in the <code>if</code>-condition the code part below seem to not have any replacement functions which colud be of help.</p>
<div class="highlight highlight-source-c"><pre>      <span class="pl-k">if</span> (GTK_IS_IMAGE_MENU_ITEM (node->data) &&
          <span class="pl-en">gtk_image_menu_item_get_use_stock</span> (node->data) &&
          gtk_stock_lookup (gtk_menu_item_get_label (node->data), &item)) {
        item_label = <span class="pl-c1">g_strdup</span> (item.<span class="pl-smi">label</span>);
        use_underline = <span class="pl-c1">TRUE</span>;
      } <span class="pl-k">else</span> {
        item_label = <span class="pl-c1">g_strdup</span> (<span class="pl-c1">gtk_menu_item_get_label</span> (node-><span class="pl-smi">data</span>));
        use_underline = <span class="pl-c1">gtk_menu_item_get_use_underline</span> (node-><span class="pl-smi">data</span>);
      }</pre></div>
<p>So I have written a function which returns the required info. Why am I getting that stock-id's at all under GTK3? Is the geany core still using them on GTK3?</p>
<p>Also a little question regarding the plugin API: as the utils lib is not a registered plugin - how can I get a callback on closing of geany to free the memory allocated for the utils lib?</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/pull/865?email_source=notifications&email_token=AAIOWJZGM3E6HLNMTH72SHLPV7ZD3A5CNFSM4HN2FXNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVWNZFA#issuecomment-493673620">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ7YBG7B2OI7AFOANLDPV7ZD3ANCNFSM4HN2FXNA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ24LNSDXZMHTJBB773PV7ZD3A5CNFSM4HN2FXNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVWNZFA.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/pull/865?email_source=notifications\u0026email_token=AAIOWJZGM3E6HLNMTH72SHLPV7ZD3A5CNFSM4HN2FXNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVWNZFA#issuecomment-493673620",
"url": "https://github.com/geany/geany-plugins/pull/865?email_source=notifications\u0026email_token=AAIOWJZGM3E6HLNMTH72SHLPV7ZD3A5CNFSM4HN2FXNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVWNZFA#issuecomment-493673620",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>