From ff2a6b0fa65dfd5260d524687568db2432066846 Mon Sep 17 00:00:00 2001 From: Emmanuel Bretelle Date: Mon, 25 Feb 2008 18:56:51 +0000 Subject: [PATCH] fixed a bug where the source term was set to the bottom or right of the destination term --- terminator | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/terminator b/terminator index e3e232ed..e43bf9ec 100755 --- a/terminator +++ b/terminator @@ -203,7 +203,7 @@ class TerminatorTerm: selection_data.set("vte",81, str(data.terminator.term_list.index (self))) def on_drag_motion(self, widget, drag_context, x, y, time): - return + #return print "Drag Motion on ", parent = widget.get_parent() print "%dx%d -> %dx%d" % (parent.allocation.width, parent.allocation.height , x, y) @@ -299,10 +299,15 @@ class TerminatorTerm: #dst parent is a window # We have just one term pane = (pos in ("top", "bottom")) and gtk.VPaned() or gtk.HPaned() - dsthbox.reparent (pane) + dstpaned.remove(dsthbox) + #dsthbox.reparent (pane) #srchbox.reparent(pane) - pane.pack1 (dsthbox, True, True) - pane.pack2 (srchbox, True, True) + if pos in ("top", "left"): + pane.pack1 (srchbox, True, True) + pane.pack2 (dsthbox, True, True) + else: + pane.pack1 (dsthbox, True, True) + pane.pack2 (srchbox, True, True) dstpaned.add(pane) position = (pos in ("top", "bottom")) and dstpaned.allocation.height or dstpaned.allocation.width