From 38bcccd6ad78c633f6fec4be4796b2334e632b2e Mon Sep 17 00:00:00 2001 From: raveit65 Date: Tue, 25 Apr 2017 22:19:06 +0200 Subject: ldsm-dialog: set max width chars for labels This reduce the width of the dialog --- plugins/housekeeping/msd-ldsm-dialog.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/housekeeping/msd-ldsm-dialog.c') 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); -- cgit v1.2.1