[gnome-packagekit] Wrap license text



commit 5c8f06023f901a5e303d72acd3e4d9f9469c74c4
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Dec 21 22:36:58 2013 -0600

    Wrap license text
    
    Otherwise, the window expands absrudly wide to fit the unwrapped text of
    long license fields (e.g. LibreOffice).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720915

 src/gpk-application.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gpk-application.c b/src/gpk-application.c
index 2d35bd4..466bc9d 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -2190,6 +2190,7 @@ gpk_application_get_details_cb (PkClient *client, GAsyncResult *res, GpkApplicat
                gtk_widget_show (widget);
                widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "label_licence"));
                gtk_label_set_label (GTK_LABEL (widget), license);
+               gtk_label_set_line_wrap (GTK_LABEL (widget), TRUE);
                gtk_widget_show (widget);
        } else {
                widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "label_licence_title"));


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