summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-04-24 13:32:37 +0200
committerStefano Karapetsas <[email protected]>2014-04-24 13:32:37 +0200
commitf168e1e4595cc94c9304f312e668b992377a75f9 (patch)
tree1af455240ccc8dfa1cc17d08c383ceda712d12e6
parentf12fdaef761569452204c5a1fb2fb3a09d848344 (diff)
downloadmate-desktop-f168e1e4595cc94c9304f312e668b992377a75f9.tar.bz2
mate-desktop-f168e1e4595cc94c9304f312e668b992377a75f9.tar.xz
Fix label wrap with GTK3 in about dialog
-rw-r--r--libmate-desktop/mate-aboutdialog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmate-desktop/mate-aboutdialog.c b/libmate-desktop/mate-aboutdialog.c
index 4f99764..0ef99c5 100644
--- a/libmate-desktop/mate-aboutdialog.c
+++ b/libmate-desktop/mate-aboutdialog.c
@@ -513,6 +513,9 @@ mate_about_dialog_init (MateAboutDialog *about)
gtk_label_set_selectable (GTK_LABEL (priv->comments_label), TRUE);
gtk_label_set_justify (GTK_LABEL (priv->comments_label), GTK_JUSTIFY_CENTER);
gtk_label_set_line_wrap (GTK_LABEL (priv->comments_label), TRUE);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_label_set_max_width_chars (GTK_LABEL (priv->comments_label), 60);
+#endif
gtk_box_pack_start (GTK_BOX (vbox), priv->comments_label, FALSE, FALSE, 0);
priv->copyright_label = gtk_label_new (NULL);