Ticket #3987: 0001-Set-correct-background-v2.patch

File 0001-Set-correct-background-v2.patch, 1.4 KB (added by manuq, 11 years ago)

Modification of the first patch which passes both testcases. Would be nicer to do the theme change in one go, but maybe later. Fixing the bug for now.

  • src/sugar3/graphics/toolbarbox.py

    From 3f3c260e994e61e552b693a3be56d9fa502bb917 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Wed, 31 Oct 2012 11:44:20 -0300
    Subject: [PATCH toolkit-gtk3] Set correct background v2
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     src/sugar3/graphics/toolbarbox.py | 5 +----
     1 file changed, 1 insertion(+), 4 deletions(-)
    
    diff --git a/src/sugar3/graphics/toolbarbox.py b/src/sugar3/graphics/toolbarbox.py
    index ee709dd..1683403 100644
    a b class _Box(Gtk.EventBox): 
    268268
    269269    def __init__(self, toolbar_button):
    270270        GObject.GObject.__init__(self)
    271         self.set_app_paintable(True)
    272271        self._toolbar_button = toolbar_button
    273         self.modify_bg(Gtk.StateType.NORMAL,
    274                        style.COLOR_TOOLBAR_GREY.get_gdk_color())
    275272
    276273    def do_draw(self, cr):
    277274        button_alloc = self._toolbar_button.get_allocation()
    class _Box(Gtk.EventBox): 
    284281        cr.line_to(self.get_allocation().width, 0)
    285282        cr.stroke()
    286283
    287         Gtk.EventBox.do_draw(self, cr)
     284        self.get_child().do_draw(self, cr)
    288285
    289286
    290287def _setup_page(page_widget, color, hpad):