New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
size of the sidepanel was not restored after a restart of Geany #3070
Comments
Help->Debug Message: |
I can't follow your steps to reproduce there seems to be missing steps. I presume you built from nightly tarball to get a 1.39, unfortunately that doesn't say what the git was when you built it as it does for built from git (see below), 1.39 is still in development so things can change at any point. I ran Geany:
on a separate config ie
AFAIK thats the expected behaviour. If yours behaves differently can you post the values of the [Edited, didn't finish before posting, oops] |
@elextr Now everything works fine, so I can't reproduce the issue, nor with maximized window, nor with not maximized window, and nor with different position of the not maximized window. |
You have to tell Geany to use the alternative config by starting from the command line with the If it happens again look for |
you can re-open if you get more information |
You write in your comment #3070 (comment) several times "reopen". |
@ralf3u to be able to specify the config with |
@elextr To your tests mentioned in #3070 (comment): I made the test on an other computer and everything works fine. That is the content of session.conf after rebooting the computer: Then I do point 1. [geany] Then I do point 3. [geany] Then I do point 4. [geany] Then I do point 5. |
I'm not sure what you are doing, but I asked for What I get at the three points where Geany is closed are:
Note the change in Also I notice you have provided the value of "fullscreen". Full screen is NOT maximised, maximised is the window control not |
I did that with FeatherPad.
I did not go in fullscreen. I did maximize the window. But now I know what I did wrong: |
@elextr To your tests mentioned in #3070 (comment) I do point 1. Then I do point 2. Then I do point 3. Then I do point 4. Then I do point 5. |
I made a test: |
Yes, but remember the values you had posted before were wrong, so the fact that "fullscreen" was false did not tell me what you were doing :-) The result you got from point 3 does not make sense, it has not saved a new sidebar width, it is still 165 which is why Geany reopens with that. What are you doing to "change the sidebar width"? Maybe we are not talking about the same thing, I mean the width of the "symbols" or "documents" tree on the left of the edit window. |
I grabbed with the mouse the vertical line between editor and sidepanel and moved it. So instead of having about 10% and 90% I changed it to 50% and 50%. |
As I mentioned before, on an other computer the test works fine, but not on this computer. Both are running with Lubuntu 21.04. I'm not a software developer, but for me it seems to be that Geany is the problem. |
Yes, but since only one computer can reproduce the problem the question is what is the difference between the two computers, exactly which version of Geany 1.39? Which version of GTK and Glib, anything else different? |
Exactly the same. I got Geany 1.39 by PPA, described in https://github.com/xiota/geany-preview. |
Well, I'm afraid we don't know what that PPA provides, its a personal archive. It might be better to build Geany from a nightly tarball, then you know its exactly the same since its made from the same tarball. But then when you are sure its exactly the same Geany on both systems then it comes back to what is different between the two systems? The same Geany can't behave in differing ways unless the underlying system is different. |
Maybe the versions of Geany are different because now I remembered that I had problems with this computer when installing Geany 1.39 by PPA.
I have no idea how to do this. My suggestion: |
@ralf3u That is my PPA. The build you're using is from 2021-11-30, and has several patches that have not been merged upstream (probably based on d8f2f14). (A one-line description of each patch is noted in the deb changelog.) If you have more problems with that PPA, please contact me elsewhere. One of the patches is #2979, which changes save/restore of geometry and position. The issue you describe (not accurately saving sidebar position when window is maximized) happens sometimes on my computer. There may be some race-like condition in my patch. I'll update the PPA to remove it. |
@xiota I updated the system. Then I did again the test mentioned in #3070 (comment). And now the test works fine. |
What I did:
I opened Geany (I'm sure that Geany was maximized).
I changed the size of the sidepanel at about 50%, so 50% editor and 50% sidepanel.
I closed Geany.
I reopened Geany.
Result
It was not any more 50% editor and 50% sidepanel. I tried it many times.
Then I did something like this:
I changed the size of the window, then I changed the size of the sidepanel. Then I closed Geany. I reopened Geany. Then I maximized Geany. And now it works properly, so the size of the sidepanel is remembered after a restart of Geany.
The text was updated successfully, but these errors were encountered: