diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2013-11-29 16:10:39 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-30 22:26:30 +0000 |
commit | fabdf2f57a8e0ebe8ab7e82f92f3b298e113fcc0 (patch) | |
tree | 0f5dfa6d78093358b2a078130559e5a574242b4d /bitbake | |
parent | f5f3ef7b09ab3790da92f8bef83835033bbeb0ac (diff) | |
download | ast2050-yocto-poky-fabdf2f57a8e0ebe8ab7e82f92f3b298e113fcc0.zip ast2050-yocto-poky-fabdf2f57a8e0ebe8ab7e82f92f3b298e113fcc0.tar.gz |
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>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hig/layerselectiondialog.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig/layerselectiondialog.py b/bitbake/lib/bb/ui/crumbs/hig/layerselectiondialog.py index 1d100c5..52d57b6 100644 --- a/bitbake/lib/bb/ui/crumbs/hig/layerselectiondialog.py +++ b/bitbake/lib/bb/ui/crumbs/hig/layerselectiondialog.py @@ -133,12 +133,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) |