diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-12-11 13:44:49 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-12-11 13:47:30 (GMT) |
commit | 2b2f9aa27828f44ebdce0af32566f74b0762178c (patch) | |
tree | 85b81b75cba62e5aed015da825b4059fb33d00ab | |
parent | dae382e6eb54fa4f8d9bd6e608a5c067df0ff297 (diff) |
Draw the fillcolor button in the correct order - SL #4303
Similar to the change in the last patch
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r-- | toolbox.py | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -433,6 +433,23 @@ class ButtonFillColor(ColorToolButton): def _on_keep_aspect_checkbutton_toggled(self, checkbutton): self._activity.area.keep_shape_ratio = checkbutton.get_active() + def do_draw(self, cr): + child = self.get_child() + if self._palette and self._palette.is_up(): + allocation = self.get_allocation() + # draw a black background, has been done by the engine before + cr.set_source_rgb(0, 0, 0) + cr.rectangle(0, 0, allocation.width, allocation.height) + cr.paint() + + Gtk.ToolItem.do_draw(self, cr) + + if self._palette and self._palette.is_up(): + invoker = self._palette.props.invoker + invoker.draw_rectangle(cr, self._palette) + + return False + ##Make the Shapes Toolbar class ShapesToolbar(Gtk.Toolbar): |