If Edit > Preferences > Window > "Show status bar" is checked/unchecked, then corresponding View > Statusbar is not updated, but if View > Statusbar is checked/unchecked, then "Show status bar" state in Preferences is correctly updated. The same is for Preferences "Show toolbar" and View > Toolbar.
*** Bug 11616 has been marked as a duplicate of this bug. ***
Still happens on 0.4.0 with GTK3. Also for: Toolbar / Show toolbar Tab Size / Tab width Line Numbers / Show line numbers Word Wrap / Wrap long lines Auto Indent / Enable automatic indentation
*** Bug 14047 has been marked as a duplicate of this bug. ***
Created attachment 8604 diff This fix does the job, but it may need to be improved code-wise.
The patch works, I'm just surprised it had to add too many lines. The only weird thing I spotted was in 'mousepad_window_update_document_actions', 'window->active' is accessed before checking if 'window' is valid.
It does seem like a lot of code, I would've guessed it was just not binding something correctly (ie. bidirectionally or whatever). @Theo, did we just miss a bunch of code that is present for other settings?
The patch adds the missing bindings. Initially, some of the buttons were only toggled when switching tabs. I assume that the code can be simplified. I only expanded on what was already present.
(In reply to Theo Linkspfeifer from comment #7) > I assume that the code can be simplified. I only expanded on what was > already present. I'm willing to push your patch as is, we can always improve the code later, please provide a patch with commit info if you agree.
(In reply to Theo Linkspfeifer from comment #4) > Created attachment 8604 > diff > > This fix does the job, but it may need to be improved code-wise. I confirm that the patch fixes the sync issue.
Created attachment 9230 patch
Created attachment 9231 patch Removed some unneeded spaces.
Theo Linkspfeifer referenced this bugreport in commit ef7acc4f09631fb57300a9a7eb121b4dd0e3cd99 Sync remaining menu actions to their settings (Bug #11046) https://git.xfce.org/apps/mousepad/commit?id=ef7acc4f09631fb57300a9a7eb121b4dd0e3cd99
Thanks Theo!