changeset 56d7f47c6929 in tryton:5.0
details: https://hg.tryton.org/tryton?cmd=changeset;node=56d7f47c6929
description:
Use RGBA instead of Color in richtext widget
The Gtk.TextTag supports only Gdk.RGBA instead of Gdk.Color.
issue8231
review289041002
diffstat:
tryton/gui/window/view_form/view/form_gtk/richtextbox.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 9fe74517f6a3 -r 56d7f47c6929
tryton/gui/window/view_form/view/form_gtk/richtextbox.py
--- a/tryton/gui/window/view_form/view/form_gtk/richtextbox.py Tue Feb 04
18:28:09 2020 +0100
+++ b/tryton/gui/window/view_form/view/form_gtk/richtextbox.py Mon Feb 17
23:19:51 2020 +0100
@@ -331,9 +331,9 @@
colorsel.set_has_palette(True)
color = self.colors.get(name)
if color:
- colorsel.set_current_color(color)
+ colorsel.set_current_rgba(color)
if dialog.run() == gtk.RESPONSE_OK:
- color = colorsel.get_current_color()
+ color = colorsel.get_current_rgba()
self.colors[name] = color
if start is not None and end is not None:
start = text_buffer.get_iter_at_offset(start)