[gnome-clocks] Set the classes on the main notebook
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Set the classes on the main notebook
- Date: Sun, 6 Jan 2013 20:08:17 +0000 (UTC)
commit f3c4ecfc0e39e3c43e762d01a9dba6f306035efd
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Jan 6 21:06:46 2013 +0100
Set the classes on the main notebook
It is clearer to set the css classes on the main notebook instead on the
ones internal to each clock
gnomeclocks/app.py | 5 ++++-
gnomeclocks/clocks.py | 6 +-----
2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/gnomeclocks/app.py b/gnomeclocks/app.py
index a08c6d8..9eab3ad 100644
--- a/gnomeclocks/app.py
+++ b/gnomeclocks/app.py
@@ -59,7 +59,10 @@ class Window(Gtk.ApplicationWindow):
self.notebook = Gtk.Notebook()
self.notebook.set_show_tabs(False)
- self.notebook.set_show_border(False)
+ self.notebook.set_show_border(True)
+ self.notebook.get_style_context().add_class('clocks-content-view')
+ self.notebook.get_style_context().add_class('view')
+ self.notebook.get_style_context().add_class('content-view')
self.embed = Embed(self.notebook)
diff --git a/gnomeclocks/clocks.py b/gnomeclocks/clocks.py
index cfe5874..f43dd61 100644
--- a/gnomeclocks/clocks.py
+++ b/gnomeclocks/clocks.py
@@ -21,16 +21,12 @@ from gi.repository import Gtk
class Clock(Gtk.Notebook):
def __init__(self, label, toolbar, embed):
- Gtk.Notebook.__init__(self, show_tabs=False, show_border=True)
+ Gtk.Notebook.__init__(self, show_tabs=False, show_border=False)
self.show()
self.label = label
self._embed = embed
self._toolbar = toolbar
- 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]