Fix the slingshot layout

Bug #1363295 reported by Sergio Costas on 2014-08-29
This bug report is a duplicate of:  Bug #1356042: slingshot category view cuts apps. Edit Remove
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Slingshot
In Progress
Undecided
Sergio Costas

Bug Description

Slingshot, by default, presumes that the user has installed and is using the Elementary OS theme. It also presumes that the language used is english. This is because it has hardcoded several sizes for icons, texts and so on that only are correct in that case.

When using slingshot in other languages, the cathegory list string can be larger, which results in the icons in the last column being cut. Also, when using a different theme, the font size and other metrics change, which results in a bigger cut.

This patch fixes this by creating a new label widget that can keep an specific width, instead of growing without control like the standard ones in Gtk. This allows to remove all the fixed widths and heights in the code, and rely on the automatic Gtk layout system. This also allows to use more than one line in the application name, removing the need for text ellipsing.

Since this bug is quite big, maybe it should be applied for Freya+1

Changed in slingshot:
status: New → In Progress
assignee: nobody → Sergio Costas (rastersoft-gmail)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers