[bitbake-devel] [dylan][PATCH] hob: disable layer drag and drop outside the containing widget
Voicu, Cristiana
cristiana.voicu at intel.com
Wed Apr 2 13:50:57 UTC 2014
Hi Richard,
Can you please merge this patch on dylan?
This is already on master branch.
Thank,
Cristiana
________________________________________
From: Voicu, Cristiana
Sent: Wednesday, March 19, 2014 3:37 PM
To: bitbake-devel at lists.openembedded.org
Cc: Voicu, Cristiana
Subject: [dylan][PATCH] hob: disable layer drag and drop outside the containing widget
[YOCTO #6008]
Signed-off-by: Cristiana Voicu <cristiana.voicu at intel.com>
---
.../lib/bb/ui/crumbs/hig/layerselectiondialog.py | 9 +++++----
1 file 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 783ee73..f6a4d72 100644
--- a/bitbake/lib/bb/ui/crumbs/hig/layerselectiondialog.py
+++ b/bitbake/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)
--
1.7.9.5
More information about the bitbake-devel
mailing list