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

Implement Container.remove method #88

Merged
merged 1 commit into from
Jan 21, 2020

Conversation

chr-1x
Copy link
Contributor

@chr-1x chr-1x commented Jan 20, 2020

This implements container.remove. Fixes the commented out code from nigui.nim and implements the GTK backend for it. It is unclear to me why the code in nigui.nim was commented out, so if there is additional context please let me know.

@chr-1x
Copy link
Contributor Author

chr-1x commented Jan 20, 2020

Looks like it "works" on win32 in the sense of removing the element correctly, but it gives a null pointer error next time the window is focused. I'm taking a look at it now.

@chr-1x
Copy link
Contributor Author

chr-1x commented Jan 21, 2020

Functionality now works on win32 as well, the crash was due to the window storing the removed control as the "focused element". This PR is ready for review/merge.

@simonkrauter
Copy link
Owner

Thanks! I can't remember why I commented it out. I will test if there are any issues with the 'remove'.

@simonkrauter simonkrauter merged commit 75a24b5 into simonkrauter:master Jan 21, 2020
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

Successfully merging this pull request may close these issues.

2 participants