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

Some tests are gtk2 only #9

Open
HinTak opened this issue May 9, 2020 · 4 comments
Open

Some tests are gtk2 only #9

HinTak opened this issue May 9, 2020 · 4 comments

Comments

@HinTak
Copy link
Contributor

HinTak commented May 9, 2020

ScrollingTest for example. I have both gtk2 and gtk3, and found that I needed to change $EXTRA_LIBS and $EXTRA_CFLAGS from GTK_* to GTK2_* in test to let it finish building.

@HinTak
Copy link
Contributor Author

HinTak commented May 9, 2020

I have a local fix as outlined above, but I assume the correct change is possibly trying to make the test work with both, instead of limiting to gtk2

@flatmax
Copy link
Owner

flatmax commented May 10, 2020

I think this bug is most likely showing itself due to Distro upgrades defaulting to gtk3 ... its taken them a while.
Yep agreed, the headers have to be altered for specific classes to update them to be compat. with gtk3.
Another fix would be to put versioning #ifdef s in the effected files and in the test Makefile.am.

@HinTak
Copy link
Contributor Author

HinTak commented May 10, 2020

Fedora has been gtk3 for quite a few years; Ubuntu is largely gtk3 for a couple of years now. You actually had one place in code , "include/Selection.H" where you check and error on gtk3. At least any file including that is meant to be gtk2 only. In the end I did the quick fix, which is changing "test/Makefile.am" around line 47, just after JackPortMonitorGuiTest/TimeTest to do GTK2 - which includes ScrollingTest - but maybe some of those work with gtk3 too.

@flatmax
Copy link
Owner

flatmax commented May 10, 2020 via email

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