<blockquote>
<p>Unfortunately the solution here (moving the call to <code>gtk_check_menu_item_set_active()</code> to the popup creation) is wrong because the setting in the menu no longer follows the value set by the plugins preferences dialog.<br>
In my first commit this not exist.</p>
</blockquote>
<blockquote>
<p>The variable <code>popup_menu</code> needs to be moved from being a static in the <code>on_button_press()</code> function to a file wide static that is created in the plugin init, (as <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=181177" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/codebrainz">@codebrainz</a> said) properly freed in plugin free and then it can be updated by the plugin preferences when thats changed and by the menu function when its changed in the menu and not on each time the menu is displayed.</p>
</blockquote>
<p>I don't understand, did you mean to declare the popup_menu in the plugin init and then passing as function argument? Or global (static) to file as my first commit?</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/2161?email_source=notifications&email_token=AAIOWJYTJZWOU7KKF2GKXZ3PXAR4FA5CNFSM4HOYRDFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGCUWA#issuecomment-495725144">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ7MVQMRZLVIZGIDRP3PXAR4FANCNFSM4HOYRDFA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJYDWM3U6CYEJ4657NTPXAR4FA5CNFSM4HOYRDFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGCUWA.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/2161?email_source=notifications\u0026email_token=AAIOWJYTJZWOU7KKF2GKXZ3PXAR4FA5CNFSM4HOYRDFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGCUWA#issuecomment-495725144",
"url": "https://github.com/geany/geany/pull/2161?email_source=notifications\u0026email_token=AAIOWJYTJZWOU7KKF2GKXZ3PXAR4FA5CNFSM4HOYRDFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGCUWA#issuecomment-495725144",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>