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

Port screentest from GTK+ 2 to 3 #14

Merged
merged 5 commits into from
Mar 24, 2024
Merged

Conversation

markuspg
Copy link
Contributor

This pull request conducts the minimum changes necessary to port screentest from GTK+ 2 to 3.

In summary the following changes are being conducted:

  • update dependency on GTK+ in Meson from gtk+-2.0 to gtk+-3.0 (at least in version 3.4, which was released in 2012 and should be a sane baseline in 2024)
  • move the test drawing from happening on an expose event to the draw handler introduced by GTK+ 3
  • replace deprecated GdkColor by GdkRGBA
  • replace deprecated GtkColorSelectionDialog by GtkColorChooserDialog
  • (optionally) replace deprecated gtk_menu_popup by gtk_menu_popup_at_pointer
  • drop now superfluous gdk_cairo_create and cairo_destroy invocations

@TobiX
Copy link
Owner

TobiX commented Mar 24, 2024

Really nice, thank you!

@TobiX TobiX merged commit 6731428 into TobiX:main Mar 24, 2024
3 checks passed
@TobiX
Copy link
Owner

TobiX commented Mar 25, 2024

BTW: Feel free to add yourself to whatever credits you like (AUTHORS file, the initial test page, etc.)

@markuspg
Copy link
Contributor Author

You are welcome 🙂

@markuspg markuspg deleted the markuspg/gtk_3 branch March 27, 2024 22:43
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