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

Replace deprecated Gdk.Color by Gdk.RGBA #1764

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

Conversation

QuLogic
Copy link
Contributor

@QuLogic QuLogic commented Sep 5, 2024

It's been deprecated since GDK 3.14.

It has been deprecated since GDK 3.14.
Comment on lines -398 to -401
self.line_color = rgb2color(g.get_color())
self.top.get_object("line_color").set_color(self.line_color)
self.fill_color = rgb2color(g.get_fill_color())
self.top.get_object("fill_color").set_color(self.fill_color)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that I couldn't find any use of self.line_color/self.fill_color in this file (e.g., the corollary to this function, save_graphics, does not use them), so I think that assignment was a mistake.

Comment on lines -662 to -663
if isinstance(color, str):
color = Gdk.color_parse(color)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function (animate_moves) is only a callback from a timeout added in _createmap, or a timeout added by itself, so we know the input is a Gdk.RGBA, and this check can be removed.

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.

1 participant