Philipp Hörist pushed to branch master at gajim / gajim
Commits:
7c3d4740 by Philipp Hörist at 2019-06-14T16:40:16Z
Keep cairo < 1.13 compatibility
- - - - -
1 changed file:
- gajim/gtk/util.py
Changes:
=====================================
gajim/gtk/util.py
=====================================
@@ -660,7 +660,9 @@ def generate_avatar(letters, color, size, scale):
y_pos = height / 2 - (ex_height / 2 + y_bearing)
context.move_to(x_pos, y_pos)
context.set_source_rgb(0.95, 0.95, 0.95)
- context.set_operator(cairo.Operator.OVER)
+ # use cairo.OPERATOR_OVER legacy constant because its
+ # compatible with cairo < 1.13
+ context.set_operator(cairo.OPERATOR_OVER)
context.show_text(letters)
return context.get_target()
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/7c3d474070ebca82e186be8c19c1d39442e8ca0f
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/7c3d474070ebca82e186be8c19c1d39442e8ca0f
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits