From 98130960e9c6051f4ed5d46df10dd9a9e5796914 Mon Sep 17 00:00:00 2001 From: Agustin Zubiaga Date: Fri, 28 Sep 2012 05:04:31 +0000 Subject: Fix drag and drop --- (limited to 'activity.py') 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): -- cgit v0.9.1