Package list policykit-1-gnome / a7ec74a
Auth dialog: Make the label wrap at 70 chars Because GtkWindow doesn't have a default width anymore. Thanks to Lars Uebernickel! (via Ubuntu) Martin Pitt 3 years ago
2 changed file(s) with 33 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 From: Lars Uebernickel <lars@uebernic.de>
1 Date: Fri, 17 Oct 2014 15:35:25 +0200
2 Subject: Auth dialog: Make the label wrap at 70 chars
3
4 Because GtkWindow doesn't have a default width anymore.
5
6 Bug: https://bugzilla.gnome.org/show_bug.cgi?id=738688
7 Bug-Ubuntu: https://launchpad.net/bugs/1382566
8 ---
9 src/polkitgnomeauthenticationdialog.c | 2 ++
10 1 file changed, 2 insertions(+)
11
12 diff --git a/src/polkitgnomeauthenticationdialog.c b/src/polkitgnomeauthenticationdialog.c
13 index d307516..efd4185 100644
14 --- a/src/polkitgnomeauthenticationdialog.c
15 +++ b/src/polkitgnomeauthenticationdialog.c
16 @@ -574,6 +574,7 @@ polkit_gnome_authentication_dialog_constructed (GObject *object)
17 g_free (s);
18 gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
19 gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
20 + gtk_label_set_max_width_chars (GTK_LABEL (label), 70);
21 gtk_box_pack_start (GTK_BOX (main_vbox), label, FALSE, FALSE, 0);
22
23 /* secondary message */
24 @@ -601,6 +602,7 @@ polkit_gnome_authentication_dialog_constructed (GObject *object)
25 }
26 gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
27 gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
28 + gtk_label_set_max_width_chars (GTK_LABEL (label), 70);
29 gtk_box_pack_start (GTK_BOX (main_vbox), label, FALSE, FALSE, 0);
30
31 /* user combobox */
00 0001-Select-the-current-user-to-authenticate-with-by-defa.patch
1 0002-Auth-dialog-Make-the-label-wrap-at-70-chars.patch