[glade] Fix formatting / layout of project verification details



commit dd0360822e60aff7216ba7d51021a44b67c5f28c
Author: Daniel P. Berrange <berrange redhat com>
Date:   Sun Sep 3 17:22:50 2017 +0100

    Fix formatting / layout of project verification details
    
    Two of the common deprecation messages are missing a newline,
    causing the message display to be 1000's of pixels wide
    The scrolled window displaying the messages is also not set
    to expand as the window grows, leaving only three lines of
    text visible by default. These bugs make the verification
    message display almost unusable.
    
    Signed-off-by: Daniel P. Berrange <berrange redhat com>

 gladeui/glade-project.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gladeui/glade-project.c b/gladeui/glade-project.c
index c92e54a..37e5cfa 100644
--- a/gladeui/glade-project.c
+++ b/gladeui/glade-project.c
@@ -2938,7 +2938,7 @@ glade_project_writing_preview (GladeProject       *project)
 #define PROP_DEPRECATED_MSG            _("This property is deprecated")
 
 /* translators: refers to a property '%s' of widget '[%s]' */
-#define PROP_DEPRECATED_FMT            _("[%s] Property '%s' of object class '%s' is deprecated")
+#define PROP_DEPRECATED_FMT            _("[%s] Property '%s' of object class '%s' is deprecated\n")
 
 /* translators: refers to a signal in toolkit version '%s %d.%d' 
  * and a project targeting toolkit version '%s %d.%d' */
@@ -2952,7 +2952,7 @@ glade_project_writing_preview (GladeProject       *project)
 #define SIGNAL_DEPRECATED_MSG          _("This signal is deprecated")
 
 /* translators: refers to a signal '%s' of widget '[%s]' */
-#define SIGNAL_DEPRECATED_FMT          _("[%s] Signal '%s' of object class '%s' is deprecated")
+#define SIGNAL_DEPRECATED_FMT          _("[%s] Signal '%s' of object class '%s' is deprecated\n")
 
 
 static void
@@ -3251,6 +3251,7 @@ glade_project_verify_dialog (GladeProject *project,
   expander = gtk_expander_new (_("Details"));
 
   gtk_text_buffer_set_text (buffer, string->str, -1);
+  gtk_widget_set_vexpand (swindow, TRUE);
 
   gtk_container_add (GTK_CONTAINER (swindow), textview);
   gtk_container_add (GTK_CONTAINER (expander), swindow);


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