[libdazzle] tests: load CSS instead of custom CSS



commit b84de15295efa71535bfbf757e8250e449760584
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 6 18:39:47 2017 -0700

    tests: load CSS instead of custom CSS

 tests/test-cpu-graph.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/tests/test-cpu-graph.c b/tests/test-cpu-graph.c
index 5139549..6b971b1 100644
--- a/tests/test-cpu-graph.c
+++ b/tests/test-cpu-graph.c
@@ -1,14 +1,6 @@
 #include <dazzle.h>
-
 #include <stdlib.h>
 
-#define CSS_DATA \
-  "dzlgraphview {\n" \
-  "  background-color: #f6f7f8;\n" \
-  "  background-size: 8px 8px;\n" \
-  "  background-image:repeating-linear-gradient(0deg, #f0f1f2, #f0f1f2 1px, transparent 1px, transparent 
8px),repeating-linear-gradient(-90deg, #f0f1f2, #f0f1f2 1px, transparent 1px, transparent 8px);\n" \
-  "}"
-
 int
 main (int argc,
       char *argv[])
@@ -45,8 +37,7 @@ main (int argc,
   timespan = (gint64)seconds * G_USEC_PER_SEC;
   max_samples = seconds * samples;
 
-  provider = gtk_css_provider_new ();
-  gtk_css_provider_load_from_data (provider, CSS_DATA, -1, NULL);
+  provider = dzl_css_provider_new ("/org/gnome/dazzle/themes");
   gtk_style_context_add_provider_for_screen (gdk_screen_get_default (), GTK_STYLE_PROVIDER (provider), 
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
   g_object_unref (provider);
 


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