Ticket #1304: sugar-1304.patch

File sugar-1304.patch, 1.2 KB (added by alsroot, 12 years ago)
  • src/sugar/graphics/toolbarbox.py

    From 90adb24c9981888a2b99354f8b9cb93234362f74 Mon Sep 17 00:00:00 2001
    From: Aleksey Lim <alsroot@member.fsf.org>
    Date: Wed, 9 Sep 2009 08:54:08 +0000
    Subject: Secondary toolbar widget should set a minimum height #1304
    
    ---
     src/sugar/graphics/toolbarbox.py |    4 +++-
     1 files changed, 3 insertions(+), 1 deletions(-)
    
    diff --git a/src/sugar/graphics/toolbarbox.py b/src/sugar/graphics/toolbarbox.py
    index cc5edb8..e7973fa 100644
    a b class ToolbarButton(ToolButton): 
    5454            self.page_widget = None
    5555            return
    5656        self.page_widget = _embody_page(_Box, page)
     57        self.page_widget.set_size_request(-1, style.GRID_CELL_SIZE)
    5758        self.page_widget.toolbar_button = self
    5859        page.show()
    5960        if self.props.palette is None:
    class ToolbarButton(ToolButton): 
    7980                and self.toolbar_box.expanded_button == self
    8081
    8182    def popdown(self):
    82         self.props.palette.popdown(immediate=True)
     83        if self.props.palette is not None:
     84            self.props.palette.popdown(immediate=True)
    8385
    8486    def set_expanded(self, expanded):
    8587        self.popdown()