summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2014-03-19 15:37:08 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-04 15:06:09 +0100
commit0f7b6a03c64292983d2cc715e5e5badb1cdc5cae (patch)
treecc4fa16d7a56e926c9617c75781b46be5ac20eb8
parent66d01338ab1095775b854ad7509f4d2631c6e6ed (diff)
downloadbitbake-1.18.tar.gz
hob: disable layer drag and drop outside the containing widget1.18
[YOCTO #6008] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/ui/crumbs/hig/layerselectiondialog.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/bb/ui/crumbs/hig/layerselectiondialog.py b/lib/bb/ui/crumbs/hig/layerselectiondialog.py
index 783ee73c7..f6a4d72d3 100644
--- a/lib/bb/ui/crumbs/hig/layerselectiondialog.py
+++ b/lib/bb/ui/crumbs/hig/layerselectiondialog.py
@@ -132,12 +132,13 @@ class LayerSelectionDialog (CrumbsDialog):
tree_selection.set_mode(gtk.SELECTION_SINGLE)
# 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,
- self.TARGETS,
- gtk.gdk.ACTION_DEFAULT|
+ dnd_targets,
+ gtk.gdk.ACTION_MOVE)
+ layer_tv.enable_model_drag_dest(dnd_targets,
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_received", self.drag_data_received_cb)