Merge lp:~elementary-pantheon/switchboard-plug-networking/ellipsize-device-names into lp:~elementary-pantheon/switchboard-plug-networking/trunk

Proposed by Danielle Foré
Status: Merged
Approved by: Adam Bieńkowski
Approved revision: 233
Merged at revision: 233
Proposed branch: lp:~elementary-pantheon/switchboard-plug-networking/ellipsize-device-names
Merge into: lp:~elementary-pantheon/switchboard-plug-networking/trunk
Diff against target: 11 lines (+1/-0)
1 file modified
src/Widgets/Page.vala (+1/-0)
To merge this branch: bzr merge lp:~elementary-pantheon/switchboard-plug-networking/ellipsize-device-names
Reviewer Review Type Date Requested Status
Adam Bieńkowski (community) Approve
Review via email: mp+294150@code.launchpad.net

Commit message

Page.Vala: Ellipsize long network device names

To post a comment you must log in.
Revision history for this message
Adam Bieńkowski (donadigo) wrote :

Gotta approve.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Widgets/Page.vala'
2--- src/Widgets/Page.vala 2016-02-12 15:09:30 +0000
3+++ src/Widgets/Page.vala 2016-05-09 18:12:00 +0000
4@@ -67,6 +67,7 @@
5 device_img.pixel_size = 48;
6
7 device_label = new Gtk.Label (Utils.type_to_string (device.get_device_type ()));
8+ device_label.ellipsize = Pango.EllipsizeMode.MIDDLE;
9 device_label.get_style_context ().add_class ("h2");
10
11 control_switch = new Gtk.Switch ();

Subscribers

People subscribed via source and target branches