[Sugar-devel] [PATCH sugar] Display title in palette of shared activity OLPC #10676

Simon Schampijer simon at schampijer.de
Wed May 25 09:57:34 EDT 2011


The patch does display the activity name as primary text
and the session title as secondary text. This is coherent
with the palette of an activity in the frame.

Signed-off-by: Simon Schampijer <simon at laptop.org>
---
 src/jarabe/desktop/meshbox.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/jarabe/desktop/meshbox.py b/src/jarabe/desktop/meshbox.py
index 3d1e52a..83740d0 100644
--- a/src/jarabe/desktop/meshbox.py
+++ b/src/jarabe/desktop/meshbox.py
@@ -94,12 +94,14 @@ class ActivityView(hippo.CanvasBox):
         return icon
 
     def _create_palette(self):
-        p_text = glib.markup_escape_text(self._model.bundle.get_name())
+        primary_text = glib.markup_escape_text(self._model.bundle.get_name())
+        secondary_text = glib.markup_escape_text(self._model.get_name())
         p_icon = Icon(file=self._model.bundle.get_icon(),
                       xo_color=self._model.get_color())
         p_icon.props.icon_size = gtk.ICON_SIZE_LARGE_TOOLBAR
         p = palette.Palette(None,
-                            primary_text=p_text,
+                            primary_text=primary_text,
+                            secondary_text=secondary_text,
                             icon=p_icon)
 
         private = self._model.props.private
-- 
1.7.4



More information about the Sugar-devel mailing list