Commit 29ee43b4 authored by Daniel Brötzmann's avatar Daniel Brötzmann

GroupchatControl: Fix DND

parent 8e79f9f7
......@@ -145,6 +145,10 @@ def __init__(self, parent_win, widget_name, contact, acct,
# Drag and drop
self.xml.overlay.add_overlay(self.xml.drop_area)
self.xml.drop_area.hide()
self.xml.overlay.connect(
'drag-data-received', self._on_drag_data_received)
self.xml.overlay.connect('drag-motion', self._on_drag_motion)
self.xml.overlay.connect('drag-leave', self._on_drag_leave)
self.TARGET_TYPE_URI_LIST = 80
uri_entry = Gtk.TargetEntry.new(
......
......@@ -398,9 +398,6 @@
<object class="GtkOverlay" id="overlay">
<property name="visible">True</property>
<property name="can_focus">False</property>
<signal name="drag-data-received" handler="_on_drag_data_received" swapped="no"/>
<signal name="drag-leave" handler="_on_drag_leave" swapped="no"/>
<signal name="drag-motion" handler="_on_drag_motion" swapped="no"/>
<child>
<object class="GtkPaned" id="paned1">
<property name="visible">True</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment