diff options
author | Lars Uebernickel <[email protected]> | 2015-09-11 12:14:40 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-09-16 14:55:43 +0200 |
commit | cb87d003f763e687ad563cff87bb3775b9038b81 (patch) | |
tree | e19af1d0e4a8fb139f1ef7bb0977ef73f9c0e6c8 | |
parent | 71ceca84166437fe0a3f5681eb6b2ecae53c6a72 (diff) | |
download | mate-polkit-cb87d003f763e687ad563cff87bb3775b9038b81.tar.bz2 mate-polkit-cb87d003f763e687ad563cff87bb3775b9038b81.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
-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 */ |