Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--AbacusActivity.py28
1 files changed, 15 insertions, 13 deletions
diff --git a/AbacusActivity.py b/AbacusActivity.py
index adb5560..a709fba 100644
--- a/AbacusActivity.py
+++ b/AbacusActivity.py
@@ -393,23 +393,25 @@ class AbacusActivity(activity.Activity):
def _copy_cb(self, arg=None):
''' Copy a number to the clipboard from the active abacus. '''
- clipBoard = Gtk.Clipboard()
- text = self.abacus.generate_label(sum_only=True)
- if text is not None:
- clipBoard.set_text(text)
+# clipBoard = Gtk.Clipboard(Gdk.SELECTION_CLIPBOARD)
+# text = self.abacus.generate_label(sum_only=True)
+# if text is not None:
+# clipBoard.set_text(text, -1)
+# FIXME!
return
def _paste_cb(self, arg=None):
''' Paste a number from the clipboard to the active abacus. '''
- clipBoard = Gtk.Clipboard()
- text = clipBoard.wait_for_text()
- if text is not None:
- try:
- self.abacus.mode.set_value_from_number(float(text))
- except ValueError, e:
- _logger.debug(str(e))
- return
- self.abacus.mode.label(self.abacus.generate_label())
+# clipBoard = Gtk.Clipboard()
+# text = clipBoard.wait_for_text()
+# if text is not None:
+# try:
+# self.abacus.mode.set_value_from_number(float(text))
+# except ValueError, e:
+# _logger.debug(str(e))
+# return
+# self.abacus.mode.label(self.abacus.generate_label())
+# FIXME !
return
def write_file(self, file_path):