changed gtk.gdk.ACTION_COPY to gtk.gdk.ACTION_MOVE
This commit is contained in:
parent
c81df8ab05
commit
4109deef26
|
@ -217,9 +217,9 @@ class TerminatorTerm:
|
||||||
"""drag and drop"""
|
"""drag and drop"""
|
||||||
srctargets = [ ( "vte", 0, 81 ) ]
|
srctargets = [ ( "vte", 0, 81 ) ]
|
||||||
dsttargets = [ ( "vte", 0, 81 ), ('text/plain', 0, 0) , ("STRING", 0, 0), ("COMPOUND_TEXT", 0, 0)]
|
dsttargets = [ ( "vte", 0, 81 ), ('text/plain', 0, 0) , ("STRING", 0, 0), ("COMPOUND_TEXT", 0, 0)]
|
||||||
self._vte.drag_source_set( gtk.gdk.CONTROL_MASK | gtk.gdk.BUTTON3_MASK, srctargets, gtk.gdk.ACTION_COPY)
|
self._vte.drag_source_set( gtk.gdk.CONTROL_MASK | gtk.gdk.BUTTON3_MASK, srctargets, gtk.gdk.ACTION_MOVE)
|
||||||
#self._vte.drag_dest_set(gtk.DEST_DEFAULT_MOTION | gtk.DEST_DEFAULT_HIGHLIGHT |gtk.DEST_DEFAULT_DROP ,dsttargets, gtk.gdk.ACTION_COPY)
|
#self._vte.drag_dest_set(gtk.DEST_DEFAULT_MOTION | gtk.DEST_DEFAULT_HIGHLIGHT |gtk.DEST_DEFAULT_DROP ,dsttargets, gtk.gdk.ACTION_MOVE)
|
||||||
self._vte.drag_dest_set(gtk.DEST_DEFAULT_MOTION | gtk.DEST_DEFAULT_HIGHLIGHT |gtk.DEST_DEFAULT_DROP ,dsttargets, gtk.gdk.ACTION_COPY)
|
self._vte.drag_dest_set(gtk.DEST_DEFAULT_MOTION | gtk.DEST_DEFAULT_HIGHLIGHT |gtk.DEST_DEFAULT_DROP ,dsttargets, gtk.gdk.ACTION_MOVE)
|
||||||
self._vte.connect("drag-data-get", self.on_drag_data_get, self)
|
self._vte.connect("drag-data-get", self.on_drag_data_get, self)
|
||||||
|
|
||||||
#for testing purpose: drag-motion
|
#for testing purpose: drag-motion
|
||||||
|
@ -273,7 +273,7 @@ text/plain;charset=utf-8
|
||||||
text/plain;charset=UTF-8
|
text/plain;charset=UTF-8
|
||||||
text/plain
|
text/plain
|
||||||
"""
|
"""
|
||||||
print "motion"
|
#print "motion"
|
||||||
|
|
||||||
if 'text/plain' in drag_context.targets:
|
if 'text/plain' in drag_context.targets:
|
||||||
#copy text from another widget
|
#copy text from another widget
|
||||||
|
|
Loading…
Reference in New Issue