[gnome-clocks] Make each clock draw the border under the toolbar



commit 6e8548e8d1e2e2521b42c84e71e10962b74023fa
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Jan 6 19:02:39 2013 +0100

    Make each clock draw the border under the toolbar
    
    We need to set show-border on the notebook otherwise gtk will not draw
    the background, so let's take the chance to make it draw the border
    under the toolbar, since this is more in line with the other gnome apps
    do in their css

 data/css/gnome-clocks.css |    8 ++------
 gnomeclocks/clocks.py     |    5 +++++
 gnomeclocks/widgets.py    |    1 -
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/data/css/gnome-clocks.css b/data/css/gnome-clocks.css
index 91c6c93..bc675f6 100644
--- a/data/css/gnome-clocks.css
+++ b/data/css/gnome-clocks.css
@@ -3,17 +3,13 @@
 @define-color clocks_stop_color_a #f44848;
 @define-color clocks_stop_color_b #ff6565;
 
-.clocks-toolbar.toolbar {
+.clocks-content-view {
     border-style: solid;
     border-color: @borders;
-    border-width: 0 0 1px 0;
+    border-width: 1px 0 0 0;
     border-radius: 0;
 }
 
-.clocks-toolbar.selection-mode.toolbar {
-    border-width: 1px 0;
-}
-
 .clocks-digital-renderer {
     background-color: transparent;
     border-radius: 12px;
diff --git a/gnomeclocks/clocks.py b/gnomeclocks/clocks.py
index f43dd61..84c500e 100644
--- a/gnomeclocks/clocks.py
+++ b/gnomeclocks/clocks.py
@@ -27,6 +27,11 @@ class Clock(Gtk.Notebook):
         self._embed = embed
         self._toolbar = toolbar
 
+        self.set_show_border(True)
+        self.get_style_context().add_class('clocks-content-view')
+        self.get_style_context().add_class('view')
+        self.get_style_context().add_class('content-view')
+
         self.connect('map', self._ui_thaw)
         self.connect('unmap', self._ui_freeze)
 
diff --git a/gnomeclocks/widgets.py b/gnomeclocks/widgets.py
index 61c3ddd..cfc12df 100644
--- a/gnomeclocks/widgets.py
+++ b/gnomeclocks/widgets.py
@@ -80,7 +80,6 @@ class Toolbar(Gtk.Toolbar):
         self.n_pages = 0
         self.cur_page = 0
 
-        self.get_style_context().add_class("clocks-toolbar")
         self.set_icon_size(Gtk.IconSize.MENU)
         self.get_style_context().add_class(Gtk.STYLE_CLASS_MENUBAR)
 



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