Comments (3)
Yeah the first message has been around for ages. It comes do from the way we build the UI and try to restore the pane handle positions. It originates in Builder.replace_layout()
where we recursively insert children based on the config string, then move the panel handles.
In order to set the panel handles, the Gtk.Paned
need sizes, thus all the queue_resize
/show_now
/check_resize
calls. If you remove the two last for loops from this function, the warning disappears (and Pympress won't remember where you last left your pane handle when closing the last time).
I think ideally the resizing loop shouldn't exist, and we should figure out the correct event (something like map
, map-event
or realize
) that happens after size negotiation but before drawing the widget, and insert there the pane resizing (i.e. the last loop of replace_layout
).
This would not just remove the warning if done properly, but also enable something that doesn't work right now: remembering and restoring the size of a Gtk.Paned
child of another Gtk.Paned
with both the same orientation. That is, this works [ |☰]
but this doesn't: [ |[ ⏐ ]]
from pympress.
Turns out size-allocate
is a good signal to do this.
from pympress.
Thanks for the quick fix. The warnings seem to have gone.
from pympress.
Related Issues (20)
- Pympress (1.5.1+dfsg-3build1) is not loading when using i3 HOT 7
- Pympress crashes on start on Fedora 38 beta. HOT 1
- get_primary_monitor() returns None HOT 2
- Notes are misaligned HOT 2
- Improve Annotations HOT 9
- Undo Clears Slide HOT 4
- Incorrect rendering of greek and math symbols on windows in plots generated with R HOT 14
- First slide in presenter mode. HOT 3
- [Windows] Not loading the proper language HOT 1
- Setup proper visual testing
- Support proper Hi-DPI on Windows HOT 2
- Annotation support for line breaks
- Allow configuring thresholds for colors on elapsed time for estimated time HOT 2
- Help needed for installation under nobara linux
- No video when note slide located at bottom of page HOT 7
- Slide deck overview missing every 2nd slide HOT 5
- Recomend using pipx instead of pip HOT 3
- Shortcuts page in version 1.7.1 shows wrong keys: Shift and Ctrl are mixed HOT 7
- Play gif via animate package does not start animation loop when displayed via Pympress HOT 9
- Save PDF with the Highlights HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pympress.