Fix ToolInvoker alignments.
This commit is contained in:
parent
6c1ecad37e
commit
feb462d08d
@ -648,11 +648,12 @@ class CanvasInvoker(Invoker):
|
|||||||
return hippo.get_canvas_for_item(self._item).get_toplevel()
|
return hippo.get_canvas_for_item(self._item).get_toplevel()
|
||||||
|
|
||||||
class ToolInvoker(WidgetInvoker):
|
class ToolInvoker(WidgetInvoker):
|
||||||
def get_aligments(self):
|
def _get_alignments(self):
|
||||||
if self.parent is None:
|
parent = self._widget.get_parent()
|
||||||
|
if parent is None:
|
||||||
return WidgetInvoker.get_alignments()
|
return WidgetInvoker.get_alignments()
|
||||||
|
|
||||||
if self.parent.get_orientation() is gtk.ORIENTATION_HORIZONTAL:
|
if parent.get_orientation() is gtk.ORIENTATION_HORIZONTAL:
|
||||||
return self.BOTTOM + self.TOP
|
return self.BOTTOM + self.TOP
|
||||||
else:
|
else:
|
||||||
return self.LEFT + self.RIGHT
|
return self.LEFT + self.RIGHT
|
||||||
|
Loading…
Reference in New Issue
Block a user