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

splitwindow: Fix document selection popup on GTK >= 3.15.9 && <= 3.21.4 #1272

Merged
merged 1 commit into from Oct 24, 2016

Conversation

b4n
Copy link
Member

@b4n b4n commented Oct 22, 2016

Works around GTK bug https://bugzilla.gnome.org/show_bug.cgi?id=769287.
Stop emission of the ::show-menu signal if it was first emitted from an
inactive toggle button, which happens only in the buggy case.
This workaround tries to not negatively affect a correctly behaving GTK
version in the unlikely case some distributions patched their version.

Fixes #1149.

Works around GTK bug https://bugzilla.gnome.org/show_bug.cgi?id=769287.
Stop emission of the ::show-menu signal if it was first emitted from an
inactive toggle button, which happens only in the buggy case.
This workaround tries to not negatively affect a correctly behaving GTK
version in the unlikely case some distributions patched their version.

Fixes geany#1149.
@b4n b4n added this to the 1.29 milestone Oct 22, 2016
@elextr
Copy link
Member

elextr commented Oct 22, 2016

Works for me, GTK 3.18.9 but with the messages

(geany:32192): Gtk-CRITICAL **: gtk_widget_unmap: assertion 'GTK_IS_WIDGET (widget)' failed

(geany:32192): Gtk-CRITICAL **: gtk_widget_unmap: assertion 'GTK_IS_WIDGET (widget)' failed

(geany:32192): Gtk-CRITICAL **: gtk_widget_unrealize: assertion 'GTK_IS_WIDGET (widget)' failed

(geany:32192): Gtk-CRITICAL **: gtk_widget_unrealize: assertion 'GTK_IS_WIDGET (widget)' failed

@b4n
Copy link
Member Author

b4n commented Oct 23, 2016

but with the messages […]

Ah right, that's Scintilla. I even had a fix somewhere, I'll find it back. But it's not so bad, it's "simply" that the widgets (scrollbars) in question are NULLs at this point, not plain invalid memory.

@b4n
Copy link
Member Author

b4n commented Oct 23, 2016

@elextr
Copy link
Member

elextr commented Oct 23, 2016

Ok, hopefully that will be in Scintilla 3.7.1 which will probably not be in 1.29, so this should also wait.

@b4n
Copy link
Member Author

b4n commented Oct 23, 2016

@elextr why wait? It's totally unrelated to the fix, and it can happen a number of other ways. Also, the linked patch is totally trivial, it just guards 4 calls not to happen on NULL values, I'm confident you can review it for typos (like not guarding the right variable or something) in 5 minutes and we'll be sure it won't be a problem backporting it.

@elextr
Copy link
Member

elextr commented Oct 23, 2016

Ok, if you want to do that.

@elextr
Copy link
Member

elextr commented Oct 24, 2016

Works for me 👍

@b4n b4n merged commit 9fa27cb into geany:master Oct 24, 2016
b4n added a commit that referenced this pull request Oct 24, 2016
splitwindow: Fix document selection popup on GTK >= 3.15.9 && <= 3.21.4
@b4n b4n self-assigned this Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants