From 55b25f90bae2c99cafdfe46e12017f57b7c444de Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
Date: Sun, 9 Sep 2012 20:54:07 -0300
Subject: [PATCH sugar] Revert FrameContainer change to set the background
color in 10d3971f7dc61d5acdf2c9211a9dd4092090d3b7
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
This must be done in the theme, using the .background class for the
sugar frame window.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
---
src/jarabe/frame/framewindow.py | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/jarabe/frame/framewindow.py b/src/jarabe/frame/framewindow.py
index fba9fd8..70c52ae 100644
a
|
b
|
from gi.repository import cairo |
21 | 21 | from sugar3.graphics import style |
22 | 22 | |
23 | 23 | |
24 | | class FrameContainer(Gtk.EventBox): |
| 24 | class FrameContainer(Gtk.Bin): |
25 | 25 | """A container class for frame panel rendering. Hosts a child 'box' where |
26 | 26 | frame elements can be added. Excludes grid-sized squares at each end |
27 | 27 | of the frame panel, and a space alongside the inside of the screen where |
… |
… |
class FrameContainer(Gtk.EventBox): |
30 | 30 | __gtype_name__ = 'SugarFrameContainer' |
31 | 31 | |
32 | 32 | def __init__(self, position): |
33 | | Gtk.EventBox.__init__(self) |
| 33 | Gtk.Bin.__init__(self) |
34 | 34 | self._position = position |
35 | 35 | |
36 | | self.modify_bg(Gtk.StateType.NORMAL, |
37 | | style.COLOR_BLACK.get_gdk_color()) |
38 | | |
39 | 36 | if self.is_vertical(): |
40 | 37 | box = Gtk.VBox() |
41 | 38 | else: |