Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/activity.py b/activity.py
index 185dcc3..97b7541 100644
--- a/activity.py
+++ b/activity.py
@@ -48,6 +48,7 @@ from sugar.datastore import datastore
from charts import Chart
from readers import StopWatchReader
from readers import MeasureReader
+from readers import ClipboardReader
import simplegraphhelp
# Mime types
@@ -108,7 +109,8 @@ class ChartArea(gtk.DrawingArea):
def _drag_data_received(self, w, context, x, y, data, info, time):
if data and data.format == 8:
io_file = StringIO(data.data)
- self._parent.load_from_file(io_file)
+ reader = ClipboardReader(io_file)
+ self._parent._graph_from_reader(reader)
context.finish(True, False, time)
else:
context.finish(False, False, time)