diff options
author | Lars Uebernickel <[email protected]> | 2015-09-11 12:14:40 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-09-12 12:20:00 +0200 |
commit | 0b6390e6af0b9f4f06f52988739c5741a8b3d82f (patch) | |
tree | 78645255edc3a6baf9ae65c0d355e41a8b7d1cd7 /src/polkitmateauthenticationdialog.c | |
parent | 92f884a181d563711b25f81fbe59aaff6c7101e7 (diff) | |
download | mate-polkit-0b6390e6af0b9f4f06f52988739c5741a8b3d82f.tar.bz2 mate-polkit-0b6390e6af0b9f4f06f52988739c5741a8b3d82f.tar.xz |
Gtk3: Auth dialog: make the label wrap at 50 chars
Because GtkWindow doesn't have a default width anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=738688
Diffstat (limited to 'src/polkitmateauthenticationdialog.c')
-rw-r--r-- | src/polkitmateauthenticationdialog.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/polkitmateauthenticationdialog.c b/src/polkitmateauthenticationdialog.c index f9f0194..fa60b32 100644 --- a/src/polkitmateauthenticationdialog.c +++ b/src/polkitmateauthenticationdialog.c @@ -561,6 +561,9 @@ polkit_mate_authentication_dialog_constructed (GObject *object) g_free (s); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_label_set_max_width_chars (GTK_LABEL (label), 50); +#endif gtk_box_pack_start (GTK_BOX (main_vbox), label, FALSE, FALSE, 0); /* secondary message */ @@ -588,6 +591,9 @@ polkit_mate_authentication_dialog_constructed (GObject *object) } gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_label_set_max_width_chars (GTK_LABEL (label), 50); +#endif gtk_box_pack_start (GTK_BOX (main_vbox), label, FALSE, FALSE, 0); /* user combobox */ |