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 | |
parent | f5f3ef7b09ab3790da92f8bef83835033bbeb0ac (diff) | |
download | 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>
-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 1d100c54f1..52d57b6738 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): | |||
133 | tree_selection.set_mode(gtk.SELECTION_SINGLE) | 133 | tree_selection.set_mode(gtk.SELECTION_SINGLE) |
134 | 134 | ||
135 | # Allow enable drag and drop of rows including row move | 135 | # Allow enable drag and drop of rows including row move |
136 | dnd_internal_target = '' | ||
137 | dnd_targets = [(dnd_internal_target, gtk.TARGET_SAME_WIDGET, 0)] | ||
136 | layer_tv.enable_model_drag_source( gtk.gdk.BUTTON1_MASK, | 138 | layer_tv.enable_model_drag_source( gtk.gdk.BUTTON1_MASK, |
137 | self.TARGETS, | 139 | dnd_targets, |
138 | gtk.gdk.ACTION_DEFAULT| | 140 | gtk.gdk.ACTION_MOVE) |
141 | layer_tv.enable_model_drag_dest(dnd_targets, | ||
139 | gtk.gdk.ACTION_MOVE) | 142 | gtk.gdk.ACTION_MOVE) |
140 | layer_tv.enable_model_drag_dest(self.TARGETS, | ||
141 | gtk.gdk.ACTION_DEFAULT) | ||
142 | layer_tv.connect("drag_data_get", self.drag_data_get_cb) | 143 | layer_tv.connect("drag_data_get", self.drag_data_get_cb) |
143 | layer_tv.connect("drag_data_received", self.drag_data_received_cb) | 144 | layer_tv.connect("drag_data_received", self.drag_data_received_cb) |
144 | 145 | ||