[gtksourceview] Fix testdark.xml style scheme



commit 8ed2c9ae5d7a961a46513f74ffab0ea1952dfe30
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat May 31 14:44:24 2014 +0200

    Fix testdark.xml style scheme
    
    testdark.xml is not installed, it is just a test. But some unit tests
    call gtk_source_style_scheme_manager_set_search_path() with the
    data/styles/ directory from the sources, so the unit tests can run when
    gtksourceview is not installed. So testdark.xml in this case is read,
    and there was a problem with the colors not recognized (the colors are
    not inherited from the parent scheme).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=731039

 data/styles/testdark.xml |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/data/styles/testdark.xml b/data/styles/testdark.xml
index 2b97568..3ad5779 100644
--- a/data/styles/testdark.xml
+++ b/data/styles/testdark.xml
@@ -1,5 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <style-scheme id="dark" _name="dark" parent-scheme="classic" version="1.0">
+
+  <!-- Palette, FIXME the colors are not taken from the parent-scheme,
+       so they must be copied here. -->
+  <color name="white"      value="#FFFFFF"/>
+  <color name="magenta"    value="#FF00FF"/>
+  <color name="gray"       value="#BEBEBE"/>
+
   <style name="text"                foreground="white" background="#000000"/>
   <style name="selection"           foreground="magenta" background="gray"/>
   <style name="selection-unfocused" foreground="magenta" background="gray"/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]