[bijiben/wip/igaldino/webkit2-port: 7/7] note-view: Fix background color



commit ea3610066fd643f8fb7c5317721ef1dcb0bd6325
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]