Ticket #3873: 0001-Revert-FrameContainer-change-to-set-the-background-c.patch

File 0001-Revert-FrameContainer-change-to-set-the-background-c.patch, 1.6 KB (added by manuq, 12 years ago)

Patch that removes the color set in the code.

  • src/jarabe/frame/framewindow.py

    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 
    2121from sugar3.graphics import style
    2222
    2323
    24 class FrameContainer(Gtk.EventBox):
     24class FrameContainer(Gtk.Bin):
    2525    """A container class for frame panel rendering. Hosts a child 'box' where
    2626    frame elements can be added. Excludes grid-sized squares at each end
    2727    of the frame panel, and a space alongside the inside of the screen where
    class FrameContainer(Gtk.EventBox): 
    3030    __gtype_name__ = 'SugarFrameContainer'
    3131
    3232    def __init__(self, position):
    33         Gtk.EventBox.__init__(self)
     33        Gtk.Bin.__init__(self)
    3434        self._position = position
    3535
    36         self.modify_bg(Gtk.StateType.NORMAL,
    37                        style.COLOR_BLACK.get_gdk_color())
    38 
    3936        if self.is_vertical():
    4037            box = Gtk.VBox()
    4138        else: