Skip to content
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

PageView: component menu not editable #35

Closed
bertsky opened this issue Nov 30, 2021 · 2 comments
Closed

PageView: component menu not editable #35

bertsky opened this issue Nov 30, 2021 · 2 comments

Comments

@bertsky
Copy link
Contributor

bertsky commented Nov 30, 2021

For me sometimes the Gtk.Menu of the PageFeaturesSelector is grayed out (so I cannot de/activate components).

I have not found a reason or workaround yet myself. (Tried item.set_sensitive(True) without effect...)

@hnesk
Copy link
Owner

hnesk commented Nov 30, 2021

Hmmm, can't reproduce...
Is the whole menu label "Show: 🖺🗋🗌↯⬓𝌆–𝌶𝍖‽" grayed out or are single features grayed out?

For single features, the sensitivity gets set in PageFeaturesSelector.set_page(), is this were you tried item.set_sensitive(True)?

Does it happen in specific PAGE-XMLs or generally?

@bertsky
Copy link
Contributor Author

bertsky commented Nov 30, 2021

I can still click the button, but its contents and the menu items are grayed out.

No, I only tried set_sensitive in the constructor. Yes, when I do it in set_page, it works.

It only seems to affect PAGE-XML files with a namespace older than 2019-07-15. (Sorry, I did not recognize this earlier.) Other than these menu choices, the old PAGE files work perfectly.

@hnesk hnesk closed this as completed in fee8d1c Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants