bitbake: hob: disable layer drag and drop outside the containing widget
[YOCTO #5577] (Bitbake rev: d39d957c77b9804670cad3bc9f7742084ead27e8) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f5f3ef7b09
commit
fabdf2f57a
|
@ -133,12 +133,13 @@ class LayerSelectionDialog (CrumbsDialog):
|
||||||
tree_selection.set_mode(gtk.SELECTION_SINGLE)
|
tree_selection.set_mode(gtk.SELECTION_SINGLE)
|
||||||
|
|
||||||
# Allow enable drag and drop of rows including row move
|
# Allow enable drag and drop of rows including row move
|
||||||
|
dnd_internal_target = ''
|
||||||
|
dnd_targets = [(dnd_internal_target, gtk.TARGET_SAME_WIDGET, 0)]
|
||||||
layer_tv.enable_model_drag_source( gtk.gdk.BUTTON1_MASK,
|
layer_tv.enable_model_drag_source( gtk.gdk.BUTTON1_MASK,
|
||||||
self.TARGETS,
|
dnd_targets,
|
||||||
gtk.gdk.ACTION_DEFAULT|
|
gtk.gdk.ACTION_MOVE)
|
||||||
|
layer_tv.enable_model_drag_dest(dnd_targets,
|
||||||
gtk.gdk.ACTION_MOVE)
|
gtk.gdk.ACTION_MOVE)
|
||||||
layer_tv.enable_model_drag_dest(self.TARGETS,
|
|
||||||
gtk.gdk.ACTION_DEFAULT)
|
|
||||||
layer_tv.connect("drag_data_get", self.drag_data_get_cb)
|
layer_tv.connect("drag_data_get", self.drag_data_get_cb)
|
||||||
layer_tv.connect("drag_data_received", self.drag_data_received_cb)
|
layer_tv.connect("drag_data_received", self.drag_data_received_cb)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue