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

Prevent Gtk-CRITICAL warning when removing toolbar item #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dimi20cen
Copy link
Contributor

Issue: When windows size gets decreased to a specific point and then increase again the following warning occurs, Gtk-CRITICAL **: 13:29:23.501: gtk_toolbar_remove: assertion 'content_to_remove != NULL' failed

Change: Added a safety check to ensure that self._coordinates_toolitem is in self._view_toolbar before attempting to remove it.

Issue: When windows size gets decreased to a specific point and then increase again the following warning occurs, `Gtk-CRITICAL **: 13:29:23.501: gtk_toolbar_remove: assertion 'content_to_remove != NULL' failed`

Change: Added a safety check to ensure that `self._coordinates_toolitem` is in  `self._view_toolbar` before attempting to remove it.
@chimosky
Copy link
Member

I'm not able to reproduce the issue, can you share how to?

@Dimi20cen
Copy link
Contributor Author

Dimi20cen commented Sep 13, 2023

Sure, open the activity on 1680x1050 resolution and go down to 640x480 resolution and then go up again to 1680x1050 resolution.

The resolution numbers don't have to be exact, those are just what I mostly used for testing.

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.

None yet

2 participants