[bijiben/wip/igaldino/webkit2-port] note-view: Fix background color
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben/wip/igaldino/webkit2-port] note-view: Fix background color
- Date: Fri, 17 Mar 2017 13:37:20 +0000 (UTC)
commit c7413a54e08169c373c45a14d699272ce2dc38d0
Author: Isaque Galdino <igaldino gmail com>
Date: Fri Mar 17 10:28:27 2017 -0300
note-view: Fix background color
Background color was not being used in text view/editor. The code to
actually set the background was not even there.
After fixing that, as a side effect, it also fixed the text editor which
was messing up all text during text edition.
https://bugzilla.gnome.org/show_bug.cgi?id=761765
src/bjb-note-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/bjb-note-view.c b/src/bjb-note-view.c
index 2ca1ef6..985ed0d 100644
--- a/src/bjb-note-view.c
+++ b/src/bjb-note-view.c
@@ -179,6 +179,9 @@ on_note_color_changed_cb (BijiNoteObj *note, BjbNoteView *self)
g_return_if_fail (BIJI_IS_NOTE_OBJ (note));
biji_note_obj_get_rgba (note, &color);
+
+ webkit_web_view_set_background_color (WEBKIT_WEB_VIEW (priv->view), &color);
+
if (color.red < 0.5)
font_color = "white";
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]