Set css class on toolitems when a palette or toolbar popsdown
This commit is contained in:
parent
8d0cc98e43
commit
824e6dcb69
@ -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:
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user