Merge lp:~rastersoft-gmail/slingshot/fixed_width_fix into lp:~elementary-pantheon/slingshot/trunk
Status: | Rejected | ||||||||
---|---|---|---|---|---|---|---|---|---|
Rejected by: | Cody Garver | ||||||||
Proposed branch: | lp:~rastersoft-gmail/slingshot/fixed_width_fix | ||||||||
Merge into: | lp:~elementary-pantheon/slingshot/trunk | ||||||||
Diff against target: |
384 lines (+119/-63) 6 files modified
CMakeLists.txt (+1/-0) src/SlingshotView.vala (+18/-22) src/Widgets/AppEntry.vala (+31/-26) src/Widgets/Grid.vala (+21/-14) src/Widgets/LabelFixedWidth.vala (+36/-0) src/Widgets/Switcher.vala (+12/-1) |
||||||||
To merge this branch: | bzr merge lp:~rastersoft-gmail/slingshot/fixed_width_fix | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Danielle Foré | Needs Fixing | ||
Review via email: mp+232790@code.launchpad.net |
Description of the change
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.
Unmerged revisions
- 454. By Sergio Costas
-
Merged last changes. Ready again to be merged to master.
- 453. By Sergio Costas
-
Merged changes in ru.po
- 452. By Sergio Costas
-
Merged current branch
- 451. By Sergio Costas
-
Removed unnecesary copyright notes
- 450. By Sergio Costas
-
Added some comments
- 449. By Sergio Costas
-
Fixed layout margins
- 448. By Sergio Costas
-
Fixed code style
- 447. By Sergio Costas
-
Now the labels are aligned
- 446. By Sergio Costas
-
The Gtk.Fixed is not needed.
- 445. By Sergio Costas
-
Update merge from trunk
Fixed code style. Now it should comply.