[gnome-disk-utility] Fix line wrap in info bars



commit df950e1e53f525e0d477e993019b1c0146097844
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Aug 29 13:57:02 2015 -0500

    Fix line wrap in info bars

 src/libgdu/gduutils.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libgdu/gduutils.c b/src/libgdu/gduutils.c
index ad8de17..698a55a 100644
--- a/src/libgdu/gduutils.c
+++ b/src/libgdu/gduutils.c
@@ -175,6 +175,7 @@ gdu_utils_create_info_bar (GtkMessageType   message_type,
   label = gtk_label_new (NULL);
   gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
   gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
+  gtk_label_set_max_width_chars (GTK_LABEL (label), 80);
   gtk_label_set_markup (GTK_LABEL (label), markup);
   gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]