Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgnacio Rodriguez <ignacio@sugarlabs.org>2013-12-10 15:52:34 (GMT)
committer Ignacio Rodriguez <ignacio@sugarlabs.org>2013-12-10 15:52:34 (GMT)
commitc798b861c18c7d004812d3fc2daef5b819e0e2ad (patch)
tree933b2c891edc020fa764eabcff41b249e35e12f3
parent441214cf3ba46086783ebd51fa28edf69133e76a (diff)
Add eventbox to pie graphicHEADmaster
-rw-r--r--chartscreen.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/chartscreen.py b/chartscreen.py
index a6fc9a5..1fb5a03 100644
--- a/chartscreen.py
+++ b/chartscreen.py
@@ -47,6 +47,11 @@ class ChartScreen(Gtk.HBox):
self.area = Gtk.DrawingArea()
self.area.connect('draw', self.chart_draw_cb)
+ self.box_area = Gtk.EventBox()
+ self.box_area.modify_bg(Gtk.StateType.NORMAL,
+ Gdk.color_parse('white'))
+ self.box_area.add(self.area)
+
label = Gtk.Label()
label.set_markup('<b>' + _('Debit Categories') + '</b>')
@@ -62,7 +67,7 @@ class ChartScreen(Gtk.HBox):
box.pack_start(Gtk.Box(orientation=Gtk.Orientation.VERTICAL),
True, True, 0)
- self.pack_start(self.area, True, True, 0)
+ self.pack_start(self.box_area, True, True, 0)
self.pack_start(box, False, False, 40)
self.show_all()