diff --git a/AbiWordActivity.py b/AbiWordActivity.py
index 2dff90b..f594709 100644
a
|
b
|
from gi.repository import GObject |
25 | 25 | GObject.threads_init() |
26 | 26 | |
27 | 27 | from gi.repository import Gtk |
| 28 | from gi.repository import Gdk |
28 | 29 | from gi.repository import Abi |
29 | 30 | from gi.repository import GdkPixbuf |
30 | 31 | import telepathy |
… |
… |
class AbiWordActivity(activity.Activity): |
215 | 216 | self.abiword_canvas.set_font_name('Sans') |
216 | 217 | self.abiword_canvas.moveto_bod() |
217 | 218 | |
| 219 | # set selection color |
| 220 | selection_color = style.Color('#A6A6A6') |
| 221 | rgba = Gdk.RGBA() |
| 222 | rgba.red, rgba.green, rgba.blue, rgba.alpha = \ |
| 223 | selection_color.get_rgba() |
| 224 | logging.error('set selection bacground %s', rgba) |
| 225 | self.abiword_canvas.override_background_color(Gtk.StateFlags.SELECTED, |
| 226 | rgba) |
| 227 | |
218 | 228 | def get_preview(self): |
219 | 229 | if not hasattr(self.abiword_canvas, 'render_page_to_image'): |
220 | 230 | return activity.Activity.get_preview(self) |