Set css class on toolitems when a palette or toolbar popsdown

This commit is contained in:
Sam Parkinson 2016-02-15 20:19:17 +11:00
parent 8d0cc98e43
commit 824e6dcb69
2 changed files with 2 additions and 0 deletions

View File

@ -1198,6 +1198,7 @@ class WidgetInvoker(Invoker):
context = self.parent.get_style_context()
context.add_class('toolitem')
context.add_class('palette-down')
gap = _calculate_gap(self.get_rect(), palette.get_rect())
if gap:

View File

@ -130,6 +130,7 @@ class ToolbarButton(ToolButton):
alloc = self.get_allocation()
context = self.get_style_context()
context.add_class('toolitem')
context.add_class('toolbar-down')
if not self.is_expanded() or self.props.palette is not None and \
self.props.palette.is_up():
ToolButton.do_draw(self, cr)