[gnome-packagekit/gnome-3-10] Wrap license text



commit cfa2038ab9682ce9e1129d7b9562a6646bef2f64
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 4aa2a74..e034083 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -2215,6 +2215,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]