Merge lp:~seb128/unity-settings-daemon/wrap-label-mount-dialog into lp:unity-settings-daemon

Proposed by Sebastien Bacher on 2015-03-24
Status: Merged
Approved by: Sebastien Bacher on 2015-03-25
Approved revision: 4077
Merged at revision: 4080
Proposed branch: lp:~seb128/unity-settings-daemon/wrap-label-mount-dialog
Merge into: lp:unity-settings-daemon
Diff against target: 18 lines (+2/-0)
1 file modified
plugins/automount/gsd-autorun.c (+2/-0)
To merge this branch: bzr merge lp:~seb128/unity-settings-daemon/wrap-label-mount-dialog
Reviewer Review Type Date Requested Status
Lars Karlitski (community) 2015-03-24 Approve on 2015-03-25
PS Jenkins bot continuous-integration Approve on 2015-03-24
Unity Settings Daemon Development Team 2015-03-24 Pending
Review via email: mp+253988@code.launchpad.net

Commit Message

let the label wrap as they should in the mount dialog

Description of the Change

without that the dialog asking "what do you want to do with that device" (that you get when inserting for example a dvd or an usb stick) doesn't wrap its labels

To post a comment you must log in.
4077. By Sebastien Bacher on 2015-03-24

let the label wrap as they should in the mount dialog

Lars Karlitski (larsu) wrote :

Yep.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/automount/gsd-autorun.c'
2--- plugins/automount/gsd-autorun.c 2013-11-13 01:59:14 +0000
3+++ plugins/automount/gsd-autorun.c 2015-03-24 18:02:52 +0000
4@@ -734,6 +734,7 @@
5 gtk_label_set_markup (GTK_LABEL (label), markup);
6 g_free (markup);
7 gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
8+ gtk_label_set_max_width_chars (GTK_LABEL (label), 72);
9 gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
10 gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, TRUE, 0);
11
12@@ -744,6 +745,7 @@
13 gtk_label_set_markup (GTK_LABEL (label), markup);
14 g_free (markup);
15 gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
16+ gtk_label_set_max_width_chars (GTK_LABEL (label), 72);
17 gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
18 gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, TRUE, 0);
19

Subscribers

People subscribed via source and target branches