[pitivi] medialibrary: Fix drag icon callback



commit 25a7c5e74c790deb43d7ddee16cf2886a80cc2f2
Author: yatinmaan <yatinmaan1 gmail com>
Date:   Wed Feb 27 01:09:46 2019 +0530

    medialibrary: Fix drag icon callback
    
    TreeView and IconView set the drag-icon in their own handler.
    That has to be overridden for us to be able to use a custom drag icon.

 pitivi/medialibrary.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index e95c6d0c..715e6f12 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -638,7 +638,7 @@ class MediaLibraryWidget(Gtk.Box, Loggable):
             Gdk.ModifierType.BUTTON1_MASK, [URI_TARGET_ENTRY], Gdk.DragAction.COPY)
         view.drag_source_add_uri_targets()
         view.connect("drag-data-get", self._dndDragDataGetCb)
-        view.connect("drag-begin", self._dndDragBeginCb)
+        view.connect_after("drag-begin", self._dndDragBeginCb)
         view.connect("drag-end", self._dndDragEndCb)
 
     def __updateViewCb(self, unused_model, unused_path, unused_iter=None):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]