blob: 011fe6ef255d445347891f9e1efee7d605d06173 [file] [log] [blame]
Patrick Williams8e7b46e2023-05-01 14:19:06 -05001From: Lars Uebernickel <lars@uebernic.de>
2Date: Fri, 17 Oct 2014 15:35:25 +0200
3Subject: Auth dialog: Make the label wrap at 70 chars
4
5Because GtkWindow doesn't have a default width anymore.
6
7Bug: https://bugzilla.gnome.org/show_bug.cgi?id=738688
8Bug-Ubuntu: https://launchpad.net/bugs/1382566
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 src/polkitgnomeauthenticationdialog.c | 2 ++
13 1 file changed, 2 insertions(+)
14
15diff --git a/src/polkitgnomeauthenticationdialog.c b/src/polkitgnomeauthenticationdialog.c
16index d307516..efd4185 100644
17--- a/src/polkitgnomeauthenticationdialog.c
18+++ b/src/polkitgnomeauthenticationdialog.c
19@@ -574,6 +574,7 @@ polkit_gnome_authentication_dialog_constructed (GObject *object)
20 g_free (s);
21 gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
22 gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
23+ gtk_label_set_max_width_chars (GTK_LABEL (label), 70);
24 gtk_box_pack_start (GTK_BOX (main_vbox), label, FALSE, FALSE, 0);
25
26 /* secondary message */
27@@ -601,6 +602,7 @@ polkit_gnome_authentication_dialog_constructed (GObject *object)
28 }
29 gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
30 gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
31+ gtk_label_set_max_width_chars (GTK_LABEL (label), 70);
32 gtk_box_pack_start (GTK_BOX (main_vbox), label, FALSE, FALSE, 0);
33
34 /* user combobox */