[gnome-clocks] Use the standard "content-view" css class



commit b7540fb975563a99139171b3649ddac708afae97
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Aug 18 11:11:36 2012 +0200

    Use the standard "content-view" css class
    
    This class was recently added to gnome-themes-standard and is the
    recommended way to get the "ligth gray" background

 data/gtk-style.css    |    4 ----
 gnomeclocks/clocks.py |    7 ++++---
 2 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index 24e2aa9..3a13e14 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -9,10 +9,6 @@
     border-radius: 0;
 }
 
-.grey-bg {
-    background-color: #f1f2f1
-}
-
 .clocks-go {
     background-image: linear-gradient(to bottom,
                                       @clocks_go_color_a,
diff --git a/gnomeclocks/clocks.py b/gnomeclocks/clocks.py
index 4250eb3..f0fbc40 100644
--- a/gnomeclocks/clocks.py
+++ b/gnomeclocks/clocks.py
@@ -64,7 +64,8 @@ class Clock(Gtk.EventBox):
         self.button = ToggleButton(label)
         self.hasNew = hasNew
         self.hasSelectionMode = hasSelectionMode
-        self.get_style_context().add_class('grey-bg')
+        self.get_style_context().add_class('view')
+        self.get_style_context().add_class('content-view')
 
     def open_new_dialog(self):
         pass
@@ -95,7 +96,7 @@ class World(Clock):
         iconview.set_model(liststore)
         iconview.set_spacing(3)
         iconview.set_pixbuf_column(0)
-        iconview.get_style_context().add_class('grey-bg')
+        iconview.get_style_context().add_class('content-view')
 
         renderer_text = Gtk.CellRendererText()
         renderer_text.set_alignment(0.5, 0.5)
@@ -199,7 +200,7 @@ class Alarm(Clock):
 
         iconview.set_spacing(3)
         iconview.set_pixbuf_column(0)
-        iconview.get_style_context().add_class('grey-bg')
+        iconview.get_style_context().add_class('content-view')
 
         renderer_text = Gtk.CellRendererText()
         renderer_text.set_alignment(0.5, 0.5)



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