[gnome-contacts: 1/9] list-test: Add css to test prelight and active



commit 3eba7f363efa457e0ee3f2c83eb07da70495f240
Author: Alexander Larsson <alexl redhat com>
Date:   Wed May 16 11:21:10 2012 +0200

    list-test: Add css to test prelight and active

 test-list.vala |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/test-list.vala b/test-list.vala
index 0c1c06a..e18d258 100644
--- a/test-list.vala
+++ b/test-list.vala
@@ -183,6 +183,20 @@ main (string[] args) {
 
   w.show_all ();
 
+  var provider = new Gtk.CssProvider ();
+  provider.load_from_data (
+"""
+EggListBox:prelight {
+background-color: green;
+}
+EggListBox:active {
+background-color: red;
+}
+""", -1);
+  Gtk.StyleContext.add_provider_for_screen (Gdk.Screen.get_default (),
+					    provider,
+					    600);
+
   Gtk.main ();
 
   return 0;



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