[pitivi] project: Fix text wrapping in the pipeline failure dialog



commit 271b3b9afd0ae2659ae345199505d699d505c0d1
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Sun May 10 23:38:40 2015 -0400

    project: Fix text wrapping in the pipeline failure dialog
    
    This is the same fix as commit 4c6e1375 for bug #728218

 pitivi/project.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 8cd3b3e..fb6c8b3 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -265,6 +265,10 @@ class ProjectManager(GObject.Object, Loggable):
         primary.set_alignment(0, 0.5)
         primary.props.label = message
 
+        # These 2 lines are needed for a decent dialog width, with wrapped text:
+        dialog.props.default_width = 700
+        primary.set_width_chars(50)
+
         # put the text in a vbox
         vbox = Gtk.VBox(homogeneous=False, spacing=SPACING * 2)
         vbox.pack_start(primary, True, True, 0)


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