summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-04-25 22:19:06 +0200
committermonsta <[email protected]>2017-08-07 17:23:22 +0300
commit38bcccd6ad78c633f6fec4be4796b2334e632b2e (patch)
treea96b9fd0503035e81f9fb37fde5c9f30c3d518a8
parent6e10c269acc0b662645ba21190dfa927c904b6d4 (diff)
downloadmate-settings-daemon-38bcccd6ad78c633f6fec4be4796b2334e632b2e.tar.bz2
mate-settings-daemon-38bcccd6ad78c633f6fec4be4796b2334e632b2e.tar.xz
ldsm-dialog: set max width chars for labels
This reduce the width of the dialog
-rw-r--r--plugins/housekeeping/msd-ldsm-dialog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/housekeeping/msd-ldsm-dialog.c b/plugins/housekeeping/msd-ldsm-dialog.c
index 190daf4..5b6aba6 100644
--- a/plugins/housekeeping/msd-ldsm-dialog.c
+++ b/plugins/housekeeping/msd-ldsm-dialog.c
@@ -222,6 +222,7 @@ msd_ldsm_dialog_init (MsdLdsmDialog *dialog)
dialog->priv->primary_label = gtk_label_new (NULL);
gtk_label_set_line_wrap (GTK_LABEL (dialog->priv->primary_label), TRUE);
gtk_label_set_single_line_mode (GTK_LABEL (dialog->priv->primary_label), FALSE);
+ gtk_label_set_max_width_chars (GTK_LABEL (dialog->priv->primary_label), 70);
#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL (dialog->priv->primary_label), 0.0);
gtk_label_set_yalign (GTK_LABEL (dialog->priv->primary_label), 0.0);
@@ -232,6 +233,7 @@ msd_ldsm_dialog_init (MsdLdsmDialog *dialog)
dialog->priv->secondary_label = gtk_label_new (NULL);
gtk_label_set_line_wrap (GTK_LABEL (dialog->priv->secondary_label), TRUE);
gtk_label_set_single_line_mode (GTK_LABEL (dialog->priv->secondary_label), FALSE);
+ gtk_label_set_max_width_chars (GTK_LABEL (dialog->priv->secondary_label), 70);
#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL (dialog->priv->secondary_label), 0.0);
gtk_label_set_yalign (GTK_LABEL (dialog->priv->secondary_label), 0.0);