diff options
author | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-09-28 05:04:31 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-09-28 05:04:31 (GMT) |
commit | 98130960e9c6051f4ed5d46df10dd9a9e5796914 (patch) | |
tree | 8ee632f08a348b978ff39787f9830d54624fa380 | |
parent | 27efeb2deb7deb3d0ab67ad2aea407e682f17014 (diff) |
Fix drag and drop
-rw-r--r-- | activity.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/activity.py b/activity.py index 7c483b1..2859c11 100644 --- a/activity.py +++ b/activity.py @@ -82,9 +82,8 @@ class ChartArea(Gtk.DrawingArea): Gdk.EventMask.VISIBILITY_NOTIFY_MASK) self.connect('draw', self._draw_cb) - #target = Gtk.TargetEntry.new('text/plain', 0, 0) - #self.drag_dest_set(Gtk.DestDefaults.ALL, target, - # (Gdk.DragAction.COPY | Gdk.DragAction.MOVE)) + self.drag_dest_set_target_list(None) + self.drag_dest_add_text_targets() self.connect('drag_data_received', self._drag_data_received) def _draw_cb(self, widget, context): |