[Sugar-devel] Reg.: Ticket 1429

Gonzalo Odiard godiard at sugarlabs.org
Mon Dec 15 14:49:06 EST 2014


Hello,
Thanks for working on this issue.

I think we should use Pango.EllipsizeMode.END always to be consistent.
In particular, when the text is short, like in the palettes, ellipsize
MIDDLE
does not provide a good output. Also, we do a ellipsize "by hand"
in multiple lines in the secondary text on the pallettes.

But looking at the code, we have:

In the toolkit:
[gonzalo at localhost sugar-toolkit-gtk3]$ grep -r "Pango.EllipsizeMode." *
--include=*.py
src/sugar3/graphics/palettemenu.py:
 self.label.set_ellipsize(Pango.EllipsizeMode.MIDDLE)
src/sugar3/graphics/menuitem.py:
 label.set_ellipsize(Pango.EllipsizeMode.MIDDLE)
src/sugar3/graphics/palette.py:
 self._label.set_ellipsize(Pango.EllipsizeMode.MIDDLE)
src/sugar3/graphics/palette.py:
 self._secondary_label.set_ellipsize(Pango.EllipsizeMode.END)

In sugar:
[gonzalo at localhost sugar]$  grep -r "Pango.EllipsizeMode." * --include=*.py
extensions/cpsection/keyboard/view.py:        cell.props.ellipsize =
Pango.EllipsizeMode.MIDDLE
extensions/cpsection/keyboard/view.py:        cell.props.ellipsize =
Pango.EllipsizeMode.MIDDLE
extensions/cpsection/keyboard/view.py:        cell.props.ellipsize =
Pango.EllipsizeMode.MIDDLE
extensions/cpsection/keyboard/view.py:        cell.props.ellipsize =
Pango.EllipsizeMode.MIDDLE
src/jarabe/controlpanel/inlinealert.py:
 self._msg_label.set_ellipsize(Pango.EllipsizeMode.MIDDLE)
src/jarabe/journal/journaltoolbox.py:
 self._label_widget.set_ellipsize(Pango.EllipsizeMode.MIDDLE)
src/jarabe/journal/listview.py:        self.cell_title.props.ellipsize =
Pango.EllipsizeMode.MIDDLE
src/jarabe/desktop/activitieslist.py:        cell_text.props.ellipsize =
Pango.EllipsizeMode.MIDDLE
src/jarabe/frame/notification.py:
 summary_label.set_ellipsize(Pango.EllipsizeMode.END)
src/jarabe/frame/notification.py:
 body_label.set_ellipsize(Pango.EllipsizeMode.END)
src/jarabe/frame/activitiestray.py:
 label.set_ellipsize(Pango.EllipsizeMode.END)

The only explanation I found to use ellipsize MIDDLE is need show by example
a file extension in a file manager. But Sugar does not use file extensions
in the Journal,
only in external devices.

What others think?

Gonzalo




On Mon, Dec 15, 2014 at 4:32 PM, Goutam Nair <goutamnair7 at gmail.com> wrote:
>
> Hey all,
>
> For this bug http://bugs.sugarlabs.org/ticket/1429, when the cursor
> hovers over the activity icon the ellipses are in the middle when it is
> supposed to be at the end.
>
> So, in order to fix that, should I have to change this file as well:
> sugar3/graphics/palette.py on line 143?
>
> Thanks
> Goutam Nair
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>

-- 
Gonzalo Odiard

SugarLabs - Software for children learning
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20141215/d6efd2dc/attachment-0001.html>


More information about the Sugar-devel mailing list