[kupfer: 25/41] show_text: Show multiple objects as one text
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer: 25/41] show_text: Show multiple objects as one text
- Date: Tue, 26 Apr 2011 17:14:54 +0000 (UTC)
commit 0f3da19d014a650bbd19bb9635b386adf1061032
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Tue Apr 26 18:44:04 2011 +0200
show_text: Show multiple objects as one text
kupfer/plugin/show_text.py | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/plugin/show_text.py b/kupfer/plugin/show_text.py
index 4c3a026..171590a 100644
--- a/kupfer/plugin/show_text.py
+++ b/kupfer/plugin/show_text.py
@@ -40,7 +40,13 @@ class LargeType (Action):
return True
def activate(self, leaf, ctx):
- uiutils.show_large_type(leaf.get_text_representation(), ctx)
+ return self.activate_multiple((leaf, ), ctx)
+
+ def activate_multiple(self, objects, ctx):
+ all_texts = []
+ for obj in objects:
+ all_texts.append(obj.get_text_representation())
+ uiutils.show_large_type("\n".join(all_texts), ctx)
def item_types(self):
yield Leaf
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]